
Svelte
vercel-labs/json-renderOfficial
Svelte 5 renderer that turns json-render JSON specs into component trees with state binding and streaming.
- skills.sh installs
- 1.3K
- GitHub stars
- 19.8K
- last updated
- Aug 21, 2026
What it does
- Covers catalog definition, component registry, element-tree spec structure, visibility conditions, and two-way state binding
- Includes
BaseComponentPropstyping,getBoundPropand context helpers, pluscreateUIStreamandcreateChatUIfor streaming and chat-driven UIs - Supports built-in
setState,pushState,removeState,push, andpopactions, with$state,$bindState, and$condexpressions resolved before props reach components - Designed for Svelte 5 apps rendering AI-generated specs or building component catalogs from JSON
Install
$ npx -y skills add vercel-labs/json-render --skill svelte -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
@json-render/svelte
Svelte 5 renderer that converts json-render specs into Svelte component trees.
Quick Start
<script lang="ts">
import { Renderer, JsonUIProvider } from "@json-render/svelte";
import type { Spec } from "@json-render/svelte";
import Card from "./components/Card.svelte";
import Button from "./components/Button.svelte";
interface Props {
spec: Spec | null;
}
let { spec }: Props = $props();
const registry = { Card, Button };
</script>
<JsonUIProvider>
<Renderer {spec} {registry} />
</JsonUIProvider>
Creating a Catalog
import { defineCatalog } from "@json-render/core";
import { schema } from "@json-render/svelte";
import { z } from "zod";
export const catalog = defineCatalog(schema, {
components: {
Button: {
props: z.object({
label: z.string(),
variant: z.enum(["primary", "secondary"]).nullable(),
}),
description: "Clickable button",
},
Card: {
props: z.object({ title: z.string() }),
description: "Card container with title",
},
},
});
Defining Components
Components should accept BaseComponentProps<TProps>:
Details
- Repository
- github.com/vercel-labs/json-render
- Categories
- Frontend & UI Code, AI Agents & LLM Apps
- First seen
- May 16, 2026
More from vercel-labs/json-render
All 30- Shadcn Svelte1.2K
- Redux1.2K
- Jotai1.2K
- Xstate1.1K
- Solid1.1K
- Yaml1.1K
- Json Render React391
- Json Render Core340
- Json Render Shadcn255
- Json Render Remotion153
- Json Render React Native142
- React19.1K
- Core17.7K
- Codegen8.9K
- Next8.6K
- Devtools8.4K
- Directives8.1K
- Mcp5.9K
- React Native3.3K
- Shadcn2.5K
- React Three Fiber2.4K
- React Pdf2.4K
- Zustand1.9K
- Remotion1.8K
Similar to Svelte
More Frontend & UI Code
vueSkillvercel-labs/json-render1.4K installsVue 3 renderer that turns JSON specs into component trees with state, visibility, and actions.
reactSkillvercel-labs/json-render19.1K installsReact renderer that turns JSON element-tree specs into React component trees with typed props.
json-render-generative-uiSkillreason-machines/trending-skills1.3K installsGenerative UI framework that renders AI-generated JSON specs into type-safe components across many platforms.
RippleMCP serverqbtrix21 starsRenders JSON specs as live interactive cards inline in MCP-capable chat hosts, drawn from a model's output.
solidjsSkillsuryavirkapur/skills452 installsReactive web UI framework with fine-grained signals, stores, and control-flow components, plus SolidStart.
ngx-json-renderPlugindavepoon/buildwithclaude3.8K starsTwo skills for generative UI in Angular with ngx-json-render, the Angular renderer for Vercel's json-render: define a component catalog and registry, render mod