routeflow
Real-time execution flow visualization for FastAPI applications.
Status: early / pre-alpha. This is the initial project scaffold; the tracer, decorator, and node-graph UI described in goal.md haven't been built yet.
Why
FastAPI documents the contract of an API — routes, params, response
shapes — but says nothing about what actually happens when a request runs.
As soon as an app grows past a few endpoints, execution logic spreads across
services, middlewares, dependencies, and background tasks, and debugging
means mentally reconstructing a flow that should be visible in the first
place. routeflow aims to make that flow visible: mark functions or
services with a decorator, and see the real-time execution path rendered as
an interactive node graph — order, timing, logs, and errors, exactly where
they occur.
Planned design
- Capture: a contextvars-based tracer with a
@routeflow.trackdecorator that pushes/pops spans onto a per-request context, so it stays correct under async concurrency. - Storage: in-memory ring buffer, dev-only — no persistence.
- UI: a local web UI streaming trace events over a WebSocket, rendered as an interactive node graph.
Install
uv add routeflow
pip install routeflow
Usage
routeflow about
routeflow --version
Development
This project uses uv for dependency management.
uv sync --extra dev # install package + dev deps into .venv
uv run pytest -q # run tests
uv run routeflow about # run the CLI
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file routeflow-0.1.0.tar.gz.
File metadata
- Download URL: routeflow-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e4a0466f756e0a92856daee7df9f90e1c4dd305b998c36adffeba1cb5ab82de
|
|
| MD5 |
448d5fdabcc540bb996d073abd7107f1
|
|
| BLAKE2b-256 |
8b7555fece79b6c2cae628fc6d4c13d41cf1a3aefe02af415f6a2ce8720801b6
|
File details
Details for the file routeflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: routeflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e482ab72ca69e530d9dd103ed13264aab0b827bd93ba93f8d3d7c95ae9a877a
|
|
| MD5 |
2566858e4ec0616fa2fa6bc1988ba167
|
|
| BLAKE2b-256 |
b53a293eb9d88fe33fbd91161faef52d06d44f0c595740c4e6db7584cc24d6b1
|