talira

json-render

Vercel Labs' generative UI framework: AI builds interfaces from prompts, limited to components you define

open sourceApache-2.0free

json-render is a generative UI framework from Vercel Labs: you define a catalog of components and actions with Zod schemas, a language model generates JSON that uses only that catalog, and json-render validates it and renders it progressively as the response streams. The same catalog renders with React, Vue, Svelte, SolidJS and React Native, and there are renderers for full Next.js apps, 36 prebuilt shadcn/ui components, PDF documents (React PDF), HTML email (React Email), video (Remotion), terminal UIs (Ink) and 3D scenes (React Three Fiber).

Problems it solves

  • let an LLM generate UI safely from only the components I allow
  • render AI responses as real interface components instead of text
  • generative UI for my React or Vue app with schema validation

Features

  • component catalog defined with Zod schemas
  • AI output constrained to your components
  • progressive rendering while the model streams
  • React, Vue, Svelte, SolidJS and React Native renderers
  • 36 prebuilt shadcn/ui components
  • renderers for PDF, HTML email, video, terminal UIs and 3D scenes
  • Next.js app rendering with routes and SSR