Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

ansi-to-html

Converts ANSI escape code colored terminal text to HTML markup.

Utilities npm MIT

Used in agent projects
8
0.2% of 4,818 JS/TS repos built with AI coding agents; 28 counting our dependency samples
Gid Score
39 /100
#2637 of 3,794 tools, #286 in utilities · ranking
Rank in utilities
#133 of 361
by use in those projects
Downloads
1.3M
npm, last 7 days, ansi-to-html
GitHub stars
376
52 forks · last push Nov 21, 2025

How ansi-to-html is used

ansi-to-html is a dependency in 8 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 28 projects, and what it is used with below comes from all of them. Projects that use it most often also use Express (92.9%), Model Context Protocol SDK (JavaScript) (85.7%), Anthropic SDK (82.1%).

ansi-to-html popularity over time

Top tools by Gid Score

ansi-to-html: downloads per weeknpm, ansi-to-html 1,286,656

Gid Score 39: downloads 66, use in agent projects 32, GitHub stars 0, downloads trend 54 (each 0-100). How it is calculated.

Often used with ansi-to-html

Express92.9% of ansi-to-html projects · 13.7× more than average
Model Context Protocol SDK (JavaScript)85.7% of ansi-to-html projects · 9.0× more than average
Anthropic SDK82.1% of ansi-to-html projects · 22.0× more than average
esbuild82.1% of ansi-to-html projects · 17.6× more than average
glob75.0% of ansi-to-html projects · 38.5× more than average
Handlebars67.9% of ansi-to-html projects · 156.0× more than average
tsx67.9% of ansi-to-html projects · 4.5× more than average
zod-to-json-schema67.9% of ansi-to-html projects · 100.3× more than average

From all 28 projects in our scan that use ansi-to-html, including the dependency samples.

By coding agent

Claude Code0.2% of projects set up for it

Share of public repos configured for each agent that list ansi-to-html as a dependency.

Install

Packagenpm install ansi-to-html
Main stacksTypeScript / JavaScript (25), Python (2), Next.js (1)
Example projectsthedotmack/claude-mem, alishobeiri/thread-notebook, JuanLuisLozadaGx/claude-men, dimaslanjaka/php-proxy-hunter, starling114/crypto-universe

Alternatives to ansi-to-html

All utilities

In our scan, none of the most used tools in Utilities does the same job as ansi-to-html: they are add-ons, companions or tools for a different task.

More in Utilities: clsx date-fns PyYAML uuid yaml js-yaml glob Lodash

Is ansi-to-html right for your project? Ask AgentGid →