Use Case
🔍

Catch UI Bugs Before Your Users Do

Integrate automated visual regression testing into your CI/CD pipeline. Compare screenshots across deployments to detect unintended UI changes instantly.

CI/CD integration

Drop into GitHub Actions, GitLab CI, or any pipeline with a simple API call.

Full-page captures

Capture entire pages including below-the-fold content for comprehensive visual coverage.

Device emulation

Test across mobile, tablet, and desktop viewports in a single pipeline run.

Pixel-perfect comparison

Download screenshots as PNG for pixel-level diffing with your preferred comparison tool.

Code Example

// In your CI/CD pipeline
const baseline = await captureScreenshot(url, 'baseline');
const current = await captureScreenshot(url, 'current');

async function captureScreenshot(url, label) {
  const res = await fetch('https://example.com', {
    method: 'POST',
    headers: { 'x-api-key': process.env.SCREENSHOT_API_KEY, 'Content-Type': 'application/json' },
    body: JSON.stringify({ url, fullPage: true, format: 'png' })
  });
  return res.arrayBuffer();
}