B
Overall Health

date-fns/date-fns


https://github.com/date-fns/date-fns
2026-04-19 00:03:32
D
Dead code
30% orphan symbols (229/760)
A
Circular deps
0 cycles detected
C
Coupling
max fan-in: 31 (src/parse/_lib/Parser.ts)
A
Security
0 concerns found

Overview

  • 1546 files indexed
  • 2543 code symbols extracted
  • 12220 symbol references tracked
  • 0 active memories (0 core, 0 stale)
  • Languages: typescript (1522), javascript (24)

God Nodes (most-referenced symbols)

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

  • buildMatchFn — 420 references
  • convertToFP — 396 references
  • getTime — 290 references
  • buildFormatLongFn — 279 references
  • setHours — 149 references
  • format — 147 references
  • parseISO — 118 references
  • buildMatchPatternFn — 84 references
  • parse — 82 references
  • toDate — 79 references

Hub Files (highest PageRank)

Core architectural files — imported by many others.

  • src/constants/index.ts (1.00)
  • src/constructFrom/index.ts (0.96)
  • src/toDate/index.ts (0.73)
  • src/fp/_lib/convertToFP/index.ts (0.49)
  • src/locale/_lib/buildFormatLongFn/index.ts (0.27)
  • src/locale/_lib/buildLocalizeFn/index.ts (0.26)
  • src/_lib/test/index.ts (0.17)
  • src/_lib/normalizeDates/index.ts (0.14)
  • src/_lib/defaultOptions/index.ts (0.14)
  • src/locale/_lib/buildMatchFn/index.ts (0.13)

Orphans (potential dead code)

Named classs with zero detected references. Could be dead code, public API exports, or referenced dynamically.

  • Parsersrc/parse/_lib/Parser.ts:5
  • Settersrc/parse/_lib/Setter.ts:8
  • differenceInMillisecondssrc/differenceInMilliseconds/index.ts:26
  • compareLocalAscsrc/differenceInDays/index.ts:96
  • localeToNumbersrc/locale/hi/_lib/localize/index.ts:220
  • intlFormatsrc/intlFormat/index.ts:48
  • roundToNearestMinutessrc/roundToNearestMinutes/index.ts:57
  • roundToNearestHourssrc/roundToNearestHours/index.ts:62
  • intlFormatsrc/intlFormat/index.ts:66
  • intlFormatsrc/intlFormat/index.ts:90

Coupling (high-PageRank files)

  • src/constants/index.ts (1.00)
  • src/constructFrom/index.ts (0.96)
  • src/toDate/index.ts (0.73)
  • src/fp/_lib/convertToFP/index.ts (0.49)
  • src/locale/_lib/buildFormatLongFn/index.ts (0.27)

Suggested Next Steps

  • Before refactoring buildMatchFn, run sverklo_impact to see the 420 call sites
  • src/constants/index.ts is your most-imported file — changes here cascade widely
  • 15+ potential orphans detected — audit for dead code