Proofrun
Write an API workflow in YAML. Run it locally, in CI, or as a monitor that only alerts when health changes.
Most monitors tell you an endpoint returned 200. Proofrun tells you whether the
journey works: log in, take the token from the response, use it on the next
request, and check what comes back.
When something breaks, you see exactly which step failed and why:
And when everything is fine:
YAML in. HTTP checks out. No database, queue, or external service required.
- One file describes the workflow. Scenarios live in Git next to your code.
- Multi-step. Values extracted from one response feed the next request.
- Runs anywhere. Same file locally, in CI (exit code
0/1), or as a daemon. - Quiet by design. In daemon mode you are alerted when health changes, not on every failed check.
Quickstart (30 seconds)
1. Install (Python 3.11+):
pip install proofrun
Or with pip: pipx install proofrun
2. Create health.yaml:
version: "1.0"
global:
base_url: "https://jsonplaceholder.typicode.com"
scenarios:
- name: "Public API is up"
steps:
- name: "GET /posts/1"
request:
method: GET
path: /posts/1
expect:
status: 200
max_latency_ms: 2000
3. Run it:
proofrun health.yaml
That's it. Swap in your own base_url and paths. Add --daemon to keep it
running.
A realistic example: log in, then use the token
This is the scenario from the screenshots above. It logs in, extracts the
access token with JSONPath, sends it as a Bearer header on the next request,
extracts the user id from that response, and uses it in the URL of the third.
version: "1.0"
global:
base_url: "http://127.0.0.1:8099"
timeout_seconds: 5
scenarios:
- name: "Login and fetch orders"
steps:
- name: "Log in"
request:
method: POST
path: /login
json:
email: "demo@example.com"
password: "demo-password"
expect:
status: 200
max_latency_ms: 1000
extract:
token: "$.access_token" # saved as ${token}
- name: "Fetch profile"
request:
method: GET
path: /me
headers:
Authorization: "Bearer ${token}" # used here
expect:
status: 200
extract:
user_id: "$.id" # saved as ${user_id}
- name: "Fetch orders"
request:
method: GET
path: "/users/${user_id}/orders"
headers:
Authorization: "Bearer ${token}"
expect:
status: 200
schema: # JSON Schema validation
type: array
minItems: 1
Steps run in order and stop at the first failure, so the report points at the step that actually broke. You can try this without any external service. The repo includes a tiny local API:
# terminal 1: start the demo API
python scenarios/server.py
# terminal 2: run the scenario (passes, exit code 0)
proofrun scenarios/auth.yaml
Now break it on purpose. Restart the demo API with --break, which makes
GET /me return 500, and run the same scenario again:
python scenarios/server.py --break
proofrun scenarios/auth.yaml # fails, exit code 1
What you can assert
Each step's expect block supports:
| Assertion | Example | Notes |
|---|---|---|
status |
status: 200 |
Required. |
max_latency_ms |
max_latency_ms: 500 |
Fails if the response is slower. |
headers |
headers: { Content-Type: "application/json" } |
Exact match. |
schema |
inline JSON Schema, or a path to a file | Validates the JSON response body. |
A step can also extract values with JSONPath for later steps. Besides your own
variables, built-in dynamic values are available anywhere you can write ${...}:
${$uuid}, ${$timestamp}, ${$timestamp_ms}, ${$iso_timestamp},
${$random_int}.
Defaults you set under global (base_url, timeout_seconds, headers) apply
to every step, and any step can override its own headers and timeout.
Run it continuously
proofrun monitors/api.yaml --daemon
In daemon mode Proofrun re-runs your scenarios on a loop and tracks each one as
HEALTHY or FAILING.
- Alerts on change, not on repetition. A webhook fires when a scenario starts failing and again when it recovers. A scenario that stays down does not re-alert on every cycle.
- Edit configs live. Changes to the YAML are picked up without a restart. If an edit is invalid, Proofrun keeps running the last working configuration.
- Jittered schedule. Sleep time varies by ±15% so checks don't all land on the same second.
Send alerts to any HTTP endpoint:
proofrun monitors/api.yaml --daemon --webhook-url https://<your_domain>/hooks/proofrun
# or
export PROOFRUN_WEBHOOK_URL=https://<your_domain>/hooks/proofrun
The webhook receives plain JSON:
{
"event": "scenario_failed",
"scenario": "Login and fetch orders",
"previous_status": "HEALTHY",
"status": "FAILING",
"details": "- Fetch profile: Status code mismatch: expected 200, got 500"
}
event is scenario_failed or scenario_recovered.
Use it in CI
Proofrun exits with 0 when every scenario passes and 1 when any fails, so it
works as a smoke test or a scheduled check. For example, with GitHub Actions:
name: API check
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
jobs:
proofrun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install proofrun
- run: proofrun monitors/api.yaml
A failing check fails the workflow run, and GitHub notifies you the way it notifies you about any failed workflow.
CLI
proofrun <config.yaml> # run once and exit (default)
proofrun <config.yaml> --daemon # run continuously
proofrun <config.yaml> --interval 30 # override the daemon interval (seconds)
proofrun <config.yaml> --daemon --webhook-url <url>
proofrun --version
License
Metadata
Release files for proofrun 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proofrun-0.1.1.tar.gz | 90.2 kB | With provenance | Details for proofrun-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proofrun-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for proofrun-0.1.1-py3-none-any.whl |
Total release size: 109.0 kB
Release files / proofrun-0.1.1.tar.gz
| Download URL | proofrun-0.1.1.tar.gz |
|---|---|
| Size | 90.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c358e8df8d588dc15d7762b435ae4dae6b8a7dcebadfa880d5b23ddeff7fd8a1
|
|
BLAKE2b-256 checksum How to use checksums |
54156fa0b4d8fad4755d55b7b6a0316568ae925a6da8c434fc0ef025694c005d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logRelease files / proofrun-0.1.1-py3-none-any.whl
| Download URL | proofrun-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a8b296d96e8765926552281e7a9d3269b2e3c13baf647b1d68ad48fe21bc6cd
|
|
BLAKE2b-256 checksum How to use checksums |
bfecb2f7fa99a69e06914658ec231fbf4a65eaba3ee4f7b07b02e2b4e22d8199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logSecurity for proofrun 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for proofrun-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.