This is the YAML wire format for json-render, built for streaming AI-generated UIs with progressive parsing and surgical edits. Instead of JSONL, you get code fences like yaml-spec and yaml-edit that stream line-by-line and emit JSON Patch operations as they parse. The AI SDK transform drops in as a pipeJsonRender replacement, and it handles four fence types including merge patches (RFC 7396) and unified diffs. If you're building UI streaming with Vercel AI SDK and want something more readable than line-delimited JSON, this gives you that plus built-in prompt generation and multi-turn edit support. The streaming parser works incrementally, so you get partial results before the LLM finishes.

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

Install

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

Installs into .claude/skills of the current project.

Files

@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";

// Standalone mode (LLM outputs only YAML)
const systemPrompt = yamlPrompt(catalog, {
  mode: "standalone",
  editModes: ["merge"],
  customRules: ["Always use dark theme"],
});

// Inline mode (LLM responds conversationally, wraps YAML in fences)
const chatPrompt = yamlPrompt(catalog, { mode: "inline" });

Options:

Sponsors

Details

Repository
github.com/vercel-labs/json-render
Categories
Code Review & Quality, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/json-render

All 31
1eronred avatarapp-rejection-recoveryeronred/aso-skillsWhen the user's app or update was rejected by Apple App Review or Google Play Review and they need to diagnose why, fix it, and resubmit fast. Use when the user1.1Kskills.sh installs
2frames-engineering avatarwebshframes-engineering/skillsA shell for the web. Navigate URLs like directories, query pages with Unix-like commands. Activate on `websh` command, shell-style web navigation, or when treat1.1Kskills.sh installs
3kostja94 avatarmasonrykostja94/marketing-skillsWhen the user wants to design, optimize, or audit masonry (Pinterest-style) layouts for content display. Also use when the user mentions "masonry layout," "maso1.1Kskills.sh installs
4openai avatardevelop-web-gameopenai/skillsUse when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based1.1Kskills.sh installs
5factory-ai avatarno-use-effectfactory-ai/factory-pluginsEnforce the no-useEffect rule when writing or reviewing React code. ACTIVATE when writing React components, refactoring existing useEffect calls, reviewing PRs 1.1Kskills.sh installs
6astronomer avatarprofiling-tablesastronomer/agentsDeep-dive data profiling for a specific table. Use when the user asks to profile a table, wants statistics about a dataset, asks about data quality, or needs to1.1Kskills.sh installs