Technology1 min read

Declare is a UI language for you and your AI

By · Published by Everything Blog

In short

The technology supports automated coding through a live Inspector, diagnostics that offer valid rewrites, and a formal six-rung verification ladder spanning from parse to pixels. In a direct evaluation using identical briefs, an artificial intelligence agent created a ticket-buying interface with 1,279 lines of Declare code that passed all eleven hidden checks on its initial run. By contrast, a comparative React implementation required 2,666 lines and cleared only six criteria. Demonstration apps also prove its efficiency, including a data management tool that searches and edits one million issues without requiring custom virtualization code.

Key points

  • The domain-specific language eliminates dependencies by embedding layout, states, motion,…: The domain-specific language eliminates dependencies by embedding layout, states, motion, drawing, and theming directly into its core engine.
  • Automated programming workflows are assisted by a formal six-rung verification ladder ext…: Automated programming workflows are assisted by a formal six-rung verification ladder extending all the way from parse to pixels.
  • The platform can handle demanding workloads, such as modifying one million data issues, w…: The platform can handle demanding workloads, such as modifying one million data issues, without relying on custom virtualization libraries.

Sources checked by our analysis pipeline: 1

Just as SQL is a domain-specific language for database queries, Declare is a DSL for user interfaces — for taking the custom, fluid experience you have in mind beyond a prototype, into a real app: structured, verifiable, and with the design written plainly in its code.

Declare in 10 minutes →

Run the calendar →

The language, in one file →

01

A calendar that zooms through time, a desktop with real windows: complete programs, each readable end to end and checked by the compiler. Open one, or edit it live in the browser you’re using.

1

Day, week, month and year views are one surface, zooming continuously; a view doesn’t switch so much as become the next one, and every motion can be interrupted. It runs on real data: drag an event to another day, and it’s moved.

568

lines of code, plus 228 of comments — four views, zoom, drag and edit

177 KB

over the wire, gzipped — app (structure, logic, styling) and runtime

0

lines typed by hand — human-designed and directed, built with AI

Run…

Technology