sverklo
A
Overall Health
pmndrs/zustand
https://github.com/pmndrs/zustand
2026-04-19 00:10:23
A
Dead code
0% orphan symbols (0/22)
A
Circular deps
0 cycles detected
A
Coupling
max fan-in: 2 (src/vanilla.ts)
A
Security
0 concerns found

Overview

  • 50 files indexed
  • 274 code symbols extracted
  • 1008 symbol references tracked
  • 0 active memories (0 core, 0 stale)
  • Languages: typescript (34), javascript (16)

God Nodes (most-referenced symbols)

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

  • useBoundStore — 123 references
  • inc — 40 references
  • StoreApi — 11 references
  • ExampleState — 11 references
  • useStore — 8 references
  • selector — 7 references
  • createJSONStorage — 5 references
  • listener — 5 references
  • Mutate — 4 references
  • assertAllAreDefined — 4 references

Hub Files (highest PageRank)

Core architectural files — imported by many others.

  • src/vanilla.ts (1.00)
  • tests/test-utils.ts (1.00)
  • examples/demo/src/utils/copy-to-clipboard.js (0.79)
  • examples/demo/src/App.jsx (0.69)
  • src/vanilla/shallow.ts (0.69)
  • examples/demo/src/components/Fireflies.jsx (0.61)
  • examples/demo/src/materials/layerMaterial.js (0.61)
  • examples/demo/src/components/CodePreview.jsx (0.56)
  • examples/demo/src/components/Details.jsx (0.56)
  • examples/demo/src/components/Scene.jsx (0.56)

Orphans

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

Coupling (high-PageRank files)

  • src/vanilla.ts (1.00)
  • tests/test-utils.ts (1.00)
  • examples/demo/src/utils/copy-to-clipboard.js (0.79)
  • examples/demo/src/App.jsx (0.69)
  • src/vanilla/shallow.ts (0.69)

Suggested Next Steps

  • Before refactoring useBoundStore, run sverklo_impact to see the 123 call sites
  • src/vanilla.ts is your most-imported file — changes here cascade widely