Render plans and JSX at the moment you need them.
Renderify renders the UI your model describes: validated RuntimePlans by default, model-written JSX in a sandboxed frame when you need more, and no build or deploy step in between.
pnpm add renderify
- build or deploy steps in the render path
- 0
- security profiles enforced before execution
- 4
- plugin hooks from prompt to render
- 10
- built-in LLM providers, all optional
- 6
How it works
From plan to pixels in one runtime pass
Every render takes the same governed path. Policy runs before any code does, and nothing in the loop needs a build server or a deploy.
Two input lanes
Declarative when you can. Sandboxed JSX when you need it.
Pick the lane per render. Both end in the same browser runtime, and both samples open in the Playground with one click.
{
"specVersion": "runtime-plan/v1",
"id": "home_counter",
"version": 1,
"capabilities": { "domWrite": true },
"state": {
"initial": { "count": 0 },
"transitions": {
"increment": [{ "type": "increment", "path": "count", "by": 1 }],
"reset": [{ "type": "set", "path": "count", "value": 0 }]
}
},
"root": {
"type": "element",
"tag": "main",
"props": {
"style": {
"display": "grid",
"placeItems": "center",
"minHeight": "100vh",
"margin": 0,
"fontFamily": "system-ui, sans-serif",
"background": "#f4f6ff"
}
},
"children": [
{
"type": "element",
"tag": "section",
"props": {
"style": {
"padding": "28px 36px",
"borderRadius": 22,
"background": "#ffffff",
"boxShadow": "0 24px 60px rgba(11, 92, 250, 0.16)",
"textAlign": "center"
}
},
"children": [
{
"type": "element",
"tag": "p",
"props": {
"style": {
"margin": 0,
"color": "#0b5cfa",
"fontWeight": 700
}
},
"children": [{ "type": "text", "value": "Clicks" }]
},
{
"type": "element",
"tag": "h1",
"props": {
"style": { "margin": "6px 0 18px", "fontSize": 56 }
},
"children": [{ "type": "text", "value": "{{state.count}}" }]
},
{
"type": "element",
"tag": "button",
"props": {
"onClick": "increment",
"style": {
"marginRight": 8,
"padding": "10px 18px",
"border": 0,
"borderRadius": 10,
"background": "#0b5cfa",
"color": "#ffffff",
"fontWeight": 700
}
},
"children": [{ "type": "text", "value": "+1" }]
},
{
"type": "element",
"tag": "button",
"props": {
"onClick": "reset",
"style": {
"padding": "10px 16px",
"border": "1px solid #d0d5dd",
"borderRadius": 10,
"background": "#ffffff"
}
},
"children": [{ "type": "text", "value": "Reset" }]
}
]
}
]
}
}Clicks
0state {"count":0}Declarative lane
Validated JSON describes the UI tree, state, lists, forms, and transitions. No code runs, so strict and balanced profiles and MCP Apps accept it.
Render this sample in the Playgroundimport { useState } from "react";
const DATA = {
Revenue: [42, 58, 51, 74, 69, 88],
Users: [24, 31, 45, 39, 52, 61],
Latency: [80, 64, 58, 49, 44, 38],
};
export default function App() {
const [metric, setMetric] = useState("Revenue");
const values = DATA[metric];
const max = Math.max(...values);
return (
<main style={{ padding: 28, fontFamily: "system-ui, sans-serif" }}>
<h2 style={{ margin: 0 }}>Weekly {metric.toLowerCase()}</h2>
<div style={{ display: "flex", gap: 8, margin: "16px 0 24px" }}>
{Object.keys(DATA).map((name) => (
<button
key={name}
onClick={() => setMetric(name)}
style={{
padding: "6px 14px",
border: 0,
borderRadius: 999,
background: name === metric ? "#0b5cfa" : "#eef2ff",
color: name === metric ? "#ffffff" : "#1e293b",
}}
>
{name}
</button>
))}
</div>
<div style={{ display: "flex", alignItems: "flex-end", gap: 10, height: 150 }}>
{values.map((value, index) => (
<div
key={index}
style={{
flex: 1,
height: `${(value / max) * 100}%`,
borderRadius: 8,
background: "linear-gradient(#00d4fb, #0b5cfa 55%, #8a2bf9)",
transition: "height 300ms ease",
}}
/>
))}
</div>
</main>
);
}
Weekly revenue
Sandboxed source lane
Model-written React-compatible JSX runs in an opaque-origin sandboxed iframe, with bare imports pinned through JSPM. Use it when a plan is not expressive enough.
Render this sample in the PlaygroundWhy Renderify
Everything between generated code and interactive UI
A small, security-governed runtime with explicit contracts at every boundary, from module resolution to the trust lane a plan runs in.
Zero-build rendering
Generated JSX/TSX is transpiled in the browser with @babel/standalone and its imports resolve through JSPM. No backend compiler, no deploy step, no server round-trip.
Learn moreSecurity-first execution
Every plan passes a policy check before any code runs: blocked tags, module allowlists, tree depth limits, and execution budgets.
Learn moreJSPM packages, pinned
Bare imports resolve through JSPM and are pinned into the moduleManifest before execution, under an explicit tiered compatibility contract.
Learn moreStreaming-first
renderPromptStream emits llm-delta, preview, and final chunks, so chat interfaces can render progressively as a model responds.
Learn moreFits your agent stack
Render plans returned by Vercel AI SDK, CopilotKit, assistant-ui, AG-UI, or MCP tools, or by your own code. The renderer never requires an LLM.
Learn morePluggable at every stage
Ten hook points let you inject custom logic across the pipeline without forking the core.
Learn moreMCP Apps adapter
@renderify/mcp-app serves a self-contained ui:// resource for offline declarative RuntimePlans, with official protocol lifecycle handling and a strict no-source, no-network boundary.
Learn morePackages
Composable by design
Start with the SDK, or assemble only the layers you need. Every package is published to npm under the MIT license.
- SDKrenderifyThe recommended entry point: an app factory, one-shot helpers, and re-exports of the core, runtime, and provider APIs.
- React@renderify/reactRenderifyView for validated plans, RenderifyFrame for sandboxed model-written JSX, and the useRenderifySession hook.
- Contracts@renderify/irThe RuntimePlan schema, node, state, and action types, guards, and shared constants.
- Execution@renderify/runtimeExecutes plans and source modules, resolves JSPM imports, and renders to HTML or browser targets.
- Sandbox@renderify/frameAn opaque-origin iframe for model-written JSX/TSX with a strict CSP, an action allowlist, loop guards, and a watchdog.
- Policy@renderify/securityValidates plans, capabilities, module sources, and runtime source before anything executes.
- Orchestration@renderify/coreWires config, LLM, code generation, policy, runtime, and UI rendering together through RenderifyApp.
- Providers@renderify/llmOpenAI, OpenAI Codex, Anthropic, Google, Ollama, and LM Studio interpreters, plus a provider registry.
- Tooling@renderify/cliRun prompts, inspect RuntimePlan JSON, probe dependencies, execute plan files, and open the playground.
- Integration@renderify/mcp-appAn offline, declarative RuntimePlan adapter that serves a self-contained ui:// resource for MCP Apps.
Get started
Start rendering in minutes
Install @renderify/react, hand it a RuntimePlan from your model, and render interactive UI in your app. No build server required.