CONTENT CREATION

Pixel-diff preview deploys and comment stale screenshots on the PR

When a Vercel preview deployment finishes, recapture each documented page against the preview and post a PR comment listing which screenshots differ beyond a pixel threshold.

CategoryContent Creation
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel preview deployment succeededVercelVercel
  • ActionMap manifest pages onto the preview URL
  • ActionCapture each page on the previewBrowserbase
  • LogicPixel-diff vs baselines; keep drifts over threshold
  • OutputComment stale screenshots on the PRGitHubGitHub

What it does

After a Vercel preview deploy is ready, it screenshots every documented page on the preview URL, compares each against the committed baseline image, and comments on the pull request with the exact list of screenshots that have drifted.

When to use it

You want reviewers to know — before merge — that a change altered a screen the docs depend on, without regenerating anything automatically. A surgical heads-up beats a noisy auto-commit.

How it works

  1. 1Vercel's deployment-succeeded webhook fires with the preview URL and PR number.
  2. 2The flow loads the screenshot manifest and rewrites each capture path onto the preview domain.
  3. 3Browserbase captures every page at the documented viewport.
  4. 4A pixel-diff step compares each capture to its baseline and computes a difference ratio.
  5. 5A logic gate keeps only captures above the configured threshold.
  6. 6If any drifted, it posts a GitHub PR comment naming each stale screenshot and its diff percentage.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect BrowserbaseHeadless browsers, sessions, replays.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.