Shiki vs highlight.js
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Shiki is a dependency in 84 (1.7%) and highlight.js in 66 (1.4%): Shiki is 1.3× as common. Among repos created in the last 90 days that use a markdown, editors and content tool, Shiki is in 22.2% and highlight.js in 7.4%, against 9.0% and 7.4% of older ones. 11 projects list both, often a sign of a migration or of a monorepo with several apps.
Markdown, editors and content npm Updated Nov 17, 2026
| Shiki | 1.7% | |
|---|---|---|
| highlight.js | 1.4% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| Shiki | highlight.js | |
|---|---|---|
| Agent projects that use it | 84 | 66 |
| Rank in markdown, editors and content | #7 | #8 |
| In new repos with a markdown, editors and content tool (last 90 days) | 22.2% | 7.4% |
| In older repos with one | 9.0% | 7.4% |
| Downloads, last 7 days | 39.2M | 53.6M |
| GitHub stars | 13.9K | 25K |
| Last push to its repo | Nov 2, 2026 | Nov 11, 2026 |
| License | MIT | BSD-3-Clause |
| Funding | — | — |
| Projects that list both | 11 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Shiki | highlight.js |
|---|---|---|---|
| Claude Code | 2,617 | 2.1% | 1.8% |
| GitHub Copilot | 2,350 | 1.5% | 1.5% |
| Cursor | 1,990 | 1.7% | 1.2% |
| Gemini CLI | 422 | 0% | 1.4% |
| OpenAI Codex | 409 | 2.7% | 0% |
| OpenCode | 304 | 2.3% | 2.0% |
| OpenClaw | 241 | 4.1% | 3.7% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Shiki
Beautiful syntax highlighter powered by TextMate grammars with superior accuracy.
Most often used with it:
| clsx | 63.1% of its projects |
|---|---|
| Tailwind Merge | 59.5% of its projects |
| Tailwind CSS | 78.6% of its projects |
| Zod | 67.9% of its projects |
| TypeScript | 98.8% of its projects |
npm install shiki
highlight.js
Syntax highlighting library with automatic language detection for code blocks.
Most often used with it:
| Marked | 42.4% of its projects |
|---|---|
| Vite | 57.6% of its projects |
| TypeScript | 93.9% of its projects |
| yaml | 33.3% of its projects |
| tsx | 43.9% of its projects |
npm install highlight.js
More matchups
react-markdown vs MarkedMarked vs markdown-itMarked vs MDXreact-markdown vs MDX
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.