AI产品精选73°

OpenUI 开源:生成式 UI 新框架,比 JSON 快 3 倍

Generative UI just went open source. 3x faster and…

精选理由

生成式 UI 的 token 和性能瓶颈终于有了开源解法,做 AI 前端或动态 UI 的开发者值得一试——直接省 token 还快 3 倍。

AI 摘要

OpenUI 是一个新开源的生成式 UI 框架,它用自定义的流式语言 OpenUI Lang 替代 JSON 来传输 UI 结构。相比传统 JSON 方案,OpenUI 减少了 67% 的 token 消耗,渲染速度快 3 倍,且不执行任意代码,安全性更高。开发者只需定义组件库,模型只能输出已注册的组件,并通过 Zod 模式保证类型安全。该框架支持 React Native 和 Vue,并允许在运行时接入工具和 MCP 服务器。项目已开源,可直接使用。

原文 · AlphaSignal

Generative UI just went open source. 3x faster and…

Generative UI just went open source. 3x faster and 67% fewer tokens than JSON-render.

Most generative UI today streams JSON back from the model. JSON is verbose, slow to parse, and burns tokens fast. OpenUI is a new open-source framework built around a different idea. It ships a compact streaming language called OpenUI Lang. You define a component library, generate a system prompt from it, and the model replies in that language instead of JSON. A renderer parses the output token by token and draws React UI live. Benchmarks across seven scenarios show sharp numbers: > 67% fewer tokens than JSON > 3x faster rendering speed > Zero arbitrary code execution > Typed contracts via Zod schemas > Runs in React Native and Vue The model can only emit components you registered, keeping output safe. Tools and MCP servers plug in at runtime for live data. The repo is open and ready to run.