A tiny CLI to screenshot and record scrolling web pages using Playwright (Chromium).
shot: PNG screenshots (viewport or full page)record: scrolling recordings to GIF or MP4 (viaffmpeg)run: JSON flow scripts (clicks/waits/scroll/record) for SPAs and multi-page sites
npm i -g pagepewnpx pagepew shot https://example.com --out shot.pngpagepew shot https://example.com --out shot.png
pagepew shot https://example.com --full-page --out full.png
pagepew shot https://example.com --width 1280 --height 800 --out shot.pngpagepew record https://example.com --scroll --speed 900 --fps 15 --duration 6 --out scroll.gif
pagepew record https://example.com --scroll --speed 900 --fps 30 --duration 6 --out scroll.mp4pagepew run flow.json # there are example flows in examples/ directory- This application is in very early development and can be buggy. If you do notice some obvious bugs please report them I would be happy to work on it.
- Contributions are welcome!
- MIT