Pretext
Fast, accurate text measurement and layout in JavaScript without the DOM.
3. Used by agents' projects
Dependency in 5 public GitHub projects set up for AI coding agents that we scanned (0.1%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Pretext does
Fast, accurate text measurement and layout in JavaScript without the DOM.
Pretext popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Pretext is used
- Pretext joined the catalog on its public numbers (2,769,538 downloads a week on npm and 51,095 GitHub stars), not on our project count: it is a dependency in 11 public GitHub projects of our scan, 5 of them set up for AI coding agents.
- Projects that use it most often also use Next.js (54.5%), React (72.7%), Zod (63.6%).
By coding agent
Often used with
More about Pretext
Agent Skills for it
- pretext: Use when building creative browser demos with @chenglou/pretext — DOM-free text layout for ASCII art, typographic flow around obstacles, tex
More in UI components and icons
Alternatives
Pretext This page
Get started
Install it.
npm install @chenglou/pretextNo step-by-step start for Pretext yet: we have not written its hand-checked card.