waygraph / DemoSettings
Interface: DemoSettings
Defined in: src/runtime/waygraph-config.ts:45
Settings for waygraph demo.
Extends
Properties
appearance?
optionalappearance?:"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?
optionalautoNext?:boolean
Defined in: src/runtime/waygraph-config.ts:57
Advance steps automatically instead of waiting for Next.
fast?
optionalfast?:boolean
Defined in: src/runtime/waygraph-config.ts:59
Shorter Next / auto-next gates; keeps the cursor and typing animation.
headed?
optionalheaded?:boolean
Defined in: src/runtime/waygraph-config.ts:35
Show the browser window.
Inherited from
overlay?
optionaloverlay?: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?
optionalpace?: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?
optionalslowMo?: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
speeds?
optionalspeeds?: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?
optionalblitz?:number
fast?
optionalfast?:number
slow?
optionalslow?:number
Example
speeds: { fast: 0.5, blitz: 0.1 }typingMs?
optionaltypingMs?:number
Defined in: src/runtime/waygraph-config.ts:55
Typing animation: ms per character (default 30). 0 types instantly.
video?
optionalvideo?:VideoSettings
Defined in: src/runtime/waygraph-config.ts:41
Inherited from
voice?
optionalvoice?: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
voice: { speaker: commandVoice("piper --model en_US-amy-medium.onnx --output_file {out}"), steps: true }