MCPcopy
hub / github.com/shikijs/shiki

github.com/shikijs/shiki @v4.3.0 sqlite

repository ↗ · DeepWiki ↗ · release v4.3.0 ↗
719 symbols 2,064 edges 364 files 15 documented · 2%
README

Shiki Logo

Shiki 式

NPM version NPM downloads Codecov

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

📚 Documentation

Branch

The main branch is currently at v4.x.

Branch Description
v3 v3.23 of Shiki
v2 v2.5 of Shiki
v1 v1.29 of Shiki
v0 v0.14 of Shiki, the legacy version

License

MIT

Extension points exported contracts — how you extend this code

ThemeSettingsSelectors (Interface)
for explanations
packages/primitive/src/highlight/code-to-tokens-base.ts
PatternScanner (Interface)
(no doc) [1 implementers]
packages/types/src/engines.ts
FileSystemTypeResultCacheOptions (Interface)
(no doc)
packages/vitepress-twoslash/src/cache-fs.ts
MarkdownItShikiExtraOptions (Interface)
(no doc)
packages/markdown-it/src/common.ts
TransformerDecorationsInternalContext (Interface)
(no doc)
packages/core/src/transformer-decorations.ts
RendererRichOptions (Interface)
(no doc)
packages/twoslash/src/renderer-rich.ts
TransformerRenderIndentGuidesOptions (Interface)
(no doc)
packages/transformers/src/transformers/render-indent-guides.ts
MonacoTheme (Interface)
(no doc)
packages/monaco/src/index.ts

Core symbols most depended-on inside this repo

codeToHtml
called by 85
packages/core/src/highlight/code-to-html.ts
createHighlighter
called by 70
packages/core/src/constructors/bundle-factory.ts
replace
called by 47
packages/magic-move/src/renderer.ts
createJavaScriptRegexEngine
called by 36
packages/engine-javascript/src/engine-compile.ts
variable
called by 34
packages/core/src/theme-css-variables.ts
add
called by 31
packages/twoslash/src/includes.ts
createHighlighterCore
called by 30
packages/core/src/constructors/highlighter.ts
loadLanguage
called by 29
packages/primitive/src/textmate/registry.ts

Shape

Function 459
Interface 123
Method 99
Class 37
Enum 1

Languages

TypeScript99%
Python1%
Java1%

Modules by API surface

packages/engine-oniguruma/src/oniguruma/index.ts30 symbols
packages/core/src/constructors/bundle-factory.ts20 symbols
packages/twoslash/src/renderer-rich.ts16 symbols
packages/primitive/src/textmate/grammar-state.ts15 symbols
packages/magic-move/src/renderer.ts15 symbols
packages/vitepress-twoslash/src/cache-inline/cache-inline.ts13 symbols
packages/primitive/src/textmate/registry.ts13 symbols
packages/primitive/src/constructors/primitive.ts13 symbols
packages/magic-move/src/core.ts13 symbols
packages/magic-move/src/web-component/ShikiMagicMove.ts12 symbols
packages/core/src/highlight/code-to-hast.ts12 symbols
packages/types/src/tokens.ts11 symbols

Dependencies from manifests, versioned

@antfu/eslint-configcatalog:cli · 1×
@antfu/nicatalog:cli · 1×
@antfu/utilscatalog:inlined · 1×
@babel/preset-reactcatalog:bundling · 1×
@babel/preset-typescriptcatalog:bundling · 1×
@iconify-json/carboncatalog:icons · 1×
@iconify-json/codiconcatalog:icons · 1×
@iconify-json/phcatalog:icons · 1×
@iconify-json/svg-spinnerscatalog:icons · 1×
@rollup/plugin-aliascatalog:bundling · 1×
@rollup/plugin-babelcatalog:bundling · 1×
@rollup/plugin-commonjscatalog:bundling · 1×

For agents

$ claude mcp add shiki \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact