Supermemory
TypeScriptAI 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.
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
packages/lib/utils.ts is the most imported file (57 importers), and there is one 3-file cycle in the memory-graph package.
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.
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.
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).
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.
| Measure | October 2026 demo | Current analyzer |
|---|---|---|
Files analyzed graph nodes (Go: packages) | 403 | 403 |
Source lines (SLOC) non-blank, non-comment lines of analyzed files | 51,646 | 51,646 |
Module dependencies distinct file-to-file links, test-only and name-match links excluded | 611 | 862 |
Relationship records all edge rows of every kind, including links to external symbols | 640 | 917 |
Cycle groups groups of files that depend on each other | 1 | 1 |
Largest cycle (files) size of the largest cycle group | 3 | 3 |
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,661 | 1,775 / 8,661 |
Calls to libraries (external) calls into other packages or the language's standard library | n/a | 3,185 |
Ambiguous calls calls with several possible targets inside the repository | n/a | 908 |
Unresolved calls calls that could reach repository code but were not pinned to a target | n/a | 2,793 |
Resolved of in-repo calls resolved / (resolved + ambiguous + unresolved): external calls cannot reach the repository | n/a | 32% |
Framework registrations routes, handlers, hooks, entry points with resolution status | 92 | 92 |
Architectural zones package-hierarchy zones | 91 | 91 |
Analysis time (s) wall time of the analysis call | 18.6 | 17.8 |
Peak memory (MB) container memory peak during the analysis | 179 | 181 |
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
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
Detected frameworks and how their registrations were resolved.
framework-summary
Routes and handlers, with method, path and target.
framework-inventory
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.