Docs
Quick start
Install nono from source, initialize a project, record a journey, approve a baseline and run your first verification.
This guide takes you from nothing to a verified journey against the demo shop. It takes a few minutes and needs no account, no cloud service and no API key.
Requirements#
- Node.js 20.10 or newer (Node 22 recommended)
- pnpm 9 and git, to install from source during the pre-release (
corepack enableselects the pinned pnpm version) - A web application reachable over HTTP from your machine
- Chromium for Playwright (installed in step 2)
1. Install the CLI#
Pre-release.
nono-proofis not published on npm yet. Install from source.
git clone https://github.com/flaminshinjan/nono.git
cd nono
pnpm install
pnpm build
pnpm --filter nono-proof pack
npm i -g ./packages/cli/nono-proof-0.1.0.tgz
Once the package is published, this becomes:
npm i -g nono-proof
Confirm the executable is on your PATH:
nono --help
2. Install the browser#
nono drives Chromium through Playwright. If Chromium is not already installed, install it with the Playwright version nono depends on. From the cloned repository:
pnpm --filter nono-proof exec playwright install chromium
npx playwright install chromium also works when it resolves the same Playwright version. On Linux you may also need system libraries: add --with-deps. nono doctor reports whether Chromium launches.
3. Start the application#
Use your own app, or the demo shop from the repository. From the repository root:
pnpm demo
# shop-demo on http://127.0.0.1:4400
pnpm demo runs node examples/shop-demo/server.mjs. Set PORT or HOST to change where it listens.
4. Initialize nono#
Run this in the root of the project you want to verify. For the demo shop, that is examples/shop-demo, which already contains a checkout journey in .nono/journeys/checkout.yaml:
cd examples/shop-demo
nono init --url http://127.0.0.1:4400
init detects the framework, package manager and likely dev command, creates .nono/config.yaml and the local storage directories, test-launches Chromium and prints the next commands. It never modifies application source. In a terminal it asks which coding agents to configure; use --yes to accept defaults without prompting, --integrate claude,codex,cursor to configure agents directly, and --json for machine-readable output.
Then check the environment:
nono doctor
doctor checks Node.js, the browser, config validity, whether the app URL is reachable, journeys, MCP configuration and evidence directory permissions. Fix anything it reports before continuing — see Troubleshooting.
5. Create a journey#
The demo shop's journey is already in place. For your own app, record one interactively:
nono record checkout
A headed browser opens with a nono toolbar. Browse the flow, use Checkpoint and Assert visible as you go, then click Finish (or close the window). nono writes .nono/journeys/checkout.yaml with suggested assertions.
Or write it by hand. This is the demo shop's journey:
version: 1
name: checkout
description: A shopper adds a product, pays with the test card and sees the confirmation.
steps:
- navigate: /
- click: { testId: add-to-cart-1 }
- click: { testId: cart-link }
- checkpoint: cart
- click: { testId: go-to-checkout }
- fill: { testId: name, value: Ada Lovelace }
- fill: { testId: email, value: ada@example.com }
- fill: { testId: card-number, value: { env: NONO_TEST_CARD } }
- click: { testId: submit-order }
- waitFor: { testId: order-success }
- checkpoint: confirmation
assertions:
- id: order-created
type: http_response
method: POST
path: /api/orders
expectedStatus: 201
- id: single-order-request
type: request_count
method: POST
path: /api/orders
expected: 1
- id: success-visible
type: visible
testId: order-success
- type: no_uncaught_exceptions
The shipped file has a few more assertions. See Journeys and Assertions for the full format.
6. Replay it#
The demo journey reads the test card number from an environment variable:
export NONO_TEST_CARD="4242 4242 4242 4242"
nono replay checkout
replay runs the journey and evaluates its assertions without comparing against a baseline. Use it while iterating on a journey. If NONO_TEST_CARD is not set, the fill step fails and the run ends with EXECUTION_ERROR.
7. Approve a baseline#
Baselines are explicit. Approve the passing run yourself:
nono baseline approve checkout
With no --run or --proposal, this approves the latest run of the journey after an interactive confirmation (pass --yes in a non-interactive shell). nono refuses to approve a run whose required checks did not pass. If you want a review step first, create a proposal and approve that:
nono baseline propose checkout --reason "Initial working checkout"
nono baseline approve checkout --proposal <proposalId>
Approved baselines are immutable and live in .nono/baselines/checkout/. Commit them along with the journey. See Baselines.
8. Verify#
nono verify checkout
verify runs the journey, evaluates assertions and compares the run against the approved baseline. Exit codes:
| Code | Verdict |
|---|---|
0 |
VERIFIED |
1 |
FAILED or REGRESSION |
2 |
EXECUTION_ERROR, or the command failed (for example an invalid config) |
3 |
UNVERIFIED |
To verify every journey at once, use nono verify --all. Add --json for structured output.
9. See a regression#
Stop the demo shop and restart it with its broken checkout, from the repository root:
NONO_DEMO_BUG=double-submit pnpm demo
# shop-demo on http://127.0.0.1:4400 (bug: double-submit)
In this mode a second click listener on the pay button also places the order, so one click sends POST /api/payments/intent and POST /api/orders twice each. The page looks exactly the same. Verify again from examples/shop-demo:
nono verify checkout
nono reports REGRESSION with exit code 1. The single-order-request check fails with requested 2× (expected 1), and the regressions list shows that it passed in the baseline and that the request counts for POST /api/orders and POST /api/payments/intent changed from 1 to 2. Inspect it:
nono runs --journey checkout --limit 2
nono report latest:checkout --format md
nono dashboard
The dashboard opens at http://127.0.0.1:4319 and shows the run, the failing check and its evidence.
10. Connect your coding agent#
nono integrate claude # or: codex, cursor
This writes the MCP server configuration and a managed instruction block telling the agent to verify before claiming completion. Use --dry-run to preview. See Claude Code, Codex and Cursor.
What to commit#
Commit .nono/config.yaml, .nono/journeys/ and .nono/baselines/. Runs, artifacts, reports and proposals are local and should be git-ignored:
.nono/runs/
.nono/artifacts/
.nono/reports/
.nono/proposals/