json-render: Let an AI model design app screens, safely, from a fixed parts list
Added · Updated
Made by Vercel Labs
View profile on GitHub (opens in a new tab)json-render is a programming toolkit (framework) for "generative UI": instead of letting a model write arbitrary code for a screen, you give it a fixed catalog of components it is allowed to use, and it returns structured JSON describing which ones to show and how, which the framework then renders.
Because the model can only pick from components you defined, the output is guardrailed and predictable rather than a fresh piece of code every time, and it can stream in progressively as the model responds. The same catalog can render to React, Vue, Svelte, React Native, and other targets including PDFs and 3D scenes.
What it does
You register a catalog of components (from a pre-built set of 36 shadcn/ui components or your own) and their allowed properties, and the model's job becomes filling in a JSON spec against that catalog rather than free-form code. The spec can include data-driven values — reading application state, evaluating a condition, or interpolating text — so a generated screen can stay live rather than static, and a companion devtools panel shows the spec tree, state and streaming log for debugging.
You could use it to…
- Let an AI model design app screens from a fixed parts list
- Stream a generated interface in as the model responds
- Render the same generated UI to React, Vue or PDF
Can I use this?
You'll need Node.js, a JavaScript framework, and some coding · Setup needed
Worth knowing This is a developer library, not an end-user app — using it means defining a component catalog and wiring up a model yourself. Its output quality still depends on the model you connect and how well your catalog covers what users ask for. Apache-2.0 licence.
Why it's here
Rising fast on GitHub this week
- 19,417 people have starred it on GitHub.
Numbers as of 8 November 2026, from BuildTube’s latest daily refresh.
Behind it
View sourceBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is json-render?
- You register a catalog of components (from a pre-built set of 36 shadcn/ui components or your own) and their allowed properties, and the model's job becomes filling in a JSON spec against that catalog rather than free-form code.
- What can I use json-render for?
- Let an AI model design app screens from a fixed parts list; Stream a generated interface in as the model responds; Render the same generated UI to React, Vue or PDF
- Can I run json-render on my computer?
- Yes. json-render is a JavaScript and TypeScript library you install with npm and use inside your own code, with an AI model you connect yourself.
- What do I need to use json-render?
- A JavaScript or TypeScript project using React, Vue, Svelte, Solid or React Native, plus an LLM you connect yourself to generate the JSON specs.
- What license does json-render use?
- Apache-2.0 licence.
More from this week
- Astryx Build React app screens from ready-made accessible components
Build React app interfaces with 150+ ready-made components and themes.
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- Auto-Ontology Give AI agents checked business meanings for your database
Help AI agents answer questions about company databases using reviewed definitions and SQL, with each answer showing its steps.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-vercel-labs-json-render/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-vercel-labs-json-render/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="json-render on BuildTube"></iframe>