playwright-director 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +247 -31
  2. package/dist/Tutorial.d.ts +22 -0
  3. package/dist/Tutorial.d.ts.map +1 -1
  4. package/dist/Tutorial.js +72 -2
  5. package/dist/Tutorial.js.map +1 -1
  6. package/dist/client.d.ts +33 -0
  7. package/dist/client.d.ts.map +1 -0
  8. package/dist/client.js +72 -0
  9. package/dist/client.js.map +1 -0
  10. package/dist/fast-forward.d.ts +49 -0
  11. package/dist/fast-forward.d.ts.map +1 -0
  12. package/dist/fast-forward.js +77 -0
  13. package/dist/fast-forward.js.map +1 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/init.js +6 -6
  19. package/dist/init.js.map +1 -1
  20. package/dist/merge.d.ts +4 -0
  21. package/dist/merge.d.ts.map +1 -1
  22. package/dist/merge.js +10 -3
  23. package/dist/merge.js.map +1 -1
  24. package/dist/reporter.d.ts.map +1 -1
  25. package/dist/reporter.js +3 -0
  26. package/dist/reporter.js.map +1 -1
  27. package/dist/site/build-site.d.ts +18 -1
  28. package/dist/site/build-site.d.ts.map +1 -1
  29. package/dist/site/build-site.js +39 -8
  30. package/dist/site/build-site.js.map +1 -1
  31. package/dist/site/embed.d.ts +40 -18
  32. package/dist/site/embed.d.ts.map +1 -1
  33. package/dist/site/embed.js +48 -13
  34. package/dist/site/embed.js.map +1 -1
  35. package/dist/site/generate-manifest.d.ts.map +1 -1
  36. package/dist/site/generate-manifest.js +28 -3
  37. package/dist/site/generate-manifest.js.map +1 -1
  38. package/dist/site/scaffold.d.ts +7 -0
  39. package/dist/site/scaffold.d.ts.map +1 -1
  40. package/dist/site/scaffold.js +33 -7
  41. package/dist/site/scaffold.js.map +1 -1
  42. package/dist/site/scan-tutorials.d.ts +4 -1
  43. package/dist/site/scan-tutorials.d.ts.map +1 -1
  44. package/dist/site/scan-tutorials.js +9 -7
  45. package/dist/site/scan-tutorials.js.map +1 -1
  46. package/dist/site/strings.d.ts +34 -0
  47. package/dist/site/strings.d.ts.map +1 -0
  48. package/dist/site/strings.js +91 -0
  49. package/dist/site/strings.js.map +1 -0
  50. package/dist/site/types.d.ts +27 -1
  51. package/dist/site/types.d.ts.map +1 -1
  52. package/dist/styles.css +50 -0
  53. package/dist/timeline.d.ts +18 -1
  54. package/dist/timeline.d.ts.map +1 -1
  55. package/dist/timeline.js +47 -3
  56. package/dist/timeline.js.map +1 -1
  57. package/dist/tts-provider.js +1 -1
  58. package/dist/voice-dir.d.ts +9 -0
  59. package/dist/voice-dir.d.ts.map +1 -0
  60. package/dist/voice-dir.js +21 -0
  61. package/dist/voice-dir.js.map +1 -0
  62. package/dist/voice.d.ts +3 -0
  63. package/dist/voice.d.ts.map +1 -1
  64. package/dist/voice.js +29 -16
  65. package/dist/voice.js.map +1 -1
  66. package/dist/zoom.js +1 -1
  67. package/dist/zoom.js.map +1 -1
  68. package/package.json +9 -2
  69. package/schemas/embed-v1.schema.json +69 -0
  70. package/skills/tutorialize/SKILL.md +5 -0
  71. package/skills/tutorialize/agent.md +6 -0
  72. package/skills/tutorialize/references/api.md +64 -7
  73. package/skills/tutorialize/references/storytelling.md +24 -0
  74. package/src/styles.css +50 -0
  75. package/templates/site/public/widget.js +278 -141
  76. package/templates/site/src/components/TutorialsHome.astro +36 -8
  77. package/templates/site/src/components/VideoCard.astro +10 -5
  78. package/templates/site/src/components/VideoModal.astro +4 -3
  79. package/templates/site/src/i18n.ts +14 -0
  80. package/templates/site/src/layouts/Base.astro +7 -2
  81. package/templates/site/src/pages/[lang]/index.astro +16 -0
  82. package/templates/site/src/pages/[slug].astro +142 -30
