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.

Supermemory

TypeScript

AI memory engine: TypeScript applications with Python SDK packages

10 frameworks detected across a TypeScript and Python monorepo, from Next.js file routes to FastAPI handlers. Cross-language links through shared environment variables are now part of the graph; some Python relative imports are still missed.

Source
supermemoryai/supermemory
f355dc80396f (2026-10-24)
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
17.8 s, 181 MB peak memory (limit 1,792 MB)
Languages and parsing
javascript (full), python (full), typescript (full)
398 ok, 5 stub
403
Files analyzed
51,646
Source lines
1 / 3
Cycle groups / largest (files)
1,775
Calls resolved in repo (32% of the calls that could reach repo code)

Call resolution (8,661 call sites)

Resolved in the repository
1,775
To libraries or the standard library
3,185
Ambiguous (several possible targets)
908
Unresolved (could be repo code)
2,793

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

FindingA utility hub and one small cycle

packages/lib/utils.ts is the most imported file (57 importers), and there is one 3-file cycle in the memory-graph package.

Changed since OctoberCross-language links through shared configuration

The analyzer now records 277 links between Python and TypeScript files that read the same environment variable (os.getenv on one side, process.env on the other; for example MODEL_NAME in the SDK playground). They add 251 module dependencies compared with the October demo, whose analysis lost these links to a parser-binding defect that has since been fixed. Cycles are unchanged. Calls to imported TypeScript functions also resolve more often than in October: 1,775 resolved calls, against 1,548.

FindingFramework inventory across both languages

Detected: drizzle, express, fastapi, hono, nextjs, pytest, react, starlette, tanstack_query, vite. The analyzer lists 20 Next.js file routes, 13 API route handlers, 267 React components and 43 lifecycle hooks. It also matches 5 client-side requests to the server route they call; 24 remain unresolved.

FindingCall graph for TypeScript and Python

8,661 call sites; 20% resolve inside the repository. The most widely called helper is cn, the class-name utility in packages/lib/utils.ts (57 calling files).

LimitationSome Python imports are missed

In the Python SDK packages, relative imports such as from .connection import AgentSupermemory are recorded as external (151 imports). These packages sit under folder names with hyphens, and the import is resolved to a module path spelled with underscores, which matches no file. We checked the source: the imports are internal.

Largest cycle group

  • packages/memory-graph/src/canvas/simulation.ts
  • packages/memory-graph/src/constants.ts
  • packages/memory-graph/src/types.ts

Most widely called symbols (calling files)

  • packages/lib/utils.ts#cn (57)
  • apps/mcp/src/server/tools/types.ts#textContent (18)
  • apps/mcp/src/server/tools/compat.ts#namespaceArg (12)
  • apps/mcp/src/server/app-metadata.ts#appToolMeta (8)
  • apps/mcp/src/widget/design/lib/cn.ts#cn (8)
  • apps/mcp/src/server/app-metadata.ts#appResultMeta (6)

Endpoints (first rows of the inventory)

  • POST /chat -> apps/sdk-playground/python/server.py#chat
  • GET /context -> apps/sdk-playground/python/server.py#context_get
  • POST /context -> apps/sdk-playground/python/server.py#context_post
  • GET /health -> apps/sdk-playground/python/server.py#health
  • * / -> apps/mcp/src/server/index.ts#<anonymous#5>
  • * /mcp -> apps/mcp/src/server/index.ts#<anonymous#6>
  • * /mcp/ -> apps/mcp/src/server/index.ts#<anonymous#7>
  • GET / -> apps/mcp/src/server/index.ts#<anonymous#1>

8 of 33 shown

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)
403403
Source lines (SLOC)
non-blank, non-comment lines of analyzed files
51,64651,646
Module dependencies
distinct file-to-file links, test-only and name-match links excluded
611862
Relationship records
all edge rows of every kind, including links to external symbols
640917
Cycle groups
groups of files that depend on each other
11
Largest cycle (files)
size of the largest cycle group
33
Most-imported module
distinct production importers of the top module
57 (utils.ts)57 (utils.ts)
Call sites resolved in repo
calls resolved to a function inside the repository / all call sites
1,548 / 8,6611,775 / 8,661
Calls to libraries (external)
calls into other packages or the language's standard library
n/a3,185
Ambiguous calls
calls with several possible targets inside the repository
n/a908
Unresolved calls
calls that could reach repository code but were not pinned to a target
n/a2,793
Resolved of in-repo calls
resolved / (resolved + ambiguous + unresolved): external calls cannot reach the repository
n/a32%
Framework registrations
routes, handlers, hooks, entry points with resolution status
9292
Architectural zones
package-hierarchy zones
9191
Analysis time (s)
wall time of the analysis call
18.617.8
Peak memory (MB)
container memory peak during the analysis
179181

Limitations

  • 32% of call sites stay unresolved, mostly calls on objects whose type is not known statically.
  • Duplicate-code and dead-code figures are candidates, not proof; 132 files are listed as possibly unused, including documentation snippets that are loaded by other tools.
  • An environment-variable link says that both files read the same setting, not that one calls the other.
  • 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 (36 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