Pretext is a 15KB zero-dependency TypeScript library for calculating text layout and reflow using pure arithmetic instead of DOM measurements. It supports multiple writing systems and can be used in browser-based interfaces, games, editorial layouts, and other text-heavy applications.
Pretext sits in PulseGate's Frameworks & SDKs category. It focuses on reflowing and laying out text efficiently without costly DOM measurements or runtime dependencies. It is built as an open-source project for frontend developers building text-heavy interfaces and layout tools. The project is open source (MIT). It ships for the web and the command line, and it can be self-hosted.
Behind Pretext is Cheng Lou, and it first shipped in 2026. The project is developed in the open on GitHub with 50.1k stars and 14 commits in the last 90 days. Key capabilities include Text Reflow, DOM-free Layout, and Multiscript Support.
Summary written by a language model from the project’s public pages.
What PulseGate has recorded for this listing
Same category — not a similarity match