Handbook
Welcome to the WebSketch IR handbook — the complete guide to the grammar-based intermediate representation that turns DOM soup into clean, typed UI primitives for LLMs.
What’s inside
Section titled “What’s inside”- For Beginners — New here? Start with the concepts, then build something
- Getting Started — Install and parse your first capture
- Grammar — The 22 UI primitives, signals, and patterns
- API Reference — Every export, every option
- Diffing & Fingerprinting — Structural comparison and change detection
- Codegen & Rendering — HTML output, ASCII wireframes, LLM views