Contexi
Hacker News Show7/1 23:1270

GolemUI:开源声明式表单引擎,支持多框架与MCP工具

Show HN: GolemUI – Declarative Form Engine

阅读原文 ↗

中文摘要

GolemUI是一个开源库,可通过JSON定义动态生成表单,并提供类型化编程层简化编写。核心特性包括:JSON引擎支持存储、版本控制及LLM生成验证;提供28个无头组件,可通过CSS变量或Material等库自定义样式;同一JSON定义可渲染为React、Angular、Vue、Lit或原生JS组件;集成确定性MCP工具,用于验证模型输出、生成JSON或代码,确保LLM返回的定义始终有效。该库由三位拥有十年表单与开源经验的开发者共同创建。

原文内容

We're a team of three friends who have been working with forms and Open Source for a decade, and we joined forces together to create something where we can apply all of our experience. We recently released GolemUI, an Open Source library to generate forms dynamically from JSON definitions, with a typed layer to simplify authoring. This library has a lot to offer. These are the main characteristics: 1. A JSON engine. The form is governed by a JSON definition that you can store in a DB, version, diff, or generate it with LLMs as a validated JSON. 2. We provide also 28 headless components (and growing) that you can style with CSS variables. We offer APIs so you can drop in Material, Shoelace, or your own components. 3. A DX typed authoring layer on top to write forms programmatically, that generates JSON. So you don't have to write it. 4. The same definition can render the UI components in React, Angular, Vue, Lit, or Vanilla JS. 5. We also have a deterministic MCP that has tools for to validate the model's output, generate JSONs or code, and ensure that the definition returned by the LLM is always valid. You can find more information here: Happy to hear any feedback from you and answer any questions! Comments URL: https://news.ycombinator.com/item?id=48748182 Points: 51 # Comments: 68