Real open-source codebases, pinned to a commit

Code Analysis Demos (analyzed 2026-11-03)

10 open-source repositories in 10 languages, pinned to a recorded commit, plus a metrics-only analysis of the full PViz product.

Fastify

JavaScript

Fast, 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.

Source
fastify/fastify
5df959f3af69 (2026-10-25)
default-branch HEAD on the October 2026 analysis date (same commit as the October demo)
Analyzer
PViz analyzer (the engine hosted analyses use)
revision 7d6597af01e2 · [email protected]
Analysis
Run 2026-11-03, status complete
14.3 s, 159 MB peak memory (limit 1,792 MB)
Languages and parsing
javascript (full), typescript (full)
287 ok
287
Files analyzed
63,080
Source lines
none
Cycle groups / largest (files)
283
Calls resolved in repo (11% of the calls that could reach repo code)

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

FindingNo dependency cycles

No cycle in the module graph. fastify.js is imported by 82 files; lib/symbols.js is the next most shared module.

FindingA test-heavy repository

198 of the 287 analyzed files are tests, which is why the largest zones are test folders.

LimitationCall resolution is weak for CommonJS

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.

LimitationNo framework structure detected

Fastify is itself the framework, and its plugin registrations are not recognized as routes or handlers. The analyzer records only the package entry point.

Changed since OctoberSame graph, more calls resolved

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.

MeasureOctober 2026 demoCurrent analyzer
Files analyzed
graph nodes (Go: packages)
287287
Source lines (SLOC)
non-blank, non-comment lines of analyzed files
63,08063,080
Module dependencies
distinct file-to-file links, test-only and name-match links excluded
347347
Relationship records
all edge rows of every kind, including links to external symbols
347347
Cycle groups
groups of files that depend on each other
00
Largest cycle (files)
size of the largest cycle group
00
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,124283 / 3,124
Calls to libraries (external)
calls into other packages or the language's standard library
n/a536
Ambiguous calls
calls with several possible targets inside the repository
n/a0
Unresolved calls
calls that could reach repository code but were not pinned to a target
n/a2,305
Resolved of in-repo calls
resolved / (resolved + ambiguous + unresolved): external calls cannot reach the repository
n/a11%
Framework registrations
routes, handlers, hooks, entry points with resolution status
11
Architectural zones
package-hierarchy zones
2323
Analysis time (s)
wall time of the analysis call
21.414.3
Peak memory (MB)
container memory peak during the analysis
162159

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

All slices, readable and compressed, with the commands used (23 KB)

Ready to run this on your own codebase?

Hosted analyses use the same analyzer as this demo, within your usage limits.

Analyze your repo