Local-first code graph for JS/TS

See your codebase as a constellation.

Astrograph indexes symbols, calls, imports, inheritance, and references into a local graph — then serves it to a fast CLI and to agents over MCP. Exact answers, fewer tokens, no grep loops.

astrograph — graph.db
$ astrograph context "how does auth refresh work?"

entry points
 refreshSession
 AuthProvider

included code
 src/auth/session.ts
 src/auth/AuthProvider.tsx

coverage 128/128 resolved
partial no

Works with your agents

  • Claude Code
  • Cursor
  • Codex
  • opencode

CLI

search · context · callers · impact · trace — scriptable, one-shot, pipeable.

MCP + skills

Agents query the graph over MCP instead of running broad grep/read loops.

Local & fast

A local SQLite graph, watcher-fresh. No API keys, nothing leaves your machine.

Why depth wins

Depth over breadth, on purpose.

One question, one command. The graph already did the exploration — these are real answers, not text matches.

who calls this?
$ astrograph callers useAccount

 AccountMenu.tsx:14
 useBilling.ts:22
 dashboard/page.tsx:8

3 callers · resolved
Walk call flow in either direction — every edge resolved by the type-checker.
what will this break?
$ astrograph impact AuthProvider

 App.tsx
 routes/private.tsx
 hooks/useSession.ts

12 symbols · depth 2
See a change's blast radius before you touch a single line.
can I trust it?
$ astrograph status

nodes 2314  edges 11080

coverage 136/136 resolved
partial no
Honest coverage on every answer — never a silent, partial guess.

Get started

Index your repo in one command.

~/your-project
$ astrograph init

indexing…
 136 files · 2,314 symbols
.astrograph/graph.db ready
AstrographApache-2.0 · Built by Rodolfo RoblesGitHub