Skip to content

Waygraph

An opinionated Playwright, testing first. Your app's features become readable, reusable Blocks, and every test reads like a scenario.

The idea ​

WordMeans
Checkpointa page the app can be on: LoginPage, CartPage
Blockone action from one Checkpoint to another, with checks that prove it
FlowBlocks in order. TypeScript checks each step starts where the last one ended
readwhat a page shows, as typed data (on the Page Block)
Memthe data a run carries: credentials, the item being added

One flow, three ways to play it ​

CommandYou get
run itnpx waygraph run checkoutFlowpass / fail and a run log
show itnpx waygraph demo checkoutFlowstep by step, with rings and captions
test itnpx waygraph test --flowsevery flow as a Playwright test

See the whole project ​

npx waygraph studio draws the project by hand: every page by its address, the Blocks between them, each flow step by step, and every run with what it checked. Play any flow from it. Waygraph Studio

The Sauce Demo example in Waygraph Studio: its pages by address, the menu layout, and the moves between them

A run, step by stepA failure says why
A passing checkout runA failed step: what its check wanted and what it saw

One shape for every project ​

Every waygraph project puts the same things in the same places: folders that are the app's addresses, one folder per page with the same file names, flows that are the tests. Each opinion says why, and what holds you to it. Your project

Try it ​

sh
npx waygraph try demo        # watch a checkout on saucedemo.com, nothing written to your folder
npx waygraph init my-app     # a new project that passes offline
npx waygraph studio              # in a project: its map, flows and runs in the browser (beta)

Guides ​

StartGuidesReference
Quick startYour project · Layouts and access · Blocks · FlowsCLI
What Waygraph is · How it worksWhat a page shows · Data · ChecksConfig
Sauce DemoDemo · Testing · Waygraph Studio (beta)API · Environment
Agents · MailDeprecated

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed