HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mapbox
pixelmatch
JavaScript2019–2025
mapbox / pixelmatch

pixelmatch

The smallest, simplest and fastest JavaScript pixel-level image comparison library

6Distinct people
6Mentions
0Explicit recommenders
7KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

The smallest, simplest and fastest JavaScript pixel-level image comparison library

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 12:45:45 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year6 dated mentions

Observed mentions: 2019-09-30 21:30:16 UTC to 2025-02-07 09:51:08 UTC.

0122019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC211
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

What Hacker News says

6 sources
Good point on offloading it as for the amount of work that's required in setting up a wrapper for something like Puppeteer, Playwright etc that also works with a probably quite specific setup, I've found the best way to get a quality image consistently is to just subscribe to one of the many SASS' out there that already do this well. Some of the comments above suggest some decent screenshot-as-a-service products. Really depends on how valuable your time is over your (or your companies) money. I prefer going for the quality (and more $) solution rather than the solution that boasts cheap prices, as I tend to avoid headaches of unreliable services. Sam Vines Boots theory and all that. For image comparison I've always found using pixelmatch by Mapbox works well for PNG's https://github.com/mapbox/pixelmatch
In Show HN: An API that takes a URL and returns a file with browser screenshots
You could absolutely get this working with GitHub Actions with a bit of creativity. I've been playing around with my own image-diff tool for this kind of thing, but it's not yet in a decent state: https://github.com/simonw/image-diff - there are other, better options out there such as https://github.com/mapbox/pixelmatch Needle is an older system that did this using Selenium - updating that to work with Playwright (or Playwight via shot-scraper) would be an interesting project: https://github.com/python-needle/needle
In Show HN: Instantly create a GitHub repository to take screenshots of a web page
Thank you! I'd also like to list some of the building blocks of GL JS that remain open source and are heavily used in other open source projects: - GeoJSON-VT (fast GeoJSON processing) https://github.com/mapbox/geojson-vt - Earcut (triangulating polygons) https://github.com/mapbox/earcut - Supercluster (point clustering) https://github.com/mapbox/supercluster - vt-pbf (converting GeoJSON tiles to VT) https://github.com/mapbox/vt-pbf - vector-tile (decoding vector tiles) https://github.com/mapbox/vector-tile-js - pbf (fast reading/writing of protobuf) https://github.com/mapbox/pbf - TinySDF (generating SDF from local CJK fonts) https://github.com/mapbox/tiny-sdf - Potpack (generating sprite layouts) https://github.com/mapbox/potpack - grid-index (spatial index for collisions/querying) https://github.com/mapbox/grid-index - Pixelmatch (imag
Read the rest
e comparison in render tests) https://github.com/mapbox/pixelmatch - Polylabel (fitting labels into polygons) https://github.com/mapbox/polylabel
In Mapbox-gl-js is no longer under the 3-Clause BSD license
Congrats on what you’ve made! What sort of noise are you running in to? (Curious) In an old project we actually did something a bit more based on visual changes. Basically detected visual diffs and got coordinates of offsets to the change. We then found the smallest html container that encompassed the diff and highlighted it. Using visual diff you can fuzz things a bit to handle artifact and small movements. A good lib we have some miles on https://github.com/mapbox/pixelmatch And this write up on niffy is pretty good https://segment.com/blog/perceptual-diffing-with-niffy/
In Show HN: Using ML to detect key changes to 2020 Candidates' Websites

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.