Core package for defining schemas, catalogs, and AI prompt generation for json-render. Use when working with @json-render/core, defining schemas, creating…
Schema definition, catalog creation, and spec streaming for AI-driven JSON rendering.
Define schemas with typed specs and component catalogs using defineSchema and defineCatalog; generate AI prompts automatically or with custom rules
Support dynamic prop expressions including state binding ($state, $bindState), conditionals ($cond), templates, and computed functions
Stream AI responses as JSONL patches using createSpecStreamCompiler for progressive spec building
Built-in validation, visibility conditions, state watchers, and framework-agnostic StateStore interface for external state management integration
@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
Defining a Schema
import { defineSchema } from "@json-render/core";don't have the plugin yet? install it then click "run inline in claude" again.