A new open-source project that climbed the Hacker News front page this week, earning 63 points and an active discussion thread, proposes an unusual answer to a question a growing number of developers are asking: if AI systems are going to write most of our software, what should the language they write look like?
Declare, created by developer David Temkin, describes itself as a domain-specific language for user interfaces — the way SQL is a domain-specific language for databases. Instead of generating sprawling JavaScript or React component trees, an AI writes Declare: a structured, compiler-checked description of the interface in which the design "is written plainly in its code." The project's own documentation carries a disarming disclaimer that doubles as its thesis: "This page is written in it. By an LLM." For developers tracking the latest AI developments in tooling, it is one of the more concrete attempts yet to redesign the artifact of software around machine authors.
A DSL for Interfaces, Not Prototypes
Declare's pitch is aimed at a familiar frustration: AI tools are good at producing interface prototypes, but those prototypes rarely graduate into real applications. The project's site describes Declare as a language "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."
The toolchain is conventional and lightweight — the repository's install steps pull TypeScript, esbuild, and a Chrome driver that the checking tools run on. The language, compiler, and runtime live in one open-source repository on GitHub under davidtemkin/declarelang, where the docs, license, and evaluation reports are all public.
Two Demos Built to Prove the Point
The site ships with two showcase applications, each editable live in the browser and readable end to end.
The first, Declare Calendar, presents day, week, month, and year views as one continuously zoomable surface rather than four switching modes — every motion can be interrupted, and the app runs on real data: drag an event to another day and it is moved.
The second, Declare Desktop, is what the author calls the "acid test" for a UI language: real windows that drag, resize, layer, and minimize into live thumbnails; a magnifying dock; menus that follow focus; and separately loaded applications running inside those windows. Where that usually requires assembling several libraries, the site argues, here it is one program — 3,529 lines total, of which 2,011 are code and 939 comments, shipping at 264 KB over the wire with "every pixel drawn from shapes, no image assets." A third demo on the page — a weather app — weighs in at 1,508 lines (983 of code, 251 of comments) and 194 KB gzipped, with no dependencies.
The runtime underneath is compact by the project's own measurements: roughly 177 KB gzipped, a figure the homepage reports live from the deployed production artifacts on every commit, with the kernel written in C and shipped as WebAssembly.
'Human-Designed and Directed, Built With AI'
The development process is the story's sharpest edge. The site describes the demos as "human-designed and directed, built with AI" — and states plainly that the number of lines typed by hand was zero. The language's stated design goal reads: "in a few hundred lines your AI can write and its compiler can check."
That framing inverts the usual relationship between AI coding tools and the languages they target. General-purpose languages accumulate decades of features designed for human authors; Declare is deliberately small, structured, and machine-friendly, with a compiler that can verify an interface's behavior rather than merely render it.
The Project's Own Numbers
The repository includes evaluation reports comparing Declare against a React implementation of the same application. By the project's measurements, the Declare app required 1,279 lines of code against React's 2,666, and the first Declare build that ran passed all eleven hidden functional checks, where the React build passed six. The reports note these are single runs, not averaged results, and the benchmarks are the project's own — early, self-reported, and worth treating accordingly.
Hacker News: Intrigue and Skepticism
The Hacker News thread, which carried the story to 63 points, reflects a community both impressed and wary. Several commenters praised the craftsmanship of the demos outright. Others pushed back on the site's marketing-style prose — with one noting the heavy promotional tone was "probably AI-generated" — and observed that the project should say up front that it is an npm package with accompanying tooling rather than a downloadable app. The project's own "written in it. By an LLM" disclaimer was cited in the thread as the most honest line on the page.
Both reactions cut to the same underlying question: when the language, the demos, and the marketing copy are all machine-written, what remains for a human to trust? Declare's answer is the compiler — a machine-checkable artifact in place of prose claims.
Why It Matters
Declare is an early, single-author project, and its demos are not production deployments. But the idea it represents — designing authoring formats specifically so AI output can be verified mechanically — is likely to grow more relevant as AI-generated software becomes the default rather than the exception. SQL outlived every database it was built for. Whether Declare outlives the current generation of AI coding tools is a question the compiler, not the marketing page, will eventually answer.
Stay Ahead of AI
Track the tools shaping AI-native development: Read more AI news →
