Skip to content

waygraph / DemoSettings

Interface: DemoSettings ​

Defined in: src/runtime/waygraph-config.ts:45

Settings for waygraph demo.

Extends ​

Properties ​

appearance? ​

optional appearance?: "light" | "dark"

Defined in: src/runtime/waygraph-config.ts:61

The overlay in light or dark; by default it follows the system's setting. Pin one so every recording matches.


autoNext? ​

optional autoNext?: boolean

Defined in: src/runtime/waygraph-config.ts:57

Advance steps automatically instead of waiting for Next.


fast? ​

optional fast?: boolean

Defined in: src/runtime/waygraph-config.ts:59

Shorter Next / auto-next gates; keeps the cursor and typing animation.


headed? ​

optional headed?: boolean

Defined in: src/runtime/waygraph-config.ts:35

Show the browser window.

Inherited from ​

RunSettings.headed


overlay? ​

optional overlay?: OverlaySettings

Defined in: src/runtime/waygraph-config.ts:74

Which parts of waygraph's overlay a demo shows (each is on unless set to false). The cursor, the typing and the captions always show: { banner: false, panel: false, checks: false } is a demo of just the app, the mouse, the keyboard and what the captions say.


pace? ​

optional pace?: DemoPace

Defined in: src/runtime/waygraph-config.ts:47

Default pace for flows and steps that set none: "fast", "slow", "blitz", or a multiplier like 0.5 / 2. Narration gates and dwell scale with it; "blitz" also skips typing animation.


slowMo? ​

optional slowMo?: number

Defined in: src/runtime/waygraph-config.ts:40

run: Playwright's slowMo, ms before every operation. demo: waygraph's own pause after each action (default 350), applied once per action rather than per keystroke, and removed by a step's pace: "blitz".

Inherited from ​

RunSettings.slowMo


speeds? ​

optional speeds?: object

Defined in: src/runtime/waygraph-config.ts:53

What the named paces mean, as multipliers of normal dwell and gate time (1 = normal): blitz 0.05, fast 0.33, slow 2 by default. Lower is faster. blitz also skips the cursor, ring pops and typing animation.

blitz? ​

optional blitz?: number

fast? ​

optional fast?: number

slow? ​

optional slow?: number

Example ​

ts
speeds: { fast: 0.5, blitz: 0.1 }

typingMs? ​

optional typingMs?: number

Defined in: src/runtime/waygraph-config.ts:55

Typing animation: ms per character (default 30). 0 types instantly.


video? ​

optional video?: VideoSettings

Defined in: src/runtime/waygraph-config.ts:41

Inherited from ​

RunSettings.video


voice? ​

optional voice?: VoiceSettings

Defined in: src/runtime/waygraph-config.ts:68

A voice-over for recorded demos (--video): each caption and slide is spoken by speaker, timed to the recording, and the video gets it as its audio track (ffmpeg), with subtitles beside it (.vtt). steps: true also speaks each step's description. --no-voice records without it.

Example ​

ts
voice: { speaker: commandVoice("piper --model en_US-amy-medium.onnx --output_file {out}"), steps: true }

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