jest-image-snapshot vs Loki: open-source visual regression tools compared
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
Summary
jest-image-snapshot: Jest matcher that compares PNG screenshots against stored baseline images for visual regression tests.
Loki: Visual regression testing tool for Storybook covering Chrome, iOS simulator and Android emulator targets.
Both are listed under Visual regression. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation (1 of 12 fact cells here); that does not mean the feature is absent.
Side by side
| Fact | jest-image-snapshot | Loki |
|---|---|---|
| Stars | 3,9151 | 1,9091 |
| Forks | 2101 | 1831 |
| Contributors | 801 | 651 |
| Last release | 2026-03-091 | 2024-08-271 |
| Last commit | 2026-05-151 | 2024-10-121 |
| Commits in 90 days | 01 | 01 |
| License | Apache-2.01 | MIT1 |
| Primary language | JavaScript1 | JavaScript1 |
| Status | slow1 | inactive1 |
| Browsers | not documentednot found in the project's documentation as of | Chrome (in Docker, in AWS Lambda, or local app); iOS simulator; Android emulator source: README |
| Framework integrations | Jest (matcher; stored images update with jest --updateSnapshot) source: README | Storybook (React and React Native) source: Docs: Getting started |
| Test authoring format | Code (Jest matcher toMatchImageSnapshot on PNG image buffers) source: README | Existing Storybook stories, captured and compared by the loki CLI source: Docs: Getting started |
| CI integration | Example Jest reporter that uploads failed diff images from a CI server to AWS S3 source: README | CI guide: static Storybook build with the --requireReference flag source: Docs: Continuous Integration |
| Report formats | Diff images; optional base64 diff string in console output source: README | Screenshot output and image diff folders (.loki/current, .loki/difference) source: Docs: Command line arguments |
| Install method | npm (npm i --save-dev jest-image-snapshot) source: README | yarn (yarn add loki --dev, then yarn loki init) source: README |
1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.
When each fits
Written from each project's documented scope, not from preference. Neither tool is ranked.
jest-image-snapshot
Fits projects that add visual regression checks to Jest test suites; its README describes a Jest matcher that performs image comparisons using pixelmatch. source: README
Loki
Fits projects that run visual regression tests on Storybook stories; its README describes targets including Chrome in Docker, iOS simulator and Android emulator. source: README
More on these tools
Sources
- GitHub REST API: repository, read
- GitHub REST API: repository, read
- GitHub REST API: contributors, read
- GitHub REST API: contributors, read
- GitHub REST API: latest release, read
- GitHub REST API: latest release, read
- GitHub REST API: commits, read
- GitHub REST API: commits, read
- README, read
- README, read
- Docs: Getting started, read
- Docs: Continuous Integration, read
- Docs: Command line arguments, read
Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.