Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

Shiki architecture

Changing packages/types/src/utils in Shiki reaches 131 modules. 6 files call it directly. Snapshot de15fd2.

The first file to open in Shiki is packages/types/src/utils. A change there reaches 131 of 219 modules.

This lead file reaches 60% of the graph. The median published proof reaches 60%.

src/utils131 · 6 fan-in
src/options127 · 5 fan-in
src/tokens127 · 4 fan-in
src/transformers127 · 2 fan-in
types/src122 · 64 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: Shiki · Score: 90.7/100 (Excellent architecture) · 219 modules · 404 edges · TypeScript · 18 of 94 · Language score median 80.1

Cycles
8
Duplicate authorities
5
God modules
4
Layer violations
0
arc impact packages/types/src/utils

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for Shiki
[![ArcSight architecture proof for Shiki](https://arcsight.ai/badge/proof/shiki/)](https://arcsight.ai/repositories/shiki/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

Shiki · de15fd2

RankFileFan-inBlastShare
1packages/types/src/utils

concentrates too many responsibilities, shared utility hub

613160%
2packages/types/src/options

concentrates too many responsibilities, shared utility hub, depends on an unstable module

512758%
3packages/types/src/tokens412758%
4packages/types/src/transformers212758%
5packages/types/src6412256%
All ranked files
RankFileFan-inBlastShare
6packages/primitive/src/utils58338%
7packages/primitive/src77534%
8packages/core/src/utils77333%
9packages/core/src176329%

Circular dependencies

This snapshot records 8 dependency cycles.

Nearby proofs

Snapshot notes

In shikijs shiki, a change that begins in types utils keeps traveling until it reaches types options, with types tokens as the third file on that walk and the engine-oniguruma-rollup.config group as the group around them, snapshot mark ddbcbefbaf.

types transformers is worth opening beside types utils because types src still participates when types transformers moves, and primitive utils stays in view for shikijs shiki, snapshot mark ddbcbefbaf.

Review primitive src only after types options and core utils are both on the table, since the link from packages src back to types tokens belongs to shikijs shiki under snapshot mark ddbcbefbaf.

types textmate and types langs are later stops, and a reviewer who has already seen types utils should still look at types themes before treating the engine-oniguruma-rollup.config group as understood for shikijs shiki, snapshot mark ddbcbefbaf.

types utils closes the file list after types options and types tokens, which keeps the shikijs shiki note tied to snapshot mark ddbcbefbaf, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • engine-oniguruma-rollup.config (3 modules)
  • src-types (22 modules)
  • shiki-src (29 modules)
  • types-src (108 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in shikijs shiki: types utils?
Start with types utils, because the rest of the shikijs shiki walk leaves from that file and types options is the next file in the same review. Commit ddbcbefbaf records it.
What else is on the shikijs shiki walk besides types utils and types tokens?
types tokens and types transformers stay on the walk with types src, which are different files from types utils inside the engine-oniguruma-rollup.config group for shikijs shiki. Commit ddbcbefbaf records it.
How should a reviewer use primitive utils in the shikijs shiki snapshot?
Keep primitive utils, primitive src, and core utils open together, then check packages src before merging the shikijs shiki change. Commit ddbcbefbaf records it.
Where does the shikijs shiki review stop after types textmate?
Stop after types textmate, types langs, and types themes have been compared with types utils, leaving the engine-oniguruma-rollup.config group until those shikijs shiki files are clear. Commit ddbcbefbaf records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/shiki/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo