# @shikijs/primitive

> Tokenizer primitives of Shiki

Latest version **4.4.3** (published 2026-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @shikijs/primitive
pnpm add @shikijs/primitive
yarn add @shikijs/primitive
bun add @shikijs/primitive
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.4.3 |
| Published | 2026-08-10 |
| First published | 2026-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 3 |
| Unpacked size | 38.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 13807 |
| Author | Anthony Fu <anthonyfu117@hotmail.com> |
| Maintainers | antfu, orta, octref |
| Keywords | shiki |

## Links

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

## Dependencies (3)

- [@types/hast](https://npm.io/package/@types/hast.md) ^3.0.5
- [@shikijs/types](https://npm.io/package/@shikijs/types.md) 4.4.3
- [@shikijs/vscode-textmate](https://npm.io/package/@shikijs/vscode-textmate.md) ^10.0.2

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 4.4.3 (latest) — 2026-08-10
- 4.4.2 — 2026-08-05
- 4.4.1 — 2026-07-31
- 4.4.0 — 2026-07-31
- 4.3.1 — 2026-07-03
- 4.3.0 — 2026-06-25
- 4.2.0 — 2026-06-03
- 4.1.0 — 2026-05-19
- 4.0.2 — 2026-03-09
- 4.0.1 — 2026-03-02
- 4.0.0 — 2026-02-27
- 0.0.0 — 2026-02-27

## README

<img src="https://raw.githubusercontent.com/shikijs/shiki/main/docs/public/logo.svg" width="150" alt="Shiki Logo" />

# Shiki 式

[![NPM version](https://img.shields.io/npm/v/shiki?color=32A9C3&labelColor=1B3C4A&label=npm)](https://www.npmjs.com/package/shiki)
[![NPM downloads](https://img.shields.io/npm/dm/shiki?color=32A9C3&labelColor=1B3C4A&label=downloads)](https://www.npmjs.com/package/shiki)
[![Codecov](https://img.shields.io/codecov/c/github/shikijs/shiki?token=1uJYfXgZG3&style=flat&labelColor=1B3C4A&color=32A9C3&precision=1)](https://app.codecov.io/gh/shikijs/shiki/tree)

A beautiful syntax highlighter based on TextMate grammar, accurate and powerful.

[📚 **Documentation**](https://shiki.style)

## Branch

The main branch is currently at _v4.x_.

| Branch                                         | Description                        |
| ---------------------------------------------- | ---------------------------------- |
| [v3](https://github.com/shikijs/shiki/tree/v3) | v3.23 of Shiki                     |
| [v2](https://github.com/shikijs/shiki/tree/v2) | v2.5 of Shiki                      |
| [v1](https://github.com/shikijs/shiki/tree/v1) | v1.29 of Shiki                     |
| [v0](https://github.com/shikijs/shiki/tree/v0) | v0.14 of Shiki, the legacy version |

## License

[MIT](./LICENSE)

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