All tools / Testing & code health
deadroutes
Find the API endpoints nobody calls, with evidence before you remove anything.
Buy deadroutes for $49One payment of $49, plus sales tax where it applies, and every future update. Delivered as a private GitHub repository you're invited to.
Runs inside Lina. Extracted from the route-usage tracking in Lina's admin, which counts which endpoints are really called.
See it work
deadroutes report | head -n 14
24 routes; 311 requests counted since 2026-10-15T06:52:18Z (40 days observed, 30 required). Safe to judge: yes
Candidates to review (no reference in the scanned code, zero calls in 40 days): 4
DELETE /api/orders/{order_id}/notes/{note_id} declared at shopapp.orders.delete_note
POST /api/queue/{item_id}/escalate declared at shopapp.queue.escalate
GET /api/reports/monthly declared at shopapp.reports.monthly
GET /v2/ping declared at shopapp.main.ping
Before changing any of these, ask what each one is for. A yearly export, a disaster-recovery route or a caller you do not know about can look exactly like this.
Unreferenced, but called (a caller outside the scanned code): 1
GET /api/reports/legacy-export 9 calls, last 2026-11-24T06:52:18Z by partner-sync/2.3 (9)
Called, but no longer declared by the app: 0
What it does
deadroutes counts every request your FastAPI or Starlette app serves, by route template, and reads your route table and front-end files to see which endpoints your own code names. It joins the two and lists the routes nothing references and nobody called over a long enough window as candidates to review, never as something to delete.
- Counts by route template
- An ASGI middleware counts every request, reads included, by method and route template rather than raw path. Keys stay bounded and free of personal data, and counts are written to disk on a timer, not on the request.
- Safe across workers
- The default store is one SQLite file that several worker processes flush into without losing counts. Callers past a per-route limit are merged, and if the table has no room for a new route a dropped_keys counter says so and reports stop judging.
- A window before any verdict
- Every report states when counting began, how many days it covers and whether that is enough to judge, against a minimum you set, such as 30 days. A counter that stopped or an empty table is never read as unused.
- A scan that reads your code
- deadroutes scan imports your app, or parses its source if it cannot, and reads front-end JavaScript, HTML and templates. Each route is called by the front end, machine-only (patterns you configure) or unreferenced, with path parameters and methods matched where the code states them.
- Candidates, with the caller named
- deadroutes report joins the scan with the counts. Unreferenced routes with zero calls are candidates; unreferenced routes that something does call are listed with the caller's name, which is what stops a bad removal.
- A check for CI
- deadroutes window-check exits non-zero once the window has matured with candidates, or when a removed route is still being called. A GitHub Actions template runs it weekly against a token-protected usage endpoint.
- Your layout is configuration
- Nothing assumes your URL prefixes. Settings come from deadroutes.toml, JSON or pyproject.toml, and an unknown key is an error rather than silently ignored.
What you get
deadroutes 1.0.3: the Python library and the deadroutes command, with an example project, a weekly CI workflow template and the test suite, with 413 automated tests.
A commercial license. Use it and change it in your own projects and your clients' projects. Don't share or resell the source. Read the license.
Every update. New versions land in the same repository; git pull to get them.
Requirements
Python 3.10 or newer. A FastAPI or Starlette app to count requests in. The [fastapi] and [starlette] extras install the framework.
How buying works
- Enter your GitHub username. You'll see the account before you pay, so you can check it's yours.
- Pay $49, plus any sales tax shown at checkout, on Stripe's checkout page.
- Accept the invitation GitHub emails you. Signed in as that account, you'll also find it at
github.com/dominares-tools/deadroutes/invitations. Invitations expire after 7 days; you can get a new one any time. - Clone and install:
git clone https://github.com/dominares-tools/deadroutes.gitPrivate repo: sign in to GitHub on this computer first. Run
gh auth loginand choose HTTPS, or give git a personal access token when it asks for a password. To use an SSH key instead, clonegit@github.com:dominares-tools/deadroutes.git.python3 -m venv .venv && . .venv/bin/activate pip install ./deadroutes
Questions
Do I need GitHub?
Yes. Access is a read-only invitation to a private repository, sent to the GitHub account you choose.
Can I get a refund?
Yes, within 14 days, no questions asked. Access ends when the refund goes through. Refund policy.
Who takes the payment?
Payments are handled by Stripe, which works out sales tax. Your receipt and card statement show Link (LINK.COM*), Stripe's checkout service.
Something wrong?
Email support@dominares.org. Every buyer of a tool shares its repository, so support happens by email rather than in GitHub issues.