leopechnicki/endpoint-tester

Auto-discover API endpoints in your source code and guard against accidental removal. Fails CI if the number of routes drops below a saved baseline.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
directoryDirectory to scan for endpoints.no./src
frameworkFramework adapter to use (express, fastapi, spring, django, flask, fastify, koa, nestjs, hono, gin, echo, chi, nethttp). If omitted, endpoint-tester auto-detects from package.json / requirements.txt / pom.xml / imports.no""
baseline-filePath to the baseline JSON file that records the known endpoint count. Created on first run.no.endpoint-tester-baseline.json
update-baselineWhen "true", refresh the baseline file to the current endpoint count and commit it back to the repo (does NOT fail the run). Use this after an intentional endpoint removal.nofalse
versionendpoint-tester version to install. Use "latest" for the newest release, or pin to a specific version (e.g. "0.4.2") for reproducible CI.nolatest
node-versionNode.js version used to run endpoint-tester. Must be >= 20.no20
namedescription
endpoint-countThe number of endpoints discovered in this run.
baseline-countThe endpoint count recorded in the baseline (or "0" if none).
driftOne of: "ok" (count unchanged or increased), "added" (new endpoints detected), "removed" (endpoints missing — CI fails), or "no-baseline" (baseline file did not exist and was just created).