Skip to content
Codemap
Esc
navigateopen⌘Jpreview

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 July 20, 2026

Was this page helpful?