# Shiki

A beautiful yet powerful syntax highlighter

Repository: https://github.com/shikijs/shiki
Canonical: https://ross.abutalabs.com/products/shiki
Homepage: http://shiki.style/
Language: TypeScript
License: MIT
License Family: permissive
Topics: markdown, shiki, syntax-highlighting, textmate-grammar
Last push: 2026-08-10T04:54:31+00:00
Link (homepage): http://shiki.style/
Link (site_page): https://shiki.style/guide/install

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 97, release rhythm 85, longevity 100
- inputs: {"age_days": 2865, "days_push": 23, "days_rel": 23, "gap_med": 3, "n_releases_24m": 96}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13747, forks 598 (observed 2026-08-28T04:11:04.726268+00:00)

## What it is
Shiki is a syntax highlighter for JavaScript/TypeScript that uses TextMate grammars, the same engine as VS Code, to produce accurate, beautifully styled HTML for code snippets. It runs ahead of time with zero runtime JavaScript, works in any JS runtime, and includes integrations for markdown-it, rehype, Monaco Editor, and animated code blocks via Shiki Magic Move.

## Use cases
- highlight code snippets in a static site generator
- render code blocks in markdown with VS Code-quality colors
- generate syntax-highlighted HTML at build time with no client JS
- add animated code transitions to presentations
- highlight code in a blog or documentation site
- get tokens or HAST output for custom code rendering

## When to choose
- you need accurate highlighting matching VS Code's rendering
- you want zero-runtime, build-time highlighting for static content
- you need broad language/theme support with ESM tree-shaking
- you want integrations with markdown-it, rehype, or Monaco

## When to avoid
- you need client-side highlighting of dynamically injected code with a tiny footprint
- you need a pure-CSS or regex-free minimal highlighter
- your environment cannot load WASM or async grammars

## Facets
- artifact type: library
- maturity: active
- function: parser, developer-tools, markdown, templating
- domain: developer-tools, web-development, frontend, documentation
- platform: browser, cross-platform, wasm
- tags: syntax-highlighting, textmate-grammar, code-to-html, zero-runtime, esm, vs-code-themes, code-blocks, magic-move, nodejs, web-server

## Member repositories
- shikijs/shiki (main) score 93
- shikijs/shiki-magic-move (plugin) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:04.726268+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:04.107589+00:00, confidence not recorded.
  - readme: https://github.com/shikijs/shiki (fetched 2026-08-28T04:11:04.726268+00:00, sha d96464cf1519)
  - homepage: http://shiki.style/ (fetched 2026-08-29T08:08:04.379973+00:00, sha 06f51a9615dd)
  - site_page: https://shiki.style/guide/install (fetched 2026-08-29T08:08:04.382434+00:00, sha 99412cb78485)
  - registry_npm: https://registry.npmjs.org/shiki-magic-move (fetched 2026-08-29T08:08:04.384776+00:00, sha 3262420b1065)
- Data as of 2026-08-30T08:39:29.467469+00:00.
