YAML wire format for json-render with streaming parser, prompt generation, and AI SDK transform. Use when working with @json-render/yaml, YAML-based spec…
@json-render/yaml
YAML wire format for @json-render/core. Progressive rendering and surgical edits via streaming YAML.
Key Concepts
YAML wire format: Alternative to JSONL that uses code fences (yaml-spec, yaml-edit, yaml-patch, diff)
Streaming parser: Incrementally parses YAML, emits JSON Patch operations via diffing
Edit modes: Patch (RFC 6902), merge (RFC 7396), and unified diff
AI SDK transform: TransformStream that converts YAML fences into json-render patches
Generating YAML Prompts
import { yamlPrompt } from "@json-render/yaml";
import { catalog } from "./catalog";don't have the plugin yet? install it then click "run inline in claude" again.