What problem does it solve?
Screenwright converts developer-oriented Playwright end-to-end tests into polished, narrated product demo videos so teams can create marketing, onboarding, and release highlight videos without manual screen recording and editing.
Core Features & Use Cases
- Scenario generation from tests: Reads relevant Playwright tests and generates human-paced TypeScript demo scenarios using sw.* helpers.
- Narration and pacing: Adds AI-driven voiceover and timing guidance with optional Piper or OpenAI TTS integration.
- Deterministic composition: Records and composes video with cursor animation and voiceover into a final MP4 using the screenwright CLI, producing reproducible artifacts for CI.
- Validation and error guidance: Validates generated scenarios for required imports, disallowed raw page calls, and provides clear retry guidance and specific error codes.
- Use cases: Create product showcase videos from test flows, produce onboarding walkthroughs, and generate demo assets for release notes or sales collateral.
Quick Start
Run npx screenwright generate on a Playwright test to produce a scenario, review the generated file, then run npx screenwright compose on the scenario to render the final MP4.