# Shiki: 8.5 out of 10

A strong pick. 1st of 8 in [Code editors and highlighters](https://elestia.ai/opensource/code-editors/index.md).

Shiki is a syntax highlighter. It uses the same TextMate grammars and themes as VS Code to produce highlighted HTML, either at build time or at runtime. It does not edit code. For displaying code today it is the most accurate and the fastest-growing choice, and it is the default highlighter in Astro, VitePress and Nuxt Content.

**Best for:** Docs sites, blogs, markdown pipelines and AI chat UIs that need VS Code-quality highlighting, ideally rendered on the server or at build time.

## Scores

- **Overall: 8.5** (likely 7.5 to 9.2)
  - Claude Opus 5.5 (8.5): For displaying code it is the best pick today. It is accurate, actively maintained, growing fast and backed by major frameworks. It does not edit code, and it is heavier than Prism for small client-side uses, so it does not cover the whole category.
  - GPT-6.2 Sol (8.5): Shiki is a leading pick for new documentation sites that can render code at build time. Its grammar fidelity, configurable output, active releases, and framework integrations make it a stronger choice for that job than Prism. The recommendation is narrower across the full category because highlight.js is better suited to lightweight browser highlighting with language detection, and Monaco or CodeMirror serves projects that need editing.
- **Needed by many: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (5.0): Many web developers need to show highlighted code at some point, in docs, blogs, markdown or LLM chat output. Shiki covers only the display half of the category, not editing. It works on any runtime and framework, so within that half it reaches widely.
  - GPT-6.2 Sol (5.3): Shiki serves documentation, tutorials, code previews, and diff viewers across frameworks and runtimes. It covers the display side of the category, and editing requires a separate component. Framework defaults show that the use case is established, but they give little indication of how often JavaScript projects need to display code.
- **Helps a lot: 8.8** (likely 7.8 to 9.5)
  - Claude Opus 5.5 (9.0): Its TextMate grammars give highlighting as accurate as VS Code's, and an independent comparison calls it the more accurate and more compatible option. Transformers, dual themes and Twoslash make it the richest highlighter around. It is slower at runtime and heavy when the full bundle ships to clients, but static rendering avoids most of that cost.
  - GPT-6.2 Sol (8.6): Version 4.6.0 combines VS Code grammar coverage with typed HTML and token APIs, dual themes, and transformers. Zenn found the markup easier to customize and reported that its AI-assisted migration from Prism was manageable. Prism and highlight.js ran faster in a third-party comparison, and browser performance depends on which engine and grammars are loaded.
- **Holds up over time: 8.6** (likely 7.5 to 9.3)
  - Claude Opus 5.5 (9.0): In the last year it shipped 22 releases and 148 commits, and it has 293 contributors. It sits in the Anthony Fu and Nuxt/Vue ecosystem, and major frameworks depend on it. Breaking changes are mild: v4 only dropped Node 18 and removed APIs that were already deprecated.
  - GPT-6.2 Sol (8.1): Shiki recorded 148 commits and 22 releases in the past year, with fixes from several contributors in 4.6.0. The v4 upgrade dropped Node.js 18 and removed deprecated APIs, and a user reported a TypeScript declaration regression at launch. Repeat tag signatures from one maintainer leave some uncertainty about release access, and the available records give a limited picture of funding and issue turnaround.
- **Used widely: 7.2** (likely 6.1 to 8.3)
  - Claude Opus 5.5 (7.5): Downloads grew 9.7x in a year, well above the 4.1 median. Much of that comes through Astro, VitePress, Nuxt Content and AI markdown renderers rather than direct choice. It has 26.6k dependent repos, more than Monaco and CodeMirror but far fewer than Prism and highlight.js, which are much older.
  - GPT-6.2 Sol (6.9): Four-week npm downloads rose 9.7 times year over year, well above the 4.1-times catalog median and ahead of Prism and highlight.js. The 26,594 indexed dependent repositories put Shiki ahead of the editors in this bundle and well behind those two highlighters. Astro’s default integration and automated installs inflate the download count as a measure of direct choices, so the growth signal is clearer than the size of Shiki’s direct user base.
- **Vouched for: 8.1** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (8.0): Astro, VitePress, Nuxt and many docs frameworks build on it, and those teams have a lot to lose if it fails. Independent comparisons confirm its accuracy. Survey data that names it is missing, which keeps the score below the top.
  - GPT-6.2 Sol (8.2): Astro and VitePress use Shiki for Markdown highlighting, and Zenn switched from Prism for broader grammar support and easier markup customization. Pierre’s production experience shows where the trade-off changes for large diffs and frequent edits. The survey evidence measures satisfaction with Astro, so Shiki’s score rests on framework adoption and firsthand reports.
- **Safe: 7.4** (likely 6.3 to 8.5)
  - Claude Opus 5.5 (8.0): It has no advisories ever recorded and an MIT licence. Its 8 dependencies are mostly its own @shikijs packages. The Scorecard is 5.2, with zero scores on token permissions, pinned dependencies and security policy.
  - GPT-6.2 Sol (6.8): Shiki uses the permissive MIT license, has eight direct dependencies mostly under its own scope, and has no recorded OSV advisories. GitHub Actions publishes to npm from tagged releases, and GitHub verifies the 4.6.0 tag signature. The 5.2 OpenSSF Scorecard flags weak workflow token permissions, unpinned dependencies, and a missing security policy. The number of people who can publish and the project’s response time for security reports remain unclear.

## Good

- It colors code exactly like VS Code, with hundreds of languages and themes from the TextMate ecosystem.
- The pure JavaScript regex engine now supports all built-in grammars, so it can run without WASM.
- It has a rich transformer API and add-ons such as Twoslash, line highlights, diffs and dual themes.
- It is very active, with frequent releases and major versions that only remove APIs already marked deprecated.

## Bad

- It only highlights code. For editing in the browser you need CodeMirror or Monaco.
- The full bundle is large (about 1.2 MB gzip), so client-side use needs fine-grained imports to stay small.
- Highlighting is slower and produces more HTML than lighter tools such as Prism or Sugar High.
- The OpenSSF Scorecard is middling at 5.2, with no security policy and no pinned dependencies.

## The numbers

- Downloads, 4 weeks: 154M
- In a year: ×9.7
- GitHub stars: 14k
- Commits, 12 months: 148
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/shikijs/shiki
- npm: https://www.npmjs.com/package/shiki

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
