OpenUI 1.0 开源:让任意应用和 Agent 具备生成式 UI 能力
OpenUI 1.0 开源了,前端工程师可以把自己应用的组件注册进去,让 GPT 或 Claude 甚至本地模型直接输出真实界面而不是一段文字,GitHub 上已有 11K stars。
OpenUI 1.0 开源发布,把 ChatGPT 内置的生成式 UI 能力带给其他应用和 Agent。开发者先注册应用自己的 UI 组件(如酒店卡片、地图、图表、预订表单),OpenUI 会将组件库转成系统提示词,告知 LLM 可用的组件范围。用户提问时,无论 GPT、Claude 还是自托管开源模型,都返回名为 OpenUI Lang 的紧凑标记语言,指定所需组件并填入数据。渲染器在流式输出时解析标记、校验组件,最终用应用自身的设计系统绘制界面。项目已上架 GitHub,获得 11K stars。
This is a good news for front-end engineers.
ChatGPT has generative UI built in, and OpenUI 1.0 brings it to every other app and agent.
It also works with any model, closed or open, including ones running on your own hardware, so the UI layer isn’t tied to a single provider.
The developer picks the components, the model picks what the answer needs, OpenUI renders it in the product’s own design.
The developer registers the app’s own UI components (hotel cards, maps, charts, booking forms) with OpenUI, which converts that component library into a system prompt telling the LLM exactly what it may use.
When a user asks something, the LLM, whether GPT, Claude or a self-hosted open model, replies in OpenUI Lang, a compact markup that names the components the answer needs and fills them with data, instead of writing prose.
OpenUI’s renderer reads that markup as it streams, checks it against the registered components, and draws the screen with the app’s real components, so the answer arrives as working interface in the app’s own design system.
Check out their GitHub (11K stars) in comment.