Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Pretext

Fast, accurate text measurement and layout in JavaScript without the DOM.

UI components and iconsNPM

GitHubWebsite

1. License

License from npm.

github.com/chenglou/pretext

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

62 / 100
Gid Score, #849 overall
2.8M
downloads a week, npm
51.1K
GitHub stars
5
agent projects use it
Pretext: downloads per weeknpm, @chenglou/pretext 2,769,538
Pretext: GitHub starschenglou/pretext 51,095

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

5 projects, 0.2%

Often used with

In 54.5% of its projects
In 72.7% of its projects
In 63.6% of its projects
In 54.5% of its projects
In 36.4% of its projects
In 36.4% of its projects
In 36.4% of its projects
In 90.9% of its projects

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

See all

More in UI components and icons

Alternatives

Pretext This page

MITGid 622.8M/wk

Compare Pretext with another tool

Get started

Install it.

npm install @chenglou/pretext

No step-by-step start for Pretext yet: we have not written its hand-checked card.