Skip to content

feat: add README demo GIF and Playwright recording script#12

Merged
hugolytics merged 1 commit into
mainfrom
feat/readme-demo-gif
Mar 12, 2026
Merged

feat: add README demo GIF and Playwright recording script#12
hugolytics merged 1 commit into
mainfrom
feat/readme-demo-gif

Conversation

@hugolytics
Copy link
Copy Markdown
Member

What

  • Adds scripts/record-demo.mjs: uses Playwright recordVideo to capture a full walkthrough of the vLLM example, then converts to an optimised GIF via ffmpeg
  • Embeds the GIF in the README under How it looks
  • Sets overview.position: last so the viewer starts at step 01 ("All" appears at the end of the nav row)
  • Updates the docs CI (docs.yml) to install ffmpeg + Playwright, record a fresh GIF on every deploy, and publish it to the docs site at /demo.gif
  • Adds demo:record npm script for local regeneration

Why

The README had no visual preview. A GIF is the best way to show the zoom/pan animations and step navigation that make up the core DiaScope experience.

GIF details

  • 1200×680, 15fps, ~18s, ~5.7MB
  • Palette-optimised via ffmpeg (palettegen/paletteuse, bayer dithering)
  • Recorded at full resolution so the diagram text is readable

CI notes

docs.yml now: installs ffmpeg → installs Playwright Chromium → runs demo:record --out docs-site/public/demo.gif → builds docs. The GIF in the repo (docs/demo.gif) provides the README preview; the CI-generated one at /demo.gif on the docs site stays fresh automatically.

- Add scripts/record-demo.mjs: Playwright recordVideo → ffmpeg → optimised GIF
- Add npm script demo:record (default output: docs/demo.gif)
- Update docs.yml CI to install ffmpeg + Playwright, record fresh GIF on every docs deploy
- Embed docs/demo.gif in README under 'How it looks'
- Set overview.position: last so viewer starts at step 01 (All at end)
- Rebuild example HTMLs from updated story YAML
- Add playwright devDependency
@hugolytics hugolytics merged commit 9cd3b6e into main Mar 12, 2026
3 checks passed
@hugolytics hugolytics deleted the feat/readme-demo-gif branch March 12, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant