Code syntax highlighting is provided by Shiki, a library that colors code by programming language.

shiki.style
Shiki homepage screenshot

About Shiki

Shiki is a syntax highlighting library that colors code by programming language. Its homepage says it uses TextMate grammars, the same engine as VS Code, to produce accurate highlighting.

Highlighting runs ahead of time, and the homepage states that this means no JavaScript is shipped to the browser. The library is described as customizable through HAST-based addons and transformations. Its ESM build is fully tree-shakable and runs on any JavaScript runtime, with the homepage naming browsers, Node.js and Cloudflare Workers. Pricing information is not available from the source.

Key features

  • Colors code using TextMate grammars, the same engine as VS Code
  • Runs ahead of time, so no JavaScript is shipped to the browser
  • Customizable through HAST-based addons and transformations
  • Fully tree-shakable ESM build
  • Runs on any JavaScript runtime, including browsers, Node.js and Cloudflare Workers
  • Interactive playground linked from the homepage
Best for: Developers who need syntax highlighting for code in JavaScript-based websites or server runtimes.
Good for
  • Highlighting follows the same TextMate grammar engine used by VS Code
  • Ahead-of-time rendering means no client-side highlighting JavaScript is required
  • Works across several JavaScript runtimes, as listed on the homepage

Shiki at a glance

Type
Website
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Shiki alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

Shiki FAQ

Does Shiki add JavaScript to the browser?
The homepage states that Shiki runs ahead of time and ships zero JavaScript while producing syntax highlighting.
Which runtimes does Shiki support?
The homepage says it runs on any JavaScript runtime and names Browser, Node.js and Cloudflare Workers as examples.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing