Every engineering team hits the same annoying Tuesday problem:

  1. You ship a small UI tweak to billing, onboarding, or navigation.
  2. Your interactive website product tour, your walkthrough video, and your docs screenshots all silently go stale at the exact same time.
  3. Meanwhile, you are either burning an afternoon clicking through a browser extension again — or paying $500–$1,200/month per workspace + seat fees for SaaS demo tools that still break whenever React renders a different layout.

What annoyed me most is that our Playwright end-to-end test suite already logs in, waits for selectors, clicks the exact happy path, and verifies the live rendered DOM on every commit.

So I built an MIT-licensed CLI, Playwright SDK, and GitHub Action called DemoCI (github.com/devansh2396/democi) to compile one CI run into three synced deliverables:

  1. A zero-dependency interactive HTML spotlight tour (tour/index.html + tour/embed.js + tour/manifest.json)
  2. An H.264 30fps auto-zoom MP4 demo video (video/demo.mp4 via FFmpeg)
  3. An annotated Markdown walkthrough guide (docs/guide.md) ready for GitHub, Mintlify, or Docusaurus

Notice we haven't even bought a .com domain yet — we're validating strictly in the open on GitHub Pages first.

How It Works Under the Hood (Without Chrome Extensions or Fragile Overlays)

Instead of manually dragging callout boxes over PNGs after the fact, createDemoRecorder() in src/sdk.mjs instruments Playwright directly:

import { chromium } from 'playwright'; import { createDemoRecorder } from 'democi'; const browser = await chromium.launch(); const page = await browser.newPage({ viewport: { width: 1280, height: 800 } }); await page.goto('https://your-app.example.com'); const demo = createDemoRecorder({ name: 'Team Onboarding Tour', outDir: './democi-out', }); await demo.step(page, { id: 'create-project', title: "'Create your first workspace'," selector: '[data-testid="new-workspace"]', action: 'click', zoom: 1.55, mask: ['input[type="email"]', '.customer-pii'], }); await demo.finalize(); await browser.close(); 

1. Deterministic DOM Bounding Boxes (src/geometry.mjs)

Before capturing each frame, step() waits for the selector to stabilize, scrolls it cleanly into view, calls locator.boundingBox(), and passes coordinates through clampViewportBox() and computeZoomWindowOrigin().

Normalized coordinates (normX, normY, normCx, normCy) keep callout spotlights locked onto the exact button or form field even when screens resize inside iframes.

2. Automatic Pre-Capture PII Masking (src/sdk.mjs)

Developers don't want customer emails or API keys accidentally immortalized in release videos or marketing tours. Passing mask: ['input[type="email"]', '.api-key'] temporarily injects a clean hatched privacy overlay over matching DOM nodes right before page.screenshot(), then immediately removes it in a finally block so the live Playwright test keeps running normally.

Here's a real auto-generated run over a SaaS homepage where an inline email field is automatically redacted before tour/video export:

3. Smooth Auto-Zoom MP4 via FFmpeg (src/video-builder.mjs)

Instead of shipping brittle headless video wrappers or macOS-only screen recorders, buildStepZoomFilter() computes an FFmpeg zoompan + progress-bar expression straight from the recorded selector center (normCx, normCy) and renders standard 30fps yuv420p MP4 segments:

const zoomExpr = `if(lt(on,${holdFrames}),1,if(lt(on,${endRamp}),1+(${(targetZoom - 1).toFixed(4)})*(on-${holdFrames})/${rampFrames},${targetZoom.toFixed(4)}))`; const xExpr = `max(0,min(iw-iw/zoom,${nx.toFixed(4)}*iw-iw/(2*zoom)))`; const yExpr = `max(0,min(ih-ih/zoom,${ny.toFixed(4)}*ih-ih/(2*zoom)))`; 

4. GitHub Actions CI Integration

You can drop it straight into .github/workflows/demo.yml using a 10-line democi.yml or existing Playwright suite:

- uses: actions/checkout@v4 - uses: devansh2396/democi@v0.1.0 with: spec: democi.yml out-dir: democi-out 

Or run locally right now with zero repo setup:

npx --yes github:devansh2396/democi init npx --yes github:devansh2396/democi run --spec democi.yml 

Want to See Your Own Product Compiled Automatically?

I'm stress-testing DemoCI across real SaaS frontends and dashboards right now. If you drop your public app or marketing URL in a comment or open a free request here:

I will run DemoCI against it and reply with a standalone tour bundle (tour/index.html, video/demo.mp4, and docs/guide.md) you can host anywhere with zero vendor lock-in.

Would especially appreciate feedback from folks using Playwright in CI: how do you handle deterministic data seeding before capturing marketing/help-center screenshots?