Every codebase I've joined started the same way.

I've led three legacy migrations: a desktop app to Angular, a Flex app to Angular, and an AngularJS factory-automation platform to modern Angular. Each one began with the same slow week. Where does execution start? Which modules actually matter? If I change this method, what calls it? And which of the twelve handleClicks is the one I care about?

IDEs answer those questions one "Go to definition" at a time. I wanted the whole map at once, so I built Gistgraph.

What it does

Give Gistgraph a TypeScript, JavaScript (React, AngularJS, jQuery), Java or C# repository and it turns it into a map you can explore. All the screenshots below are from the live site, mapping Spring's petclinic sample.

An architecture overview you can zoom into

The repository opens as a map of its top-level containers and the imports between them. Zoom in and the same map becomes components, then files, then code. The side panel lists the entry points, the most connected files and the most called methods, which is usually where you want to start reading.

![Architecture overview of spring-petclinic in Gistgraph: containers linked by imports, with entry points and the most connected files in the side panel]

Architecture View

Call chains, method by method

Pick any method and see everything it calls, or everything that calls it, one or two steps out, with the source right beside the graph. Here's PetController.processCreationForm from Spring's petclinic sample, calling six methods across Owner, Pet, NamedEntity and BaseEntity:

![Gistgraph's method inspector showing the call graph of PetController.processCreationForm next to its source code]

Method View

Search every method in the repo

Type the start of a method name and Gistgraph lists every match across the project, with its file, line and caller count, so you can tell the twelve handleClicks apart before opening one.

![Method search in Gistgraph listing every method starting with "process", with file, line and caller count]

Process View

The galaxy view

When you want the whole thing at once, the galaxy view draws every folder, file, class and method as one graph. Select a node to see which way its calls flow.

![Gistgraph's galaxy view of spring-petclinic: folders, files, classes and methods as one connected graph]

Connected Graph View

Entry points, found for you

Gistgraph detects where execution starts: ReactDOM.render and createRoot, Angular's bootstrapModule, $(document).ready, Java's static main and @SpringBootApplication, C#'s Main, top-level statements and WebApplication.CreateBuilder.

There's a gallery of projects already mapped (Spring petclinic, Clean Architecture for .NET, zustand, ky and more), so you can try it without submitting anything.

How it works

Gistgraph is a TypeScript monorepo with three parts: a static-analysis engine, a NestJS API with a background worker, and an Angular front end that draws the graph with Cytoscape. A few decisions I enjoyed making:

One compiler pipeline for every flavour of JS and TS

React, AngularJS and jQuery code look nothing alike, but they're all JavaScript. Instead of writing a parser per framework, every .ts, .tsx, .js and .jsx file goes through the TypeScript compiler (via ts-morph). The compiler already understands imports, aliases and types, so a call can be followed through an import alias to the method it really targets.

Java and C# through tree-sitter, with no native build

.java and .cs files are parsed with tree-sitter's official grammars, compiled to WebAssembly. That means no native toolchain to install and the same Node process handles all four languages. Calls are resolved through the declared types of locals, parameters, fields and properties, through this, super and base, inheritance, static imports, and C# partial classes and extension methods. Overloads get their own IDs, so save(User) and save(Order) stay separate.

Keep what you can't resolve

Static analysis can't resolve everything: built-ins, dynamic dispatch, things decided at runtime. The easy option is to drop those calls. Gistgraph keeps them and marks them resolved: false. A graph with honest gaps is more useful than a clean-looking one that's quietly missing edges.

MongoDB as both the graph store and the job queue

Modules, methods and call edges live in MongoDB. Call chains are $graphLookup traversals with a depth limit, so tracing "everything this method reaches, five levels deep" is one query.

Analysing a large repo takes a while, so submitting one returns a project ID straight away. The job goes into a Mongo collection, and a background worker claims it atomically, runs the analysis and writes the graph. The browser polls for progress, and the job survives a page refresh. Using the database I already had as the queue kept the deployment to a single service.

Staying current

When a repository changes, Gistgraph uses git diff to re-analyse only the files that changed, triggered by a push webhook or a nightly job, instead of rebuilding the whole graph.

What's next

The map is useful to people, but it's just as useful to coding agents, which spend a lot of their effort working out how a codebase fits together. I'm adding a retrieval (RAG) layer and an MCP server so an agent can ask Gistgraph "what calls this?" or "what does this module depend on?" and get a precise answer instead of guessing from a handful of files.

Try it

👉 gistgraph.site

Open a gallery project, or paste a public GitHub URL of your own. I'd love to hear:

  • Which repo you tried, and whether the map matched how you think about it
  • Where call resolution got it wrong
  • Which language or framework you'd want next

Leave a comment here and I'll reply to all of them.