Docs
Contribution guide
How to set up the nono monorepo, run tests and propose changes.
nono is a TypeScript monorepo managed with pnpm workspaces and Turborepo. This page covers local setup, the repository layout and what a good change looks like.
Requirements#
- Node.js 22 (the repo supports
>=20.10) - pnpm 9 (
packageManageris pinned topnpm@9.15.4;corepack enablewill select it) - Chromium for Playwright:
pnpm --filter nono-proof exec playwright install chromiumafterpnpm install
Setup#
git clone https://github.com/flaminshinjan/nono.git
cd nono
pnpm install
pnpm build
Common commands#
All run from the repository root:
| Command | What it does |
|---|---|
pnpm build |
turbo run build across all packages. |
pnpm test |
turbo run test — unit tests with Vitest. |
pnpm typecheck |
turbo run typecheck. |
pnpm e2e |
Runs node tests/e2e/run.mjs: packs the CLI, installs it into a temporary project and drives CLI, MCP and dashboard against the demo shop (about a minute). |
pnpm demo |
Start the demo shop on http://127.0.0.1:4400. |
pnpm dev:web |
Run the website and docs locally. |
Target a single package with a filter:
pnpm --filter @nono/verifier test
pnpm --filter @nono/web dev
Repository layout#
nono/
├── apps/
│ ├── web/ website, docs, demo, hosted dashboard (Next.js)
│ └── api/ hosted API (Hono + PostgreSQL)
├── packages/
│ ├── cli/ `nono` executable (published as nono-proof) and local dashboard
│ ├── mcp/ MCP server
│ ├── core/ orchestration of the verification engine
│ ├── recorder/ interactive journey recording
│ ├── runner/ Playwright journey execution
│ ├── verifier/ assertions, baseline and screenshot comparison
│ ├── evidence/ manifests, artifacts, reports
│ ├── instrumentation/ runtime capture and redaction
│ ├── config/ config and journey loading
│ ├── protocol/ shared schemas and types
│ └── ui/ shared design tokens
├── integrations/ placeholders for claude-code, codex, cursor, github-actions, nextjs (currently empty)
├── examples/shop-demo/ demo e-commerce app with a reproducible regression
├── infra/ docker, caddy, deployment scripts
├── docs/ these documentation pages (Markdown)
└── tests/ end-to-end tests (currently empty)
See Architecture for how the packages depend on each other. The rule that matters most: core and everything below it must never import from cli, mcp or the apps.
Making a change#
- Open an issue first for anything beyond a small fix, so the approach can be agreed.
- Create a branch from
main. - Write tests alongside the change. Verification logic in
verifierandprotocolneeds unit tests for both passing and failing cases. - Run
pnpm typecheck && pnpm testbefore pushing. If you touched the runner, recorder, verifier or CLI, also runpnpm e2e. - Open a pull request describing what changed, why, and how you tested it. Paste real command output; do not summarize test results you did not run.
Engineering principles#
- Never report success for something that did not run. New checks must produce
unverifiedwhen they cannot execute. - Determinism over cleverness. No LLM calls in the verification path.
- Redact at capture time. New capture paths must go through instrumentation redaction before anything touches disk.
- Keep agents away from approval. Do not add MCP tools that approve or overwrite baselines.
- Every documented command must work. If you change a flag, update
docs/cli-reference.mdand any page that uses it. - Pin dependencies. Exact versions, committed lockfile, no new dependency without a reason.
Documentation#
Docs are Markdown files in docs/ with a small front matter block (title, description). They are rendered by apps/web, which reads them from the repository's docs/ directory. Preview them with pnpm dev:web and open /docs.
Security issues#
Do not open public issues for vulnerabilities. Follow SECURITY.md to report privately.