Skip to content

Environment variables ​

Every WAYGRAPH_* variable waygraph reads. Most are set for you from flags and config/waygraph.config.ts; a flag beats the variable, which beats the config file. On / off variables take 1 / true / yes / on or 0 / false / no / off.

This page is generated from src/engine/env.ts (npm run docs:api).

VariableMeaning
WAYGRAPH_BASE_URLBase URL for relative gotos (--base-url, the config's baseUrl)
WAYGRAPH_CONFIGWhich config file to load (--config <name|file>)
WAYGRAPH_ENVEnv mode: loads .env.<mode> on top of .env (--env)
WAYGRAPH_COMMANDThe command running (run / demo / test), so the config's per-command section applies
WAYGRAPH_PROJECT_DIRThe project a command works on when it runs as its own process: waygraph test's Playwright, waygraph studio's server
WAYGRAPH_HEADED1 shows the browser, 0 hides it (--non-headless; demo default 1)
WAYGRAPH_STEP1 plays steps through the demo stepper (demo, run --step)
WAYGRAPH_JSON1 prints a JSON report instead of the demo log
WAYGRAPH_ALL_BRANCHES1 explores every branch() path (--all-branches)
WAYGRAPH_SHARED_SESSION1 keeps one session across branches (--shared-session)
WAYGRAPH_TITLEDemo banner title (--title)
WAYGRAPH_TITLE_POSDemo banner position: left | center | right
WAYGRAPH_DATAMem seed JSON (--data)
WAYGRAPH_MEM_STUB1 fills missing requires from registerMemStub (--mem-stub)
WAYGRAPH_NO_EXPECT1 skips every Block's and step's expectations: verify only (--no-expect)
WAYGRAPH_REPLAYA run id: seed mem with what that run recorded (--replay)
WAYGRAPH_TEST_GREPwaygraph test --flows: the tests to run (--grep, --label), set on each flows project so a dependency is filtered too
WAYGRAPH_TEST_GREP_INVERTwaygraph test --flows: the tests to leave out (--grep-invert), set on each flows project
WAYGRAPH_ALL_FLOWS1 plays every flow in the full run, including the labels the config's regression.exclude leaves out (--all)
WAYGRAPH_FLOW_TESTS1 makes waygraph test run every flow as a test (the default; --specs turns it off)
WAYGRAPH_REGRESSIONthe config's named regression set the full run uses (--regression); default when unset
WAYGRAPH_INCLUDElabels (a,b) the full run is limited to, over the regression set's include (--include)
WAYGRAPH_EXCLUDElabels (a,b) the full run leaves out, over the regression set's exclude (--exclude)
WAYGRAPH_INPUTA flow's input: JSON or @file; an array plays the flow once per item (--input)
WAYGRAPH_AUTOPLAY1 advances demo steps on their own (--auto-next)
WAYGRAPH_AUTOPLAY_MSAuto-next wait per step, ms (default 1800)
WAYGRAPH_DEMO_FAST1 shortens the demo's gates (--fast)
WAYGRAPH_DEMO_PACEDefault pace for every demo step (the config's demo.pace)
WAYGRAPH_PACE_SPEEDSJSON of pace multipliers, e.g.
WAYGRAPH_FAST_BLOCKSComma-separated Block names that skip the demo's added dwell
WAYGRAPH_COMPAREPlay the flow twice side by side and say where they differ: as=a,b | device=a,b | config=a,b (--compare)
WAYGRAPH_SPLITHow a flow with panes is shown in a demo or video: stage (side by side in one window, the default) or windows (--split)
WAYGRAPH_VIDEO_PANES1 also records each pane of a flow with panes, at full frame rate (--video-panes)
WAYGRAPH_SLOWMOPlaywright slowMo / the demo's beat after each action, ms
WAYGRAPH_TYPING_MSDemo typing delay per character, ms (default 30)
WAYGRAPH_APPEARANCEThe overlay's appearance: light | dark (default: the system's)
WAYGRAPH_SWIPE_MSDemo swipe gesture duration, ms (default 650)
WAYGRAPH_DEVICE_TRANSITION_MSDemo device resize animation, ms (default 520)
WAYGRAPH_STEPPERfull shows every step chip (--full); default carousel
WAYGRAPH_MINI1 forces the compact stepper panel (--mini)
WAYGRAPH_TODO_POSTodo dock side: left | right (--todo-left / --todo-right)
WAYGRAPH_TODO_UIfull turns off the todo dock's compact / collision / behind-ring (--todo-full)
WAYGRAPH_TODO_COLLISION0 turns off the todo dock moving away from a ring
WAYGRAPH_TODO_BEHIND0 turns off dimming the todo dock behind a ring
WAYGRAPH_TODO_COMPACT0 turns off folding long todo lists
WAYGRAPH_TODO_CAPRows a folded todo list shows (default 5)
WAYGRAPH_TODO_EXPAND_CAPRows a hovered todo list shows (default 14)
WAYGRAPH_FF_EXPAND1 plays fast-forward units step by step (--ff-expand)
WAYGRAPH_FF_DISABLED1 expands fast-forward units and keeps their blitz pace (--ff-disabled)
WAYGRAPH_CLEAR_SESSION1 clears the session before every step after the first
WAYGRAPH_VIDEORecord a video: the folder, or 1 for the default (--video)
WAYGRAPH_CALL_NAMESJSON of what the demo calls each HTTP call, by "METHOD /route" (the config's network.names)
WAYGRAPH_OVERLAY_HIDEThe parts of the demo overlay to leave out, comma-separated: banner, panel, checks, todos, calls (the config's demo.overlay)
WAYGRAPH_OVERLAY_TRACE1 logs each piece of the demo overlay showing and going, and how often each blinked
WAYGRAPH_DEVICEThe device run and demo start their browser as: a name or its parts, as JSON (the config's device)
WAYGRAPH_VOICE0 records a demo without the config's voice-over (--no-voice)
WAYGRAPH_VIDEO_DIRDefault video folder
WAYGRAPH_VIDEO_VIEWPORTRecording size, e.g. 1920x1080 (--video-viewport)
WAYGRAPH_RUN_LOGRun log: 0 turns it off, or a folder (the config's runLog)
WAYGRAPH_SESSIONSWhere accounts with a ttl save their sessions for later runs (default .waygraph/sessions); 0 turns saving off
WAYGRAPH_FRESH_SESSIONS1 signs every account in again, ignoring saved sessions, and saves the new ones (--fresh-sessions)
WAYGRAPH_EXTENSIONSUnpacked browser extension folders, path-separated (overrides the config's extensions)
WAYGRAPH_CACHE_DIRWhere downloaded extensions are cached
WAYGRAPH_PROVE_SHOTDemo self-check: screenshot path for the overlay proof
WAYGRAPH_PROVE_EXIT1 exits after the first overlay proof (demo self-check)
WAYGRAPH_PROVE_EVERY1 proves the overlay on every step, not only the first

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