Fastify
JavaScriptFast, low-overhead web framework for Node.js
Fastify is cycle-free with one central hub, fastify.js. For this CommonJS code base the call graph adds little: most calls go through module objects that are not resolved statically.
Call resolution (3,124 call sites)
- Resolved in the repository
- 283
- To libraries or the standard library
- 536
- Ambiguous (several possible targets)
- 0
- Unresolved (could be repo code)
- 2,305
The rate above is resolved ÷ (resolved + ambiguous + unresolved). Calls to libraries and the standard library cannot reach this repository, so they are shown separately and left out of it. Test code is included in these counts.
What the analysis shows
No cycle in the module graph. fastify.js is imported by 82 files; lib/symbols.js is the next most shared module.
198 of the 287 analyzed files are tests, which is why the largest zones are test folders.
Of 3,124 call sites only 9% resolve inside the repository, and 60 of the resolved calls cross files. Functions taken from require by name (const { hookRunnerApplication } = require('./lib/hooks')) now resolve, but most calls go through module objects and plugin instances, which the analyzer does not resolve.
Fastify is itself the framework, and its plugin registrations are not recognized as routes or handlers. The analyzer records only the package entry point.
Re-analyzed with the current analyzer, the same commit gives the same files, module dependencies and cycles as the October demo (287 files, 347 module dependencies, 0 cycle groups). More calls resolve: 283 inside the repository, against 180 in October. The additional calls are to functions taken from require by name and to functions exported through module.exports. The analysis took 14.3 s with a peak of 159 MB (October: 21.4 s, 162 MB).
Most widely called symbols (calling files)
- lib/content-type.js#ContentType.<static>.from (4)
- lib/error-handler.js#buildErrorHandler (3)
- lib/error-status.js#setErrorStatusCode (3)
- lib/logger-factory.js#createChildLogger (3)
- lib/req-id-gen-factory.js#getGenReqId (3)
- lib/decorate.js#checkExistence (2)
Compared with the October 2026 demo
The same commit, analyzed again with the current analyzer. Both columns use the same definitions; differences come from analyzer changes, explained in the findings above where they matter. The October demo recorded only the resolved-call count, so the other call-resolution rows show the current analyzer only.
| Measure | October 2026 demo | Current analyzer |
|---|---|---|
Files analyzed graph nodes (Go: packages) | 287 | 287 |
Source lines (SLOC) non-blank, non-comment lines of analyzed files | 63,080 | 63,080 |
Module dependencies distinct file-to-file links, test-only and name-match links excluded | 347 | 347 |
Relationship records all edge rows of every kind, including links to external symbols | 347 | 347 |
Cycle groups groups of files that depend on each other | 0 | 0 |
Largest cycle (files) size of the largest cycle group | 0 | 0 |
Most-imported module distinct production importers of the top module | 82 (fastify.js) | 82 (fastify.js) |
Call sites resolved in repo calls resolved to a function inside the repository / all call sites | 180 / 3,124 | 283 / 3,124 |
Calls to libraries (external) calls into other packages or the language's standard library | n/a | 536 |
Ambiguous calls calls with several possible targets inside the repository | n/a | 0 |
Unresolved calls calls that could reach repository code but were not pinned to a target | n/a | 2,305 |
Resolved of in-repo calls resolved / (resolved + ambiguous + unresolved): external calls cannot reach the repository | n/a | 11% |
Framework registrations routes, handlers, hooks, entry points with resolution status | 1 | 1 |
Architectural zones package-hierarchy zones | 23 | 23 |
Analysis time (s) wall time of the analysis call | 21.4 | 14.3 |
Peak memory (MB) container memory peak during the analysis | 162 | 159 |
Limitations
- The call graph covers little of this repository; use the module graph and the hub summary.
- Static analysis records relationships visible in the source. It does not see dynamic loading, reflection, or behaviour at runtime; verify important conclusions in the code.
Download the analysis
A full bundle of a large repository exceeds many models' context windows; the focused slices below answer one question each in a fraction of the size.
Focused slices
Every cycle group with its members and size.
scc-summary
The most depended-on and most dependent files, with the reasons they rank high.
hub-summary
Everything that depends on the main hub, two levels deep.
blast-radius
Test-side callers reachable from the most-called symbol (see limitations).
affected-tests
Resolved calls to the most-called symbol, with call sites.
call-diagnostics
Ready to run this on your own codebase?
Hosted analyses use the same analyzer as this demo, within your usage limits.