# Snapvisor

Canonical: https://snapvisor.io/docs

> Snapvisor is a visual testing platform built on an open-source engine. Capture screenshots from your existing test suite, compare them with a baseline, and review changes on your pull requests.



Snapvisor is a visual regression testing platform built on a proven open-source visual-diff engine. It captures screenshots from the test suite you already run — Playwright, Cypress, Puppeteer, Storybook, or any tool that writes image files — compares them against an approved baseline, and posts the result as a status check on your pull request.

## Why visual testing [#why-visual-testing]

Unit tests verify logic, not pixels. Visual regressions slip through green suites all the time:

* **Silent layout shifts** — a CSS tweak two components away moves your checkout button below the fold.
* **Broken typography** — a font fails to load and your headline wraps into the navbar.
* **Responsive regressions** — perfect at 1440px, broken at 375px.

Snapvisor surfaces these as reviewable screenshot diffs instead of letting them ship.

## Quickstart [#quickstart]

Snapvisor uses the open-source `@snapvisor` SDKs (drop-in forks of the `@argos-ci` SDKs) to capture screenshots and upload them for comparison. Follow these steps to create your first build.

### 1. Create a project and grab your token [#1-create-a-project-and-grab-your-token]

Sign in to [the Snapvisor app](https://app.snapvisor.io), create a project, and copy its `ARGOS_TOKEN` from the project settings. This token authenticates uploads for that one project.

```bash
export ARGOS_TOKEN="<your project token>"
```

<Callout type="warn">
  Keep the token secret — store it as a CI secret, never commit it. See [Access tokens](/tokens) for the difference between project tokens and personal access tokens.
</Callout>

### 2. Install an SDK [#2-install-an-sdk]

Install the CLI, plus the adapter for your test runner. Snapvisor has official SDKs for Playwright, Cypress, Puppeteer, Storybook, and a framework-agnostic core.

```bash
npm install --save-dev @snapvisor/cli
npm install --save-dev @snapvisor/playwright
```

### 3. Capture and upload in CI [#3-capture-and-upload-in-ci]

Run your tests so they write screenshots to a folder, then upload that folder. On a pull request, Snapvisor diffs the upload against the branch baseline and posts a status check with a link to review.

```bash
# after your tests have written screenshots to ./screenshots
npx @snapvisor/cli upload ./screenshots
```

<Callout>
  Snapvisor selects an eligible baseline using your base branch and Git history. Approved builds can become the reference for later comparisons.
</Callout>

## How it works [#how-it-works]

1. **Capture** — your CI uploads screenshots from the Storybook stories, Playwright, or Cypress specs you already run.
2. **Diff** — each screenshot is compared against an eligible baseline with a perceptual engine that reduces anti-aliasing and rendering noise.
3. **Review** — changes land as a status check on your pull request. Approve the intended ones, reject the regressions. Approved builds become eligible baselines for later comparisons.

## Next steps [#next-steps]

<Cards>
  <Card title="Watch your website" href="/watch-your-website" description="No code: name your public pages, Snapvisor photographs them and shows what moved." />

  <Card title="Getting started" href="/getting-started" description="Create a project, install an SDK, and upload your first build." />

  <Card title="Baseline builds" href="/baseline-build" description="How the reference build and base branch are resolved." />

  <Card title="Review workflow" href="/review-workflow" description="Baselines, approvals, monitoring mode, flaky-change handling, and summary checks." />

  <Card title="CI integration" href="/ci-integration" description="GitHub and GitLab status checks, tokenless auth, and parallel testing." />

  <Card title="SDKs" href="/sdks" description="Official JavaScript packages and a Python SDK and CLI." />

  <Card title="MCP server" href="/agents/mcp-server" description="Let Claude Code, Cursor, or any MCP client read diffs and approve changes." />

  <Card title="Access tokens" href="/tokens" description="Project tokens for CI, personal access tokens for the API and MCP." />

  <Card title="API reference" href="/api-reference" description="A versioned REST API described by an OpenAPI specification." />

  <Card title="Support" href="/support" description="Reach the team if you get stuck." />
</Cards>

## Guides [#guides]

**Set up your test runner.** Step-by-step pages with the CI step: [Playwright](https://snapvisor.io/playwright), [Storybook](https://snapvisor.io/storybook), [Cypress](https://snapvisor.io/cypress), [Puppeteer](https://snapvisor.io/puppeteer) and [GitLab CI](https://snapvisor.io/gitlab-ci). The background reading is [how visual regression testing works](https://snapvisor.io/visual-regression-testing), including [in GitHub pull requests](https://snapvisor.io/visual-regression-testing-github) and [self-hosted](https://snapvisor.io/self-hosted-visual-regression-testing).

**Move from another tool.** One guide per tool, each saying what carries over and what does not:

* [Percy](/migrate-from-percy), [Chromatic](/migrate-from-chromatic), [Applitools](/migrate-from-applitools) and [Happo](/migrate-from-happo)
* [Lost Pixel](/migrate-from-lost-pixel), [BackstopJS](/migrate-from-backstopjs), [Loki](/migrate-from-loki) and [reg-suit](/migrate-from-reg-suit)
* [Playwright snapshots](/migrate-from-playwright-snapshots), [Cypress snapshots](/migrate-from-cypress-snapshots), [jest-image-snapshot](/migrate-from-jest-image-snapshot) and [Visual Regression Tracker](/migrate-from-visual-regression-tracker)

**Wire it into CI.** [GitHub Actions](/github-actions), [previews and deployments](/run-on-preview-deployment), [tokenless](/learn/integrations/github-tokenless-authentication) and [OIDC](/learn/integrations/github-oidc-authentication) authentication, and [troubleshooting](/troubleshooting) when a build compares against the wrong baseline.

**Run it for a team.** [Members and roles](/team-members-and-roles), [SAML SSO](/saml-sso), [spend management](/spend-management), [pricing](/pricing), and [self-hosting](/self-hosting).

**Use it from an agent.** The [MCP server](/agents/mcp-server), its [overview on snapvisor.io](https://snapvisor.io/mcp), and the [agent setup pages](https://snapvisor.io/agent-setup) for Claude Code, Codex, Cursor and OpenCode. See also [how Snapvisor compares](https://snapvisor.io/compare) with other tools.

## At a glance [#at-a-glance]

* Perceptual pixel diffing with anti-aliasing detection and adjustable thresholds
* Approve/reject review workflow with per-branch baselines
* GitHub and GitLab pull-request status checks
* Parallel testing: shard large suites across machines and review them as one build
* Slack and email notifications
* A remote MCP server so AI agents can review your UI
* Built on an inspectable open-source core; contact support for self-hosting access

