NoFlake Documentation
AI-powered E2E tests that write themselves. Three commands. Zero babysitting.
What is NoFlake?
NoFlake is a developer-first CLI tool that reads your codebase — your framework, database schema, routes, and auth patterns — and generates a complete Playwright E2E test suite. When tests break because your code changed, NoFlake patches them automatically.
🔒 Your code is safe. NoFlake never modifies your application source code. It reads your routes, schemas, and auth patterns (read-only), then writes only to
tests/e2e/ and .noflake/. Your src/, app/, pages/, and all other source directories are never touched.What's Included
noflake init— Set up your project with Playwright config, test directories, state folder, and optional git hooknoflake write— AI-powered test generation with self-healing (scans your codebase, generates Playwright tests, retries on failure)noflake update— Diff-based test patching (reads git changes, patches affected tests, optional auto-commit)noflake run— Test execution with reports and optional--fixfor AI-powered failure repairnoflake license— Manage your subscription (activate, check status, deactivate)
Pricing
The Free tier includes init, templates, git hooks, and the coverage dashboard — no AI, no cost. Paid tiers unlock AI-powered commands:
| Tier | Price | AI Generations | AI Updates | Fix Runs |
|---|---|---|---|---|
| Free | $0 | — | — | — |
| Starter | $9/mo | 10/mo | 25/mo | 15/mo |
| Pro | $39/mo | 30/mo | 100/mo | 50/mo |
| Team | $199/mo | 150/mo | 500/mo | 250/mo |
Annual billing saves ~20%. See the pricing page for full details.
Tech Stack
| Runtime | Node.js 20+ LTS |
| AI | Claude Sonnet 4 via Anthropic SDK |
| Testing | Playwright |
| CLI | Commander.js |
| Language | TypeScript |
Requirements
- Node.js 20+ (LTS)
- An Anthropic API key (
ANTHROPIC_API_KEYenv var) — needed for AI-powered commands (write, update, run --fix) - Playwright (
@playwright/testas peer dependency)
Quick Start
npm install -D noflake
npx noflake init --hook
npx noflake write