sverklo audit
B
Overall Health
C
Dead code
22% orphan symbols (46/208)
B
Circular deps
2 cycles detected
B
Coupling
max fan-in: 13 (src/core/utils/internal/devUtils.ts)
A
Security
0 concerns found
Overview
- 537 files indexed
- 1041 code symbols extracted
- 9996 symbol references tracked
- 0 active memories (0 core, 0 stale)
- Languages: typescript (522), javascript (15)
God Nodes (most-referenced symbols)
These are the symbols your codebase depends on most. Changes here have the largest blast radius.
- setupWorker — 132 references
- setupServer — 93 references
- waitFor — 58 references
- resetHandlers — 46 references
- AnyHandler — 43 references
- onUnhandledRequest — 30 references
- invariant — 29 references
- formatMessage — 28 references
- parse — 27 references
- normalizePath — 25 references
Hub Files (highest PageRank)
Core architectural files — imported by many others.
test/browser/playwright.extend.ts(1.00)test/support/utils.ts(0.28)test/support/WebSocketServer.ts(0.27)test/support/waitFor.ts(0.24)test/browser/setup/webpackHttpServer.ts(0.22)test/browser/setup/workerConsole.ts(0.22)config/constants.js(0.22)test/support/graphql.ts(0.17)src/core/utils/internal/isObject.ts(0.11)src/core/handlers/RequestHandler.ts(0.10)
Orphans (potential dead code)
Named classs with zero detected references. Could be dead code, public API exports, or referenced dynamically.
- NetworkFrame —
src/core/experimental/frames/network-frame.ts:19 - WebSocketClientStore —
src/core/ws/WebSocketClientStore.ts:8 - createHttpHandler —
src/core/http.ts:38 - createScopedGraphQLHandler —
src/core/graphql.ts:49 - createGraphQLOperationHandler —
src/core/graphql.ts:58 - createWebSocketLinkHandler —
src/core/ws.ts:92 - RequestEvent —
src/core/experimental/frames/http-frame.ts:26 - UnhandledExceptionEvent —
src/core/experimental/frames/http-frame.ts:69 - HttpNetworkFrame —
src/core/experimental/frames/http-frame.ts:104 - CookieStore —
src/core/utils/cookieStore.ts:12
Coupling (high-PageRank files)
test/browser/playwright.extend.ts(1.00)test/support/utils.ts(0.28)test/support/WebSocketServer.ts(0.27)test/support/waitFor.ts(0.24)test/browser/setup/webpackHttpServer.ts(0.22)
Circular Dependencies (2 cycles)
- src/browser/sources/service-worker-source.ts -> src/browser/utils/should-invalidate-worker.ts -> src/browser/sources/service-worker-source.ts
- src/core/experimental/frames/http-frame.ts -> src/core/experimental/on-unhandled-frame.ts -> src/core/experimental/frames/http-frame.ts
Suggested Next Steps
- Before refactoring setupWorker, run
sverklo_impactto see the 132 call sites test/browser/playwright.extend.tsis your most-imported file — changes here cascade widely- 15+ potential orphans detected — audit for dead code