# Declare is a UI language for you and your AI

- HackerByte page: <https://hackerbyte.net/en/stories/a-new-language-called-declare-aims-to-create-user-interfaces-usable-by-both-deve-50622854>
- Original source: <https://davidtemkin.github.io/declarelang/>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50622854>
- Submitted to Hacker News: 2026-11-24T02:36:56.000Z

A new language called Declare aims to create user interfaces usable by both developers and AI.

## AI-generated summary

Declare is a new Domain\-Specific Language \(DSL\) designed for building user interfaces, intended for both human developers and AI. It aims to provide a structured, verifiable, and expressive way to create UIs that go beyond prototypes into real applications. The language emphasizes writing design directly in code, making it readable and verifiable by a compiler.

## Key points

- Declare is a UI\-focused DSL, similar to SQL for databases, for creating structured and verifiable applications.
- The language integrates layout, motion, states, theming, and drawing directly into its syntax, not as external libraries.
- It is designed to be understood and written by AI, with a compiler that catches and helps fix mistakes precisely.
- Examples like the Declare Calendar and Desktop showcase its capabilities in creating fluid, interactive, and performant UIs.
- Declare aims to offer a more concise and verifiable alternative to existing frameworks like React, with a focus on developer and AI expressiveness.
