What problem does it solve? Building creative browser demos with text that flows around moving shapes, shatters into particles, or forms game geometry requires knowing line breaks before rendering, which the DOM cannot provide without expensive reflows. ## Core Features & Use Cases - Variable-width text reflow: Uses layoutNextLineRange to flow paragraphs around draggable orbs, ASCII logos, and morphing wire shapes at 60fps. - Text-as-geometry games and kinetic typography: Turns measured words into Breakout bricks, explodes sentences into per-grapheme particles, and animates per-line transforms. - Single-file HTML output: Produces self-contained demos importing @chenglou/pretext via esm.sh with no build step, verified locally with python3 -m http.server. - Use Case: Ask for a demo where an editorial paragraph parts around a draggable glowing orb, and receive a ready-to-open HTML file with a considered dark palette and real prose corpus. ## Quick Start Create a pretext demo where a paragraph of real prose flows around a draggable glowing orb and save it as a single HTML file I can open in my browser.