Map your API endpoints
end-to-end
Connect a GitHub repo and visualize every HTTP route as a complete function call chain — with file names and line numbers. Pure static analysis, no AI.
About Backend Repo Tree
Backend Repo Tree reads a GitHub repository, lists its HTTP routes grouped by method, and expands each route into the chain of functions its handler calls, with file names and line numbers at every step. It is built for the moment you inherit an unfamiliar service and need to know what an endpoint actually touches before changing it. Detection is static analysis — pattern matching over source text, with no AI and no code execution — covering JavaScript and TypeScript (Express, Fastify, Koa, Hapi, NestJS decorators, AdonisJS, tRPC, Feathers), Python (Flask, FastAPI, Django and others), Java, Go, PHP, Ruby, Kotlin, Scala, C#, Rust and Elixir.
Source files are fetched from api.github.com directly into your browser and parsed there; no Convsta server is involved. Public repositories need no sign-in, while a personal access token unlocks private repos and a far higher API rate limit. The token is kept in localStorage and sent only to GitHub. Before parsing, the tool skips dependency and build folders such as node_modules, vendor, dist, build and target, test files (*.test.*, *.spec.*, __tests__), bundler and linter configs, and any file over roughly 300 KB.
Common Use Cases
- Onboarding onto an inherited codebase by getting a full route inventory before reading any implementation
- Impact analysis before a refactor: expanding a route to see which services, repositories and helpers sit beneath its handler, and which live in other files
- Reviewing an API's surface during a security review, for example filtering to DELETE or PATCH to find every mutating endpoint
- Finding out which frameworks a polyglot repo actually uses and which port its server listens on
How to Use
- Under Connect GitHub, choose 🌐 Public, paste owner/repo or a github.com URL (the default branch is filled in for you) and click Analyze Now →; for private repos use 🔑 Token, or 🐙 Login, which opens GitHub's token page with the repo scope pre-filled
- Under Analysis Options, pick Max files (50 up to all) and Call chain depth (2 to 10 levels, or Unlimited), then click Analyze →
- Follow the analysis log as each file is parsed; Cancel stops the scan
- Open a method group and click a route to expand its call chain: cyan names are in the same file, purple names marked ⇢ are in another file, and [external/unknown] marks calls with no definition in the scanned files
- Narrow the list with the filter box (it matches route paths and handler names) or the method tabs, and click 💾 Save to keep the analysis in localStorage for reloading later
Frequently Asked Questions
How reliable is the call chain?
Treat it as a reading map, not a proven call graph. Calls are found by matching name( patterns in each function body, with strings removed and language keywords ignored, then resolved in the same file first, then through the file's relative imports, then by name across the repo. If two files define the same name, the first match is used, and calls made through dependency injection, interfaces or dynamic dispatch may stay unresolved.
Why are my route paths missing a prefix like /api?
Paths are reported exactly as written where each route is registered. A router mounted with app.use('/api', router) shows up as its own USE entry, and NestJS @Controller prefixes and Fastify register prefixes are not joined onto child routes, so the full URL is the mount prefix plus the listed path.
Why did the scan fail partway through a public repo?
Usually GitHub's rate limit. Every scanned file costs one API request, and anonymous access allows only 60 requests an hour, so a 100-file scan can run out. Connect with a token, or lower Max files. If the branch you typed doesn't exist, the tool falls back to main, master or HEAD and notes the switch in the log.
Is Unlimited depth safe on recursive code?
Yes. When a function reappears in its own chain it is tagged [↻ recursive] and expansion stops there, so mutual recursion cannot loop forever.