Skip to content
Codemap
Esc
↑↓navigate↵open⌘Jpreview
On this page

fan-in

Rank files by how many other files import them (import hubs).

High fan-in means changes ripple through many consumers — protect with tests before refactoring.

codemap query --json --recipe fan-in
codemap hotspots --json   # outcome alias → same recipe

No params. The dependencies table aggregates static imports, dynamic imports, and resolved module-graph edges.

Inspect SQL: codemap query --print-sql fan-in. Full catalog: codemap query --recipes-json. Related: codemap impact <file> for a single target’s dependents.

Last updated on

Was this page helpful?