shikijs/twoslash
You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1925
- days_rel: n/a
- days_push: 926
- n_releases_24m: 0
Adoption not part of the score
1142 stars · 48 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Shiki Twoslash combines the Shiki syntax highlighter with the TypeScript compiler to generate statically rendered, type-aware code samples for documentation. It ships plugins for markdown renderers (remark, markdown-it) and static site generators (Docusaurus, Gatsby, 11ty, VuePress, Hexo), plus a CLI and a VS Code extension.
Use cases
- add type hover info and compiler errors to code samples in docs
- statically syntax highlight markdown code blocks with VS Code themes
- verify TypeScript code examples still compile across versions
- render twoslash-annotated code blocks in Docusaurus or Gatsby
- convert markdown and ts/tsx files to highlighted HTML via CLI
When to avoid
- you use Shiki v1.0 or later - the integration moved into Shiki's monorepo as a transformer
- you need highlighting for non-TypeScript/JavaScript samples with type information
- your docs stack isn't covered by the available renderer plugins
Facets
library · maturity maintenance
documentation markdown parser cli plugin-system developer-tools documentation developer-tools web-development programming-languages cli syntax-highlighting shiki twoslash typescript-compiler code-samples remark-plugin markdown-it-plugin docusaurus gatsby vscode-extension nodejs web-server
2 sources
- readme: https://github.com/shikijs/twoslash · fetched 2026-08-28 · 053bb419f69d
- homepage: https://shikijs.github.io/twoslash/ · fetched 2026-08-29 · e9fb0ff25c64
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shikijs/twoslash | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="shikijs/twoslash")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem