Declare: a declarative UI language for people and AI agents
Declare is a declarative UI language[1] that puts a screen's structure, state, layout and animation in one file, while button handling and data calculations are written in TypeScript. The runtime[2] updates dependent elements automatically: when one value changes, the numbers, bar lengths and colors change with it. The language spec is small enough to fit in one file, and the compiler reports broken rules and how to fix them, which helps AI agents find and correct errors. The same UI can be drawn to the DOM[3] or Canvas, compiled in the browser without a separate build step, or deployed to static hosting[4]. The project is MIT licensed and redesigns the declarative UI model of OpenLaszlo for the modern web and LLMs.
Read the original github.comDiscussion on GeekNews
Sources
-
KRGeekNews KO
Declare - 사람과 AI 에이전트를 위한 선언형 UI 언어



