GLITCHWORKS

Systems architecture for the signal-obsessed

AI orchestration, audio technology, developer infrastructure, and experimental interfaces. Built by Kaspars Greizis in Rīga.

Technology

Pretext: DOM-Free Text Layout

This site uses @chenglou/pretext for real-time text measurement without touching the DOM. Drag the slider to see layout computation at ~500× the speed of traditional reflow.

Pretext Engine — Live

Pretext computes multiline text layout without touching the DOM — pure arithmetic, ~500× faster than reflow. Drag the slider to resize this container. The height and line count update in real time via @chenglou/pretext's prepare() + layout() pipeline. No hidden elements. No getBoundingClientRect. Just math.
600px

Featured

Key Projects

View all →

All Projects

Browse by Category

Built with

Astro 6 Vite Pretext Tailwind v4