What problem does it solve?
Pretext helps you build creative browser demos where text must wrap and reflow around dynamic obstacles without relying on normal DOM layout, avoiding guesswork and layout shift.
Core Features & Use Cases
- DOM-free text measurement and line layout: compute line breaks, per-line widths, and grapheme-aware positioning from (text, font, width).
- Variable-width streaming layout around obstacles: flow text row-by-row into corridors whose width changes at every line (e.g., around a moving orb or morphing ASCII mask).
- Single-file HTML demo workflow: generate self-contained demos by measuring once and reusing the prepared layout during animation.
Quick Start
Use the pretext skill to generate a single-file HTML demo that flows a short, intentional paragraph around a moving obstacle (like an orb) using DOM-free pre-measured line ranges.