Svelte: a map of its code, package by package.
Svelte is the web framework, its compiler and runtime. Wingbox built the graph of the repository, with no model, and the map stacks its code by package: 412 files and 1,367 dependencies on 24 planes, the packages the others depend on lower. Click a file to see what a change to it reaches.

What Wingbox wrote on the whole repository
REPORT.md as the tool wrote it, without its own guesses of architecture layers.
Wingbox report: svelte
Generated on 2026-11-16 by wingbox 0.2.6 from the code graph of this project. Open map.html in this folder for the interactive map.
Key findings
- A change to
packages/svelte/src/internal/shared/utils.jsreaches 1,367 of 3,547 modules (39%) within 2 hops; 39 modules depend on it directly.
Summary
| Modules | 3,547 |
| Dependencies between modules | 5,806 |
| Functions, constants, classes and types | 2,735 |
| Languages | js 3,500, ts 47 |
| Boundary violations | 0 |
Most depended-on modules
A change in one of these files reaches the most code (test files are left out). "Within 2 hops" counts the modules that depend on it directly or through one other module.
| File | Direct dependents | Within 2 hops |
|---|---|---|
packages/svelte/src/index-server.js | 1,140 | 1,309 |
packages/svelte/src/internal/client/index.js | 63 | 102 |
packages/svelte/src/compiler/utils/ast.js | 62 | 124 |
packages/svelte/src/compiler/errors.js | 56 | 96 |
packages/svelte/src/internal/client/reactivity/effects.js | 55 | 145 |
packages/svelte/src/internal/client/runtime.js | 50 | 180 |
packages/svelte/src/compiler/state.js | 45 | 105 |
packages/svelte/src/constants.js | 44 | 224 |
packages/svelte/src/internal/server/index.js | 40 | 51 |
packages/svelte/src/internal/shared/utils.js | 39 | 1,367 |
packages/svelte/src/utils.js | 34 | 131 |
packages/svelte/src/internal/disclose-version.js | 33 | 33 |
packages/svelte/src/index-client.js | 32 | 33 |
packages/svelte/src/internal/client/dom/hydration.js | 29 | 105 |
packages/svelte/src/compiler/phases/nodes.js | 26 | 69 |
Where to start reading
Files that nothing else depends on and that pull in the most modules:
benchmarking/run.js, depends on 5 modulespackages/svelte/src/reactivity/window/index.js, depends on 5 modulespackages/svelte/scripts/generate-browser-support.ts, depends on 4 modulespackages/svelte/src/store/index-client.js, depends on 4 modulespackages/svelte/src/legacy/legacy-server.js, depends on 3 modulesbenchmarking/compare/index.js, depends on 2 modulesbenchmarking/compare/runner.js, depends on 2 modulesplaygrounds/sandbox/ssr-prod.js, depends on 2 modulesbenchmarking/profile-compiler.js, depends on 1 modulepackages/svelte/rollup.config.js, depends on 1 module
Next steps
Check what a change will reach before you make it:
wingbox impact packages/svelte/src/index-server.js
Rebuild after the code changes with wingbox build. This report and the map are rewritten on every build.
Limits
The graph comes from static parsing. Dependencies created at run time (dependency injection, reflection, generated code) are not visible here.
How this was made
- Wingbox 0.2.6 from PyPI on the whole repository at commit 99c0745, 2026-11-16: one command, wingbox build .
- The map leaves out the 3,135 test files and puts every other file on the plane of its package, the folder of its nearest package manifest. The planes are stacked by the dependencies between packages.
- Checked against the code. TypeScript and JavaScript dependencies compared with an import resolver written apart from Wingbox: 5,806 in the graph, 4,617 found by the resolver, 4,617 in both. The more in the graph come from the conditional exports of the svelte package: an import of "svelte" is linked to both its browser and its server entry, where the resolver picks one.
Run it on any repository: pipx install wingbox && wingbox build . · Wingbox on GitHub (MIT)