mapbox/pixelmatch
The smallest, simplest and fastest JavaScript pixel-level image comparison library observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 91
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 2
- age_days: 3977
- days_rel: 126
- days_push: 57
- n_releases_24m: 4
Adoption not part of the score
6931 stars · 323 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A tiny, dependency-free JavaScript library for pixel-level image comparison, originally built for comparing screenshots in tests. It works on raw typed arrays in both Node and browsers, with anti-aliased pixel detection and perceptual (OKLab) color difference metrics.
Use cases
- compare screenshots in automated tests
- generate visual diff images of two images
- detect pixel differences between PNG images in Node
- visual regression testing for web UIs
- compare image data in the browser
- ignore anti-aliased pixels when diffing images
When to choose
- you need a fast, zero-dependency pixel diff that works on raw image data
- you want perceptually accurate comparison that handles anti-aliasing
- you need it to run in both Node and browsers
- you want a diff image highlighting changed pixels
When to avoid
- you need to decode/encode image files yourself (it only compares raw pixel arrays)
- you need image resizing or dimension mismatch handling
- you need a full visual regression framework with reporting and baselines
Facets
library · maturity stable
image-processing testing image-processing testing developer-tools browser pixel-diff visual-regression screenshot-testing zero-dependency nodejs javascript
2 sources
- readme: https://github.com/mapbox/pixelmatch · fetched 2026-08-28 · d9592c8fa6d2
- registry_npm: https://registry.npmjs.org/pixelmatch · fetched 2026-08-29 · 6ea1232a6db2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mapbox/pixelmatch | main | 89 |
For agents
markdown · JSON · MCP: product_card(name="mapbox/pixelmatch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem