A
Overall Health

chalk/chalk


https://github.com/chalk/chalk
2026-04-19 00:02:49
A
Dead code
0% orphan symbols (0/10)
A
Circular deps
0 cycles detected
A
Coupling
max fan-in: 1 (source/utilities.js)
A
Security
0 concerns found

Overview

  • 13 files indexed
  • 33 code symbols extracted
  • 269 symbol references tracked
  • 0 active memories (0 core, 0 stale)
  • Languages: javascript (11), typescript (2)

God Nodes (most-referenced symbols)

These are the symbols your codebase depends on most. Changes here have the largest blast radius.

  • Chalk — 14 references
  • ChalkInstance — 8 references
  • chalkFactory — 2 references
  • rainbow — 1 references
  • applyOptions — 1 references
  • applyStyle — 1 references
  • stringReplaceAll — 1 references
  • stringEncaseCRLFWithFirstIndex — 1 references

Hub Files (highest PageRank)

Core architectural files — imported by many others.

  • source/utilities.js (1.00)
  • source/index.js (0.93)
  • benchmark.js (0.21)
  • examples/rainbow.js (0.21)
  • examples/screenshot.js (0.21)
  • source/index.d.ts (0.21)
  • source/index.test-d.ts (0.21)
  • test/_fixture.js (0.21)
  • test/chalk.js (0.21)
  • test/instance.js (0.21)

Orphans

No obvious dead code — every named symbol has at least one reference.

Coupling (high-PageRank files)

  • source/utilities.js (1.00)
  • source/index.js (0.93)
  • benchmark.js (0.21)
  • examples/rainbow.js (0.21)
  • examples/screenshot.js (0.21)

Suggested Next Steps

  • Before refactoring Chalk, run sverklo_impact to see the 14 call sites
  • source/utilities.js is your most-imported file — changes here cascade widely