Compiler Pipeline // Draft → Explainer
01 Draft:
4,200 TK
02 Pipeline:
1,850 TK
03 Target:
680 TK
01 // SOURCE DRAFT 02 // STAGE PIPELINE 03 // FINISHED PAGE TOKENS AST VALID DOM 01. RAW DRAFT Fenced Blocks (.md) 02. TOKEN STREAM Lexical Scanned STAGE 1: PARSE AST Generation STAGE 2: LINT Schema & Prune STAGE 3: RENDER SVG & Panel Synth STAGE 4: ASSEMBLE Bundle Single-File ENVELOPE PACK Source Embedding HTML PANELS DOM Layout Structure SVG DIAGRAMS Vector Visual Assets RUNTIME JS Interactive Handlers SOURCE ENVELOPE Hidden State Payload
CLICK ANY NODE TO INSPECT PIPELINE STAGE METRICS: 4,200 → 680 TOKENS (-84%)
Hovering over pipeline stages highlights upstream dependencies and downstream output paths. Click a stage to examine transformation inputs and outputs.
STAGE INPUT SAMPLE
// Select a node above
STAGE OUTPUT SAMPLE
// To view transform output
` }, opt_cache: { stage: 'AUXILIARY // SOURCE ENVELOPE PACK', metrics: 'ENVELOPE: 420 TOKENS (10%)', desc: 'Embeds the original compact draft into a hidden JSON script envelope, enabling loss-less round-trip re-editing.', in: `Draft Raw Markdown & Component Specs`, out: `