This is the foundation layer for building AI-generated UIs with json-render. You get schema definition with defineSchema, catalog creation with defineCatalog for mapping your components, and tools to generate the system prompts that tell Claude how to build specs. The prop expression system is well thought out: $state for reading, $bindState for two-way binding, $computed for custom functions, $cond for branching. State watchers let you trigger actions on changes, and the validation helpers cover cross-field rules like matching passwords or comparing dates. If you're building a system where AI generates JSON specs that render into actual interfaces, this gives you the primitives to make that reliable.

skills.sh installs
17.2K
GitHub stars
19.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel-labs/json-render --skill core --agent claude-code

Installs into .claude/skills of the current project.

Files

@json-render/core

Core package for schema definition, catalog creation, and spec streaming.

Key Concepts

  • Schema: Defines the structure of specs and catalogs (use defineSchema)
  • Catalog: Maps component/action names to their definitions (use defineCatalog)
  • Spec: JSON output from AI that conforms to the schema
  • SpecStream: JSONL streaming format for progressive spec building

Experimental Decision-Model Composition

For decision-model composition, import experimental_composeSpec and experimental_createEvaluator from @json-render/core. These APIs are available since v0.21.0; pin exact versions and keep json-render packages on the same version. Experimental exports and Experimental_ types can change in any release.

Sponsors

Details

Repository
github.com/vercel-labs/json-render
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
Apr 16, 2026

More from vercel-labs/json-render

All 31
1google avataralloydb-basicsgoogle/skillsManages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database opera14Kskills.sh installs
2sfkislev avatarfluesfkislev/flueAgent control for desktop software including Photoshop, Premiere, Blender, Unity, Excel, and 10+ other applications.12.6Kskills.sh installs
3tavily-ai avatarsearchtavily-ai/skillsSearch the web using Tavily's LLM-optimized search API. Returns relevant results with content snippets, scores, and metadata. Use when you need to find web cont11.9Kskills.sh installs
4anthropics avatarclaude-opus-4-5-migrationanthropics/claude-codeMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to11.8Kskills.sh installs
5rohitg00 avataragentmemory-agentsrohitg00/agentmemoryHow agentmemory wires into host coding agents via the connect command. Use when installing agentmemory into a specific agent, when asked which agents are suppor11.6Kskills.sh installs
6imbad0202 avataracademic-paperimbad0202/academic-research-skills12-agent academic paper writing pipeline. 11 modes (full/plan/outline/revision/revision-coach/abstract/lit-review/format-convert/citation-check/disclosure/rebut11.4Kskills.sh installs