package/README.md CHANGED
@@ -18,6 +18,7 @@ An AI agent can also write or adapt the test for a specific communication goal
18
18
  - [Quick Start](#quick-start)
19
19
  - [API Reference](#api-reference)
20
20
  - [Zooming on an element](#zooming-on-an-element)
21
+ - [Fast-forwarding long waits](#fast-forwarding-long-waits)
21
22
  - [Multiple user profiles](#multiple-user-profiles)
22
23
  - [Variants — record the same tutorial for mobile](#variants--record-the-same-tutorial-for-mobile)
23
24
  - [TTS Configuration](#tts-configuration)
@@ -49,6 +50,7 @@ Most software teams maintain **tests** and **documentation** separately. Tests v
49
50
  - **Context screens** — Goal / clarification / attention cards between steps to explain what's happening
50
51
  - **Background music** — Looping audio with fade-out on completion
51
52
  - **Camera zoom** — `zoom()` pushes in on a button, a field or a whole panel, optionally blurring the rest, then zooms back out
53
+ - **Fast-forward** — `fastForward(speed, …)` plays a slow generation or a repetitive chore sped up in the final video, VHS-style (`▶▶ ×4` badge, scanlines, tape grain)
52
54
  - **Blurred secrets** — `typeBlurred()` types passwords and API keys into a field that stays blurred in the video
53
55
  - **Email previews** — Simulated email popups for verification flow demos
54
56
  - **Multiple user profiles** — Two signed-in personas as browser-like tabs in one video, with an optional side-by-side moment
@@ -159,11 +161,18 @@ Videos are saved to `tutorials/videos/`, timelines to `tutorials/output/`.
159
161
  Tutorial runs create files in your project. Add these to `.gitignore`:
160
162
 
161
163
  ```gitignore
162
- # playwright-director generated files
164
+ # playwright-director generated files (the voice cache is tutorials/.cache/voice)
163
165
  tutorials/
164
- static/audio/tutorial-voice/
165
166
  ```
166
167
 
168
+ The narration clips are cached in `tutorials/.cache/voice/` (`TUTORIAL_VOICE_DIR`
169
+ changes it). They stay out of your app's `static/` or `public/` folder, so they
170
+ never ship in its production build: during the recording Playwright serves
171
+ them to the page itself. Upgrading from 0.4: clips found in the old
172
+ `static/audio/tutorial-voice/` are copied into the new cache the first time
173
+ they are needed, so nothing is re-synthesized; delete the old folder after a
174
+ run.
175
+
167
176
  ### 5. Converting an existing test
168
177
 
169
178
  The most common use case is converting an existing Playwright test:
@@ -195,7 +204,7 @@ const tutorial = new Tutorial(page, options);
195
204
  |---|---|---|---|
196
205
  | `title` | `string` | *required* | Tutorial title shown in overlay |
197
206
  | `translate` | `(key: string) => string` | `k => k` | Translation function — pass your i18n `t()` |
198
- | `audioBaseUrl` | `string` | `'http://localhost:5173'` | Base URL for serving audio files |
207
+ | `audioBaseUrl` | `string` | `'http://localhost:5173'` | Origin the narration audio plays from (Playwright serves the clips; any page origin works) |
199
208
  | `lang` | `string` | `'en'` | Language for UI text and TTS (e.g. `'en'`, `'fr'`, `'ar'`) |
200
209
  | `testName` | `string` | auto | Output filename slug |
201
210
  | `testFile` | `string` | `''` | Test file path for metadata |
@@ -229,6 +238,8 @@ const tutorial = new Tutorial(page, options);
229
238
  | `highlight(locator, duration?)` | Highlight an element |
230
239
  | `zoom(locator, options?)` | Camera zoom on an element, hold, zoom back out — see [Zooming on an element](#zooming-on-an-element) |
231
240
  | `zoomIn(locator, options?)` / `zoomOut()` | Zoom in and stay zoomed (interact while zoomed), then zoom back out |
241
+ | `startFastForward(speed, options?)` / `endFastForward()` | Mark the start / end of a span played `speed`× faster in the final video — see [Fast-forwarding long waits](#fast-forwarding-long-waits) |
242
+ | `fastForward(speed, action, options?)` | Run `action` fast-forwarded (start + end markers around it) and return its result |
232
243
  | `moveMouseToElement(locator)` | Animate cursor to element |
233
244
  | `showEmailPreview(options)` | Show simulated email popup |
234
245
  | `switchPage(page)` | Switch recording to another tab/window |
@@ -293,6 +304,58 @@ It works across scenes (the whole stage zooms) and on scrolled pages with
293
304
  fixed headers. Like the rest of the tutorial layer, it is a no-op when
294
305
  `TUTORIAL_MODE` is off. Keep a `zoomIn()`/`zoomOut()` pair inside one step.
295
306
 
307
+ ### Fast-forwarding long waits
308
+
309
+ Some flows have a stretch nobody wants to watch in real time: a report that
310
+ takes 30 seconds to generate, a twelve-row form filled one field at a time.
311
+ Mark it with a start and an end marker and the final video plays it sped up,
312
+ like fast-forwarding an old VHS tape — a `▶▶ ×N` badge, scanlines and a
313
+ rolling tracking band in the page, tape grain and a chroma shift added by
314
+ ffmpeg. The test itself still runs at normal speed: only the video is
315
+ re-timed.
316
+
317
+ ```typescript
318
+ tutorial.step('Generate the quarterly report', async () => {
319
+ await tutorial.click(page.locator('#generate'));
320
+ // Wrap the slow part — speed is the argument
321
+ await tutorial.fastForward(8, async () => {
322
+ await expect(page.locator('#report')).toBeVisible({ timeout: 60_000 });
323
+ });
324
+ });
325
+
326
+ // Or with explicit markers
327
+ tutorial.step('Import the twelve invoices', async () => {
328
+ await tutorial.startFastForward(4);
329
+ for (const row of rows) await tutorial.fill(page.locator(`#amount-${row.id}`), row.amount);
330
+ await tutorial.endFastForward();
331
+ });
332
+ ```
333
+
334
+ ![A PDF export fast-forwarded at 8× (second span of the video), VHS badge and scanlines on screen](docs/images/fast-forward.png)
335
+
336
+ | Option | Type | Default | Description |
337
+ |---|---|---|---|
338
+ | `speed` (argument) | `number` | — | Playback speed of the span in the final video. Must be `> 1` |
339
+ | `vhs` | `boolean` | `true` | VHS look (badge, scanlines, grain, chroma shift). `false` = a plain speed-up |
340
+
341
+ A video can have any number of spans, each with its own speed — e.g. a
342
+ report generation at `4` and a PDF export at `8` in the same tutorial.
343
+
344
+ The final length is predictable: each span of `L` ms recorded at speed `S`
345
+ lasts `L / S` ms in the video, so the video is `tape − Σ L × (1 − 1/S)` long.
346
+ The timeline JSON records it — `totalDurationMs` is the final length,
347
+ `tapeDurationMs` the recorded one, `fastForward[]` the spans — and step
348
+ timestamps, transcripts and the gallery all use final-video time.
349
+
350
+ Rules:
351
+
352
+ - Call it **inside a step's action** (it needs the running timeline of
353
+ `complete()`). A span never outlives its step — one left open is closed as soon as the step's action returns.
354
+ - Narration is never sped up. If the step's narration is still playing,
355
+ `startFastForward()` waits for the clip to end first, so the voice never
356
+ runs over sped-up video.
357
+ - No-op outside `TUTORIAL_MODE` (`fastForward()` just runs the action).
358
+
296
359
  ## Multiple user profiles
297
360
 
298
361
  Some stories need two people: an accountant issues an invoice, a client pays it.
@@ -358,8 +421,38 @@ await tutorial.complete();
358
421
  or `DENY` (Google, Bing, many SaaS apps) **cannot** be used as scenes. For
359
422
  your own app, relax `frame-ancestors` in tutorial mode only.
360
423
  - `stage()` navigates the parent page to `audioBaseUrl` before injecting the
361
- stage, so narration audio loads same-origin. Point `audioBaseUrl` at the app
362
- serving `static/audio/tutorial-voice/`.
424
+ stage, so narration audio loads same-origin (Playwright answers the voice
425
+ URLs from the cache; the app does not need to serve them).
426
+
427
+ ## Languages — one spec, one recording per language
428
+
429
+ Run the same spec once per language with `TUTORIAL_LANG`. It overrides the
430
+ `lang` option (narration + TTS voice: macOS Thomas / Samantha / Majed, Edge
431
+ Henri / Guy / Hamed, or your `TUTORIAL_TTS_CMD` with `{lang}`) and suffixes
432
+ every output with `.<lang>`. Drive the app UI and your texts from
433
+ `tutorial.lang`:
434
+
435
+ ```typescript
436
+ const tutorial = new Tutorial(page, { title: t('look.title'), testName: 'look', lang: 'fr', translate: t });
437
+ await page.goto(`/properties/1/look?lang=${tutorial.lang}`); // app UI in the recorded language
438
+ ```
439
+
440
+ ```bash
441
+ TUTORIAL_MODE=true npx playwright test tutorial # → look.webm (default, lang option)
442
+ TUTORIAL_MODE=true TUTORIAL_LANG=en npx playwright test tutorial # → look.en.webm
443
+ TUTORIAL_MODE=true TUTORIAL_LANG=ar npx playwright test tutorial # → look.ar.webm
444
+ ```
445
+
446
+ The gallery groups the recordings by slug (`look`). It gets one home page per
447
+ language — `/` for the site's default `lang`, `/en/`, `/ar/`… for the others,
448
+ linked to each other — each video page links to the same tutorial in the other
449
+ languages, and Arabic/Hebrew/Persian/Urdu pages render right-to-left. The site
450
+ chrome (buttons, labels) is translated in English, French and Arabic; see
451
+ `strings` in the site configuration to change a text or add a language.
452
+ Embed data: `embed/<slug>.<lang>.json` per language, `embed/<slug>.json` =
453
+ the default language (or the only one recorded), and `index.json` lists each
454
+ slug once with its `langs`. `load(slug, { lang })` falls back to the default
455
+ language when that language was not recorded.
363
456
 
364
457
  ## Variants — record the same tutorial for mobile
365
458
 
@@ -465,7 +558,7 @@ import { buildMergeCommand } from 'playwright-director';
465
558
  Uses the built-in `say` command. Voices per language:
466
559
  - French: Thomas
467
560
  - English: Samantha
468
- - Arabic: Maged
561
+ - Arabic: Majed
469
562
 
470
563
  ### Edge TTS
471
564
 
@@ -492,7 +585,7 @@ npx playwright-director regen-voices # synthesize the missing
492
585
  npx playwright-director regen-voices --workers=4 # parallel TTS (default 2)
493
586
  npx playwright-director regen-voices --force # after a voice change: redo everything
494
587
  npx playwright-director regen-voices --lang=fr # one language only
495
- rm -rf static/audio/tutorial-voice && npx playwright-director regen-voices # full rebuild
588
+ rm -rf tutorials/.cache/voice && npx playwright-director regen-voices # full rebuild
496
589
  ```
497
590
 
498
591
  Narration texts are collected from the artifacts that record them verbatim:
@@ -507,6 +600,8 @@ run picks the clips up from cache.
507
600
  |---|---|---|
508
601
  | `TUTORIAL_MODE` | `false` | Enable tutorial video generation |
509
602
  | `TUTORIAL_VARIANT` | none | Recording variant — suffixes outputs; `mobile` also compacts the overlay and pins the split |
603
+ | `TUTORIAL_VOICE_DIR` | `tutorials/.cache/voice` | Voice clip cache (read by recording, merge and `regen-voices`) |
604
+ | `TUTORIAL_LANG` | none | Recording language — overrides `lang`, suffixes outputs `.<lang>` (one run per language) |
510
605
  | `TUTORIAL_VOICE` | `true` | Enable/disable voice narration |
511
606
  | `TUTORIAL_VOICE_NAME` | auto | TTS voice name override |
512
607
  | `TUTORIAL_TTS_CMD` | `say` (macOS) | Custom TTS command |
@@ -594,12 +689,20 @@ npx tutorial-transcript
594
689
  # 2. Edit tutorials/transcripts/{test-name}.md — fix the narration texts
595
690
 
596
691
  # 3. Apply: rewrites the corrected texts in your test file
597
- npx tutorial-transcript apply
692
+ npx tutorial-transcript apply tutorials/transcripts/{test-name}.md
598
693
 
599
- # 4. Re-run: only the changed TTS clips are regenerated (content-hash caching)
600
- TUTORIAL_MODE=true npx playwright test
694
+ # 4. Re-record only that tutorial (-g matches the test title); only the
695
+ # changed TTS clips are regenerated (content-hash caching)
696
+ TUTORIAL_MODE=true npx playwright test -g "Customize the look"
697
+
698
+ # 5. Preview just that page (a site with only this tutorial)
699
+ npx playwright-director build-site -y --only={test-name}
601
700
  ```
602
701
 
702
+ Example — the transcript line `Cliquez sur Enregistrer.` corrected to
703
+ `Cliquez sur « Enregistrer » pour valider.` becomes, after `apply`, the same
704
+ change in the `tutorial.step(…)` string of the spec file.
705
+
603
706
  `apply` pairs each transcript entry with its timeline step (by the `**key:**`
604
707
  lines, in order — a key used twice corrects each occurrence in turn; the
605
708
  `**[Complete]**` entry is the completion message), then locates the original
@@ -703,6 +806,8 @@ On the first run, a `tutorial-site.config.js` file is created with sensible defa
703
806
 
704
807
  The command scans your `tutorials/` directory for videos, screenshots, and timeline metadata, then builds a static site ready to deploy (e.g., to Cloudflare Pages, Netlify, or any static host).
705
808
 
809
+ Astro, which renders the site, is playwright-director's own dependency: your project does not need it, and the build works in npm, pnpm and bun workspaces (including bun's isolated linker).
810
+
706
811
  ### What gets generated
707
812
 
708
813
  ```
@@ -710,6 +815,7 @@ tutorial-site-dist/ # Static site output (configurable)
710
815
  ├── index.html # Gallery home — videos grouped by category
711
816
  ├── {video-slug}/index.html # Dedicated page per video: player + step-by-step guide
712
817
  ├── widget.js # Embeddable in-app help widget (see below)
818
+ ├── client.js # Headless data API (ESM) — widget.js builds on it
713
819
  ├── embed/ # Widget data
714
820
  │ ├── {video-slug}.json # One payload per tutorial: video, description, steps
715
821
  │ └── index.json # All available slugs (discovery/debugging)
@@ -726,6 +832,13 @@ narration text paired with its screenshot. Context narrations recorded
726
832
  mid-flow appear as callouts between steps, and steps recorded without voice
727
833
  still show their text.
728
834
 
835
+ Each voiced step also shows its start time (`▶ 0:13`): clicking it seeks the
836
+ video there, and the step that is playing is highlighted (`aria-current="step"`).
837
+ Seeking needs a host that answers HTTP Range requests with `206` — Cloudflare
838
+ Pages, Netlify, GitHub Pages and `playwright-director serve` do. A step
839
+ declared with an untranslated key (`tg.open`) is titled with the first
840
+ sentence of its narration instead.
841
+
729
842
  ![Video page with thumbnail strip and text guide](docs/images/video-page.png)
730
843
 
731
844
  Two settings control the guide (`tutorials` block of the config):
@@ -762,9 +875,10 @@ element with `data-tutorial="<video-slug>"`:
762
875
  <button data-tutorial="create-account">📘 How does this work?</button>
763
876
  ```
764
877
 
765
- Clicking the element opens an overlay right inside your app — the tutorial
766
- video, its intro narration, and the full step-by-step guide (click a step to
767
- reveal its screenshot), with a link to the full tutorial page on the gallery:
878
+ Clicking the element opens a modal dialog right inside your app — the tutorial
879
+ video, its intro narration and its chapters (click a chapter to jump to it in
880
+ the video; the playing one is highlighted), with a link to the full tutorial
881
+ page on the gallery:
768
882
 
769
883
  ![In-app widget opened over a host application](docs/images/widget.png)
770
884
 
@@ -777,19 +891,87 @@ Notes:
777
891
  - **Slugs** are the video ids — the file names in the gallery's `videos/`
778
892
  directory (a tutorial's `name`, plus `-<variant>` for variant recordings).
779
893
  `GET <site>/embed/index.json` lists them all.
780
- - **Programmatic API**: `window.PlaywrightDirector.open('create-account')` and
781
- `window.PlaywrightDirector.close()` — e.g. to launch a tutorial from an onboarding
782
- checklist instead of a button.
783
- - **Theming**: the gallery's `primaryColor` is the default accent; override it
784
- from the host page with `.playwright-director-widget { --playwright-director-accent: #16a34a; }`.
785
- - **Cross-origin**: the widget fetches `embed/<slug>.json` from the gallery
786
- host, so the gallery must send `Access-Control-Allow-Origin` for your app's
787
- origin. GitHub Pages sends `*` out of the box; on Netlify or Cloudflare
788
- Pages add a headers rule for `/embed/*` (e.g. a `_headers` file with
789
- `Access-Control-Allow-Origin: *`). Video and screenshots are plain media
790
- elements and need no CORS.
791
- - **RTL** tutorials (`lang: 'ar'`, …) render the whole panel right-to-left;
792
- individual texts use `dir="auto"` either way.
894
+ - **Programmatic API**: `window.PlaywrightDirector.open('create-account', { lang: 'fr' })`
895
+ and `window.PlaywrightDirector.close()` — e.g. to launch a tutorial from an
896
+ onboarding checklist instead of a button. `load()` returns the data with no
897
+ UI (see the next section).
898
+ - **Language**: `open()`'s `lang`, else the trigger's `data-tutorial-lang`,
899
+ else your page's `<html lang>`. It picks the tutorial language (falling back
900
+ to the default one) and the widget texts — English, French and Arabic are
901
+ built in; add one from your page with
902
+ `PlaywrightDirector.strings.es = { close: 'Cerrar', steps: 'Pasos', … }`.
903
+ Arabic, Hebrew, Persian and Urdu render right-to-left.
904
+ - **Accessibility**: a native modal `<dialog>` — the page behind is inert, Esc
905
+ or a click on the backdrop closes it, focus goes to the labelled close
906
+ button and returns to the trigger afterwards. Chapters are a list of
907
+ buttons (`aria-current="step"` on the playing one; ↑/↓, Home/End move
908
+ between them, Enter seeks); every target is at least 44 px. The e2e suite
909
+ runs axe (WCAG 2.1 AA) on the open dialog in French and Arabic.
910
+ - **Theming**: set CSS custom properties on the widget host from your app's
911
+ stylesheet — your rules win over the defaults:
912
+
913
+ ```css
914
+ .playwright-director-widget {
915
+ --pd-accent: #16a34a; /* default: the gallery's primaryColor */
916
+ --pd-surface: #ffffff; /* dialog background */
917
+ --pd-text: #0f172a;
918
+ --pd-muted: #64748b; /* secondary text */
919
+ --pd-border: #e2e8f0;
920
+ --pd-radius: 12px;
921
+ --pd-font: "Inter", sans-serif; /* default: your app's font */
922
+ --pd-focus-ring: 0 0 0 3px rgb(22 163 74 / 45%); /* a box-shadow */
923
+ }
924
+ ```
925
+
926
+ The pre-0.5 `--playwright-director-accent` still works.
927
+ - **Cross-origin**: the widget loads `client.js` and `embed/<slug>.json` from
928
+ the gallery host, so the gallery must send `Access-Control-Allow-Origin` for
929
+ your app's origin. GitHub Pages sends `*` out of the box; for Cloudflare
930
+ Pages and Netlify, `build-site` writes a `_headers` file (see
931
+ [Deploying to Cloudflare Pages](#deploying-to-cloudflare-pages)).
932
+
933
+ ### Headless data API — bring your own player
934
+
935
+ Apps with their own player or dialog read the same data with no UI.
936
+
937
+ **Script tag** (with `widget.js` loaded):
938
+
939
+ ```js
940
+ const t = await window.PlaywrightDirector.load('create-account', { lang: 'fr' });
941
+ ```
942
+
943
+ **Bundled ESM** (no script tag):
944
+
945
+ ```js
946
+ import { load, loadIndex, currentStep } from 'playwright-director/client';
947
+
948
+ const t = await load('create-account', { baseUrl: 'https://tutorials.myapp.com/', lang: 'fr' });
949
+ video.src = t.video; // absolute URL
950
+ for (const s of t.steps) if (s.at !== undefined) addChapter(s.at, s.title);
951
+ video.ontimeupdate = () => highlight(currentStep(t.steps, video.currentTime));
952
+ ```
953
+
954
+ `load()` resolves to the payload of `embed/<slug>.json` with **every URL made
955
+ absolute** (`video`, `poster`, `page`, `steps[].image`) plus `baseUrl`. With
956
+ `lang`, it tries `embed/<slug>.<lang>.json` first and falls back to the default
957
+ language. It rejects with a message that names the URL and the reason
958
+ (unknown slug → HTTP 404 and the index URL; network/CORS failure → the missing
959
+ `Access-Control-Allow-Origin` header).
960
+
961
+ The payloads are versioned: [`schemas/embed-v1.schema.json`](schemas/embed-v1.schema.json)
962
+ (also importable as `playwright-director/schemas/embed-v1.schema.json`).
963
+ In the raw files, all paths are **relative to the site base URL** (the
964
+ directory serving `widget.js` and `embed/`).
965
+
966
+ | `embed/<slug>.json` field | Meaning |
967
+ |---|---|
968
+ | `schemaVersion` | `1` — only gains optional fields; a breaking change bumps it |
969
+ | `id`, `title`, `description?`, `lang`, `variant?` | Identity and intro narration |
970
+ | `duration` / `durationSeconds` | `"m:ss"` display string / number |
971
+ | `video`, `poster?`, `page` | Video, poster image, full gallery page |
972
+ | `steps[]` | `{ num?, at?, title?, key?, text?, image?, context? }` — `at` = start in seconds (chapters), `title` = human heading, `key` = the i18n key, `context: true` = unnumbered narration |
973
+
974
+ `embed/index.json` is `{ schemaVersion, tutorials: [{ id, title, duration, durationSeconds, lang, variant? }] }`.
793
975
 
794
976
  ### Configuration
795
977
 
@@ -804,11 +986,18 @@ export default {
804
986
 
805
987
  // Paths
806
988
  input: "tutorials/", // Where videos + timelines live
807
- output: "tutorial-site-dist/", // Where the static site is built
989
+ output: "tutorial-site-dist/", // Where the static site is built (may sit inside input)
990
+ timelines: "e2e/output/", // Optional: timeline JSON dir (default <input>/output — match TUTORIAL_OUTPUT_DIR)
991
+ videos: "e2e/videos/", // Optional: videos + screenshots dir (default <input>/videos)
808
992
 
809
993
  // Site
810
- baseUrl: "https://tutorials.myapp.com", // For SEO (optional)
811
- lang: "fr", // Site language
994
+ baseUrl: "https://tutorials.myapp.com", // Full URL, or just a path ("/help/") for a sub-path deployment
995
+ cors: "*", // _headers Access-Control-Allow-Origin: "*", one origin, or false (no file)
996
+ lang: "fr", // Default language (served at /, others at /<lang>/)
997
+ strings: { // Optional: site UI texts, merged over the built-in en/fr/ar
998
+ fr: { allTutorials: "Toute l’aide" },
999
+ es: { allTutorials: "Todos los tutoriales", close: "Cerrar" }, // a new language starts from English
1000
+ },
812
1001
 
813
1002
  // Content overrides (optional)
814
1003
  tutorials: {
@@ -828,9 +1017,9 @@ export default {
828
1017
 
829
1018
  ### How videos are discovered
830
1019
 
831
- The scanner looks for `.webm` files in `<input>/videos/`. For each video:
1020
+ The scanner looks for `.webm` files in `<input>/videos/` (or `videos`). For each video:
832
1021
 
833
- - If a matching `_timeline.json` exists in `<input>/output/`, its metadata is used (title from narration steps, duration, category from `@feature:*` tag)
1022
+ - If a matching `_timeline.json` exists in `<input>/output/` (or `timelines`), its metadata is used (title from narration steps, duration, category from `@feature:*` tag)
834
1023
  - Otherwise, a human-readable title is derived from the filename and duration is left blank
835
1024
 
836
1025
  Step screenshots (`{video}-step-{n}.{png,webp}`) are auto-detected and displayed as a carousel on each video card.
@@ -848,8 +1037,35 @@ npx serve tutorial-site-dist
848
1037
  ```bash
849
1038
  playwright-director build-site # Uses ./tutorial-site.config.js
850
1039
  playwright-director build-site --config=path/to.js # Custom config path
1040
+ playwright-director build-site --base=/help/ # Deploy under a sub-path (overrides baseUrl)
1041
+ playwright-director build-site -y # Never prompt (CI); also automatic without a TTY
1042
+ playwright-director build-site --only=look,billing # Only these tutorials (all languages/variants)
851
1043
  ```
852
1044
 
1045
+ `--only` builds a site with just those tutorials — handy to check one page
1046
+ quickly. Deploy a full build.
1047
+
1048
+ ### Deploying to Cloudflare Pages
1049
+
1050
+ Publish the output directory as is. It contains a `_headers` file (also read
1051
+ by Netlify) so that an app on another origin can load the tutorials:
1052
+
1053
+ ```
1054
+ /embed/* Access-Control-Allow-Origin: * Cache-Control: public, max-age=300
1055
+ /client.js Access-Control-Allow-Origin: * Cache-Control: public, max-age=300
1056
+ /widget.js Access-Control-Allow-Origin: * Cache-Control: public, max-age=300
1057
+ /videos/* Access-Control-Allow-Origin: * Cache-Control: public, max-age=604800
1058
+ ```
1059
+
1060
+ Set `cors` in the config to one origin (`"https://app.example.com"`) to
1061
+ restrict it, or `false` to write no file. With a sub-path (`--base=/help/`)
1062
+ the rules are prefixed with it. Videos keep their name when re-recorded, so
1063
+ their cache is one week, not "immutable".
1064
+
1065
+ Seeking a video (chapters, the player's timeline) needs a host that answers
1066
+ HTTP Range requests with `206 Partial Content`. Cloudflare Pages, Netlify and
1067
+ GitHub Pages do; some simple static servers (`python -m http.server`) do not.
1068
+
853
1069
  ### Deploying to GitHub Pages from CI
854
1070
 
855
1071
  The gallery is a plain static site, so it deploys anywhere — this repository deploys its own on every push to `main` ([`.github/workflows/deploy-site.yml`](.github/workflows/deploy-site.yml)): a marketing landing page at the site root and the generated gallery under `/gallery/`.
@@ -2,6 +2,7 @@ import type { Page, Locator, FrameLocator } from '@playwright/test';
2
2
  import type { TutorialOptions, StepOptions, ContextOptions, SceneFocus, FocusOptions } from './types.js';
3
3
  import { TutorialTimeline } from './timeline.js';
4
4
  import { type ZoomOptions } from './zoom.js';
5
+ import { type FastForwardOptions } from './fast-forward.js';
5
6
  /**
6
7
  * When to start a step's action inside its narration clip (option B of
7
8
  * docs/narration-action-overlap.md — one merged clip, computed offset).
@@ -22,10 +23,16 @@ export declare class Tutorial {
22
23
  private cursor;
23
24
  private overlay;
24
25
  private zoomer;
26
+ private fastForwarder;
25
27
  private timeline;
26
28
  private pendingItems;
27
29
  private stepCounter;
28
30
  private videoStartTime;
31
+ /** True between timeline.start() and the end of complete() — fast-forward needs a running timeline. */
32
+ private recording;
33
+ /** Epoch ms when the narration clip playing now ends (fast-forward waits for it). */
34
+ private narrationEndsAt;
35
+ private fastForwarding;
29
36
  private scenes;
30
37
  private activeScenes;
31
38
  private sceneTransitionMs;
@@ -57,6 +64,8 @@ export declare class Tutorial {
57
64
  private get stagedScene();
58
65
  private sameFocus;
59
66
  static get isEnabled(): boolean;
67
+ /** Narration language (TUTORIAL_LANG, else the `lang` option) — drive the app UI with it, e.g. `?lang=${tutorial.lang}`. */
68
+ get lang(): string;
60
69
  private translate;
61
70
  clearFields(): void;
62
71
  get hasSteps(): boolean;
@@ -83,6 +92,19 @@ export declare class Tutorial {
83
92
  zoomIn(selector: string | Locator, options?: ZoomOptions): Promise<void>;
84
93
  /** Undo `zoomIn()`. Safe to call when not zoomed. */
85
94
  zoomOut(): Promise<void>;
95
+ /**
96
+ * Start a fast-forwarded span: from here until `endFastForward()`, the final
97
+ * video plays `speed`× faster (VHS-style badge, scanlines and grain unless
98
+ * `vhs: false`). For waits nobody wants to watch — a slow generation, a
99
+ * repetitive fill. Call it inside a step's action: a narration clip still
100
+ * playing is waited for first, so speech never runs over sped-up video.
101
+ * The test itself runs at normal speed. No-op outside tutorial mode.
102
+ */
103
+ startFastForward(speed: number, options?: FastForwardOptions): Promise<void>;
104
+ /** End the span opened by `startFastForward()`. Safe to call when not fast-forwarding. */
105
+ endFastForward(): Promise<void>;
106
+ /** Run `action` fast-forwarded at `speed`× — `startFastForward` + `endFastForward` around it. */
107
+ fastForward<T>(speed: number, action: () => Promise<T>, options?: FastForwardOptions): Promise<T>;
86
108
  moveMouseToElement(locator: Locator): Promise<void>;
87
109
  moveMouse(targetX: number, targetY: number): Promise<void>;
88
110
  animateClick(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Tutorial.d.ts","sourceRoot":"","sources":["../src/Tutorial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE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