Skip to content
← Projects
Developer tool · 2026

Function Viewer

Visualises how the functions of a codebase call each other as an interactive, Blueprint-style graph, for Python, Rust, TypeScript, JavaScript, C and C++.

The problem

Understanding an unfamiliar codebase usually means jumping between files and grepping for callers. I wanted to see the flow instead: every function, and every real call between them.

What it does

  • Load any file or folder and every function and call is resolved automatically, whatever the language.
  • Each function is a draggable card with its signature, docstring and syntax-highlighted source, connected by wires that trace each real call. The style is inspired by Unreal Engine Blueprints.
  • Toggle functions on and off to grow or shrink the graph around what matters, and follow a function’s callers or callees in one click.
  • Auto-arrange by call order (flow mode) or grouped by file (folder mode, draggable as a group), with search and a VS Code-style file explorer.

How it is built

  • Backend. FastAPI with a per-language plugin architecture. A dispatcher groups files by extension, hands each slice to its language plugin, and merges the results into one graph, with ids namespaced by path so languages can’t collide. Python is parsed with the stdlib ast; Rust, TypeScript, JavaScript, C and C++ are parsed with tree-sitter. TypeScript and JavaScript share a single plugin, while C and C++ are separate plugins built on shared helpers, and a .h header goes to C or C++ depending on what else the loaded folder holds. It resolves direct calls, module.func(), self.method(), constructors and associated functions.
  • Frontend. React 19, React Flow and a single Zustand store. The layout algorithms share a depth-first model: flow mode ranks functions by call depth, and folder mode ranks file groups with dagre.
  • Delivery. Every PR runs a frontend build and a backend health check. Every push to main deploys a Docker image to Render and a static build to GitHub Pages.

What I learned

Keeping the frontend HTTP-only, with no browser-only file APIs, keeps the door open to an Electron or Tauri shell later. And a strict plugin contract means adding a language is one module on the backend and one entry on the frontend.