flâneur — a map of the web's best reading

Pretext - Text measurement that never touches the DOM.

pretextjs.dev · 1,578 words · saved by 2 readers

Pretext is a high-performance, pure JavaScript/TypeScript layout library for text rendering. Zero dependencies, framework-agnostic, blazing fast.

Pure JS · Zero DOM reads · TypeScript-first Pretext Text measurement that never touches the DOM. Pretext measures and positions multiline text entirely through arithmetic — no getBoundingClientRect , no reflow, no thrashing. Fast on first call. Instant on every call after. Open Playground → Browse demos Editorial Engine Drag orbs · Click to pause · Zero DOM reads Load live demo ▶ Pretext Breaker — Play the Game A Breakout-style arcade game where every pixel is rendered with text. Smash word-bricks and watch text reflow in real time — powered by Pretext.js. Play → 14k + GitHub stars for Pretext

Explore this link on the map →

saved by

related reading