newsence
來源篩選

Show HN: Constela – JSON DSL for AI-generated UI with compile-time validation

Hacker News

Constela is a new tool presented on Hacker News that uses a JSON DSL to constrain AI-generated UI, aiming to prevent runtime errors and improve predictability. It boasts significant performance improvements over Next.js.

newsence

Show HN:Constela – 具備編譯時驗證的 AI 生成 UI 的 JSON DSL

Hacker News
大約 1 個月前

AI 生成摘要

Constela 是一個在 Hacker News 上發布的新工具,它使用 JSON DSL 來約束 AI 生成的使用者介面,旨在防止運行時錯誤並提高可預測性。與 Next.js 相比,它在效能上有顯著提升。

Show HN: Constela – JSON DSL for AI-generated UI with compile-time validation | Hacker News

Image

Why: When AI generates UI, JavaScript is too flexible. You get runtime errors, implicit behavior, hard-to-debug state. Constela constrains the surface area so output is deterministic and validatable.

Side effect: 5× faster builds, 5× smaller output than Next.js (same site, measured).

Live demo (this site is built with Constela): https://constela.dev

Try it yourself: https://constela.dev/playground

Source: https://github.com/yuuichieguchi/constela

I'd be interested in feedback from people working on compilers, UI frameworks, or AI-assisted development.

Image