Collage all breakpoints and catch visual regressions fast. Posts a PR comment with a single collage image.
Type: CLI (Node.js)
Important
This tool loads URLs in headless Chromium. Run it only against pages you trust.
- Captures multiple breakpoints with Playwright.
- Generates collage and diff artifacts for PRs.
- Threshold-based pass/fail for regressions.
Example artifacts live in examples/.
Need help? Start with docs/troubleshooting.md.
Baselines live in baseline/ by default. Update with --update-baseline.
npx breakpoint-collage-diff --url https://example.com- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Capture collages
run: npx breakpoint-collage-diff --url https://example.com --max-diff-pct 0.01breakpoint-collage-diff --urls urls.txt --breakpoints 375,768,1280- Node.js: 20 (CI on ubuntu-latest).
- OS: Linux in CI; macOS/Windows unverified.
- External deps: Playwright browsers (
npx playwright install).
Guarantees
- Pixel diff computed via pixelmatch with explicit thresholds.
- Baselines stored locally in your repo.
Non-Goals
- Not a hosted visual regression service.
- Pixel-perfect parity across OS/font stacks is not guaranteed.
More: docs/README.md
See examples/README.md for inputs and expected outputs.
Open a PR to add your org.
See CONTRIBUTING.md.
MIT
