vercel-labs/json-render

The Generative UI framework

What it solves

json-render 解决了从自然语言提示构建动态的、AI 生成的用户界面的挑战,同时不失可预测性和安全性。它允许 AI 在严格遵守开发者定义的组件目录和架构的同时构建 UI。

How it works

开发者使用像 Zod 这样的工具定义组件目录和架构,指定允许的组件、属性和操作。AI 模型生成匹配此架构的结构化 JSON,然后使用特定于包的渲染器在各种平台和框架上安全地渲染。

Who it’s for

前端开发者、全栈工程师以及希望将生成式 UI 功能安全集成到网页、移动端、桌面端、终端、视频或文档工作流中的 AI 应用构建者。

Highlights

  • Guardrailed AI output restricted strictly to a predefined component catalog and JSON schema.
  • Cross-platform support for React, Vue, Svelte, SolidJS, React Native, Next.js, and terminal UIs.
  • Batteries-included options with pre-built shadcn/ui and shadcn-svelte component libraries.
  • Specialized output targets including video (Remotion), PDF documents, emails, and 3D scenes (Three.js).

相关

  • 项目
  • 项目
  • 项目
  • 项目
  • 项目