Setup guide
Up in Ten Minutes.
Node, Chrome, the Kane CLI and a test file. Everything runs on your machine.
01Requirements
- Node.js 26.12.1 (pinned in
.nvmrc) and npm. - Google Chrome, launchable by Kane.
- kane-cli 0.10.9, a TestMu account with credits, and an app you are allowed to test.
02Install and run
From the cloned ProofLoop folder (see Run it on your machine for the full walk-through, including logging in to Kane):
> npm ci
> npm run build
> npm start
Then open http://127.0.0.1:3000. The server only listens on loopback; do not expose it to a network.
03Connect Kane
> npm install -g @testmuai/kane-cli
> kane-cli login
> kane-cli whoami
> kane-cli balance
ProofLoop never stores your Kane credentials. They stay in Kane’s own profile.
04Test files
Put each test at <PROOFLOOP_TESTS_DIR>/<project-id>/<name>_test.md and map one criterion to it. A minimal file:
# login_test.md
> ---
> mode: testing
> url: https://www.saucedemo.com/
> ---
## Sign in
> Type "standard_user" and "secret_sauce", click Login.
> Verify the page shows the "Products" heading.
Editing a test after it passed makes the criterion UNVERIFIED until it passes again.
05Configuration
Copy .env.example to .env. Never put credentials there.
| Variable | Default | Purpose |
|---|---|---|
PROOFLOOP_DATA_DIR | ./data | Database, raw output, evidence. Point it outside the repository for real use. |
PROOFLOOP_TESTS_DIR | <data>/tests | Managed root for _test.md files. |
PROOFLOOP_EVIDENCE_DIR | <data>/evidence | Where verified evidence packs are copied. |
KANE_CLI_PATH | unset | Optional path to Kane's bin/kane-cli.cjs. .cmd and .bat files are refused. |
KANE_TIMEOUT_SECONDS | 300 | Run time limit, 10 to 1800. |
PROOFLOOP_HOST | 127.0.0.1 | Must be a loopback address. |
PROOFLOOP_PORT | 3000 | Local port. |
06Local API
JSON over loopback. Mutations reject cross-site requests, unknown fields and bodies over 64 KiB. No endpoint accepts a command, a path or a credential.
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/health | Storage status. |
| GET / POST | /api/v1/projects | List or create projects. |
| GET / PATCH / DELETE | /api/v1/projects/:id | Read, edit or archive a project. |
| POST | /api/v1/projects/:id/criteria | Create a criterion (at most five active). |
| PATCH / DELETE | /api/v1/projects/:id/criteria/:criterionId | Edit or soft-delete a criterion. |
| POST | /api/v1/projects/:id/criteria/:criterionId/runs | Start a run. Body must be {}. Returns 202. |
| GET | /api/v1/projects/:id/runs | Run history, newest first, paginated. |
| GET | /api/v1/runs/:runId | Run detail, events and evidence. |
| POST | /api/v1/runs/:runId/cancel | Cancel the active run. |
| GET | /api/v1/runs/:runId/output?stream= | Saved, redacted stdout or stderr. |
| GET | /api/v1/runs/:runId/report?format= | Markdown or JSON report. includeOutput=true adds raw output to the JSON only. |
| GET | /api/v1/runs/:runId/evidence | Evidence references, re-checked against the disk. |
| GET | /api/v1/runs/:runId/evidence/:evidenceId | Download one verified evidence file. |
| GET | /api/v1/runs/compare?a=&b= | Recorded differences between two runs of one criterion. |
| GET / PUT | /api/v1/projects/:id/test-files/:name | Read or write a Kane test file in the managed folder. |
07Running the tests
> npm test
# Real Kane runs: uses credits and uploads to Test Manager
> npm run test:live-kane
The normal suite never calls Kane. The live suite is opt-in and needs an authenticated Kane CLI and Chrome.