Urgent.News

What's breaking now, across thousands of outlets.

Tech

Catching visual regressions between deploys with two API calls

I build Screenshot Happy, so take this with that in mind. This post is about a problem I kept running into on client sites: something looks fine in code review, ships on Friday, and nobody notices the broken hero section until Monday. The gap between "tests pass" and "it looks right" Unit and end-to-end tests tell you the logic works. They rarely tell you the page still looks right: a CSS change…

Catching visual regressions between deploys can be done with just two API calls, as demonstrated by the Screenshot Happy service. The first option involves taking a screenshot of the page from your CI job using a single request. This can be achieved by making a curl request to the screenshot API endpoint, specifying the URL of the page to capture and setting full_page=true to capture the entire scrollable page.

The output can be stored as a PNG, JPEG, or PDF file as a build artifact. The second option is to create a monitor that watches the page for visual changes between deploys. This is accomplished by making a POST request to the monitor API endpoint, providing the URL of the page to monitor, a webhook URL to send notifications to, the frequency in minutes for checks (minimum is 6 hours), and a pixel difference threshold.

If the percentage of changed pixels exceeds the threshold, a POST request is sent to the specified webhook with details of the monitor ID, URL, check time, detected change, and percentage difference. The service retries the delivery up to 3 times if the endpoint does not return a 2xx status code. The threshold for detecting visual changes is a flat percentage of changed pixels across the entire page, which may need to be adjusted for noisy pages with frequent updates like rotating ads or live timestamps.

The service runs checks on a schedule (every 6 hours on the free plan, hourly on paid plans) rather than in real-time after a deploy. Free tier includes 200 screenshots per month and 3 monitored pages, while paid plans offer additional features at €9 (Starter) and €29 (Growth) per month.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Wanted Rounded Text Selection for Years. Here's How I Finally Built It in Angular (With AI Help)

There is one incredibly small visual detail I've wanted to implement on my websites for years. Rounded text selection. Not rounded text backgrounds. Not predefined highlighted spans.

  • Rounded text selection desired for years, finally implemented in Angular with AI help
  • Challenge: CSS cannot apply border-radius to ::selection pseudo-element
  • Solution: Angular directive using SVG overlay, native Selection API, Range API, MutationObserver

PHP Framework Architecture in 2026: Laravel, Symfony, Slim, and a Lightweight Approach

PHP Framework Architecture in 2026: Laravel, Symfony, Slim, and a Lightweight Approach PHP has no shortage of frameworks. Laravel and Symfony dominate a large part of the modern PHP ecosystem.

  • Laravel and Symfony dominate modern PHP landscape
  • Slim offers smaller HTTP layer for minimal projects
  • DBM Framework allows developer-defined application architecture

SA’s ransomware problem is hiding a much bigger issue

Cartrack, RelyComply, ATNS. The recent cyber incidents mostly look like crime. That is where the question starts, not where it ends.

  • South Africa faces cyber security issue beyond criminal activity
  • Ransomware attacks on Cartrack and other organizations
  • Difficulty distinguishing strategic operations from cybercrime

📒LedgerFriend — From Everyday Transactions to Smarter Books.

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Describe the transaction. Review the entry. Understand your books.

  • LedgerFriend is an AI-powered bookkeeping assistant for Indian sole proprietors.
  • It interprets everyday language to suggest transaction details and generate organized books.
  • The prototype is for learning, not production accounting or tax advice.

More from Saturday 3 October →