# @gerrit0/mini-shiki

> This is a re-bundled version of [Shiki](https://shiki.style) which strips out the dependencies which aren't necessary for [TypeDoc](https://typedoc.org/)'s usage.

Latest version **3.23.0** (published 2026-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gerrit0/mini-shiki
pnpm add @gerrit0/mini-shiki
yarn add @gerrit0/mini-shiki
bun add @gerrit0/mini-shiki
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; has provenance.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.23.0 |
| Published | 2026-02-26 |
| First published | 2024-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 5 |
| Unpacked size | 631.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Maintainers | gerrit0 |

## Links

- npm: https://www.npmjs.com/package/@gerrit0/mini-shiki
- Repository: https://github.com/Gerrit0/mini-shiki
- Homepage: https://github.com/Gerrit0/mini-shiki#readme
- Issues: https://github.com/Gerrit0/mini-shiki/issues
- npm.io page: https://npm.io/package/@gerrit0/mini-shiki

## Dependencies (5)

- [@shikijs/langs](https://npm.io/package/@shikijs/langs.md) ^3.23.0
- [@shikijs/types](https://npm.io/package/@shikijs/types.md) ^3.23.0
- [@shikijs/themes](https://npm.io/package/@shikijs/themes.md) ^3.23.0
- [@shikijs/vscode-textmate](https://npm.io/package/@shikijs/vscode-textmate.md) ^10.0.2
- [@shikijs/engine-oniguruma](https://npm.io/package/@shikijs/engine-oniguruma.md) ^3.23.0

## Recent versions

- 3.23.0 (latest) — 2026-02-26
- 3.22.0 — 2026-01-31
- 3.21.0 — 2026-01-08
- 3.20.0 — 2025-12-13
- 3.19.0 — 2025-12-04
- 3.18.0 — 2025-12-03
- 3.17.1 — 2025-12-02
- 3.17.0 — 2025-11-28
- 3.15.0 — 2025-11-07
- 3.14.0 — 2025-10-27
- 3.13.1 — 2025-10-11
- 3.13.0 — 2025-09-20
- 3.12.2 — 2025-09-04
- 3.12.1 — 2025-09-02
- 3.12.0 — 2025-08-28
- … 37 more at https://npm.io/package/@gerrit0/mini-shiki/versions

## README

# @gerrit0/mini-shiki

This is a re-bundled version of [Shiki](https://shiki.style) which strips out
the dependencies which aren't necessary for [TypeDoc](https://typedoc.org/)'s usage.

## Why?

Compare Shiki's dependency tree:

<img src="static/shiki-dependency-tree.svg">

To this package's dependency tree:

<img src="static/mini-shiki-dependency-tree.svg">

The Shiki maintainers [have declined](https://github.com/shikijs/shiki/issues/844) to split
up the package in a way which makes it possible to avoid these dependencies when just relying
on shikijs published packages.

## Releases

This package will be released and keep the same major/minor version numbers as Shiki.
Patch versions will generally be the same as Shiki, but may differ if adjustments are
necessary to fix compatibility issues.

## ESM / CommonJS

This package is ESM, but does not use top level await, so may be `require`d in
Node 23, or Node 20.17+ with the `--experimental-require-module` flag.

## Usage

```js
import {
  codeToTokensWithThemes,
  createShikiInternal,
  createOnigurumaEngine,
  bundledLanguages,
  bundledThemes,
  loadBuiltinWasm,
} from "@gerrit0/mini-shiki";

await loadBuiltinWasm();
const shiki = await createShikiInternal({
  engine: createOnigurumaEngine(),
  langs: [bundledLanguages.typescript],
  themes: [bundledThemes["light-plus"]],
});

const lines = codeToTokensWithThemes(shiki, "console.log('Hello world!')", {
  themes: { light: "light-plus" },
  lang: "typescript",
});
```

---
_Source: https://npm.io/package/@gerrit0/mini-shiki · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
