Feature davidtemkin.github.io
Declare released as a UI language for humans and AI
Declare is a UI DSL designed for both human developers and AI agents, with compiler-level validation to catch and fix AI-generated errors.
- Announced
- Published
- For
- Developers
What was announced
- Declare was released as a UI language (DSL) designed for both humans and AI.[1]
- The company says its design allows AI to catch its own mistakes, fix them, and finish the task.[2]
- The company reports the Declare app was 1,279 lines versus React's 2,666, passing all eleven hidden checks on its first run; it notes this is a single run, not yet a benchmark.[3]
- Developers can look up class names and error codes by name using npx declare-help <name>.[4]
- The official site lets users open and edit sample code live in the browser.[5]
What it means
- The line-count comparison is a single run, not a benchmark, per the company's own note.
- The design assumes AI-generated output will be validated; developers should still review generated code before shipping.
- The npx declare-help command and browser samples are available for immediate evaluation without installation.
From the announcement
- [1]
Declare is a UI language for you and your AI.
- [2]
In Declare, yes. A small language gets it started; these four tools let it catch its mistakes, fix them, and finish.
- [3]
The Declare app was 1,279 lines to React's 2,666, and its first build that ran passed all eleven hidden checks; React's passed six. Single runs, not yet a benchmark
- [4]
npx declare-help <name> answers any of them by name
- [5]
Open one, or edit it live in the browser you're using.
Source: Declare is a UI language for you and your AI (davidtemkin.github.io)
Original announcement
davidtemkin.github.io Declare is a UI language for you and your AI Read at the source ↗On Hacker News: 115 points, 94 comments.