Setup guide

Up in Ten Minutes.

Node, Chrome, the Kane CLI and a test file. Everything runs on your machine.

Open Workspace

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.

VariableDefaultPurpose
PROOFLOOP_DATA_DIR./dataDatabase, raw output, evidence. Point it outside the repository for real use.
PROOFLOOP_TESTS_DIR<data>/testsManaged root for _test.md files.
PROOFLOOP_EVIDENCE_DIR<data>/evidenceWhere verified evidence packs are copied.
KANE_CLI_PATHunsetOptional path to Kane's bin/kane-cli.cjs. .cmd and .bat files are refused.
KANE_TIMEOUT_SECONDS300Run time limit, 10 to 1800.
PROOFLOOP_HOST127.0.0.1Must be a loopback address.
PROOFLOOP_PORT3000Local 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.

MethodPathPurpose
GET/api/v1/healthStorage status.
GET / POST/api/v1/projectsList or create projects.
GET / PATCH / DELETE/api/v1/projects/:idRead, edit or archive a project.
POST/api/v1/projects/:id/criteriaCreate a criterion (at most five active).
PATCH / DELETE/api/v1/projects/:id/criteria/:criterionIdEdit or soft-delete a criterion.
POST/api/v1/projects/:id/criteria/:criterionId/runsStart a run. Body must be {}. Returns 202.
GET/api/v1/projects/:id/runsRun history, newest first, paginated.
GET/api/v1/runs/:runIdRun detail, events and evidence.
POST/api/v1/runs/:runId/cancelCancel 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/evidenceEvidence references, re-checked against the disk.
GET/api/v1/runs/:runId/evidence/:evidenceIdDownload 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/:nameRead 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.

Validated on kane-cli 0.10.9

Run. Read. Fix. Re-run.