Skip to content

Repository files navigation

Comparador

Instant visual regression testing
Chrome Extension · Freeware · Serverless · Privacy-first

Install from Chrome Web Store
Chrome Web Store


What is Comparador?

Comparador is a Chrome Extension for on-demand visual regression testing — compare web pages across environments, track changes over time, debug deployment issues.

Install → Capture → Compare.
No pipelines. No accounts. No external servers.

Why Comparador?

Traditional VRT ToolsComparador
🔧 Require CI/CD integration✅ Works standalone
📁 Rigid baseline workflow✅ Baselines + ad-hoc comparison
☁️ SaaS with accounts✅ Runs entirely in browser
⏳ Complex setup✅ Install and go

Use cases:

  • Did deployment break anything?
  • Is staging identical to production?
  • What exactly changed — layout, HTML, headers, console logs, performance?
  • Track visual changes over time

Key Features

FeatureDescription
📸 Visual DiffFull-page screenshots with pixel-level comparison, mismatch %, multiple view modes
📄 HTML DiffSide-by-side source comparison with syntax highlighting
📋 Headers DiffCompare response headers (cache, CDN, security)
🪵 Logs DiffCompare console logs and browser messages — spot new errors, warnings, count changes
📊 Metrics DiffCompare performance metrics (TTFB, DOM load, resources) with threshold-based verdicts
BaselinesAccept/reject workflow, auto + manual baseline pinning, compare any two captures
🔄 Auto CompareAutomatic comparison against baselines after capture, configurable thresholds, auto-accept
🚀 Batch CaptureCapture projects or groups of URLs, compare across environments
PopupQuick environment switching + fast access to frequently tested pages
📖 Built-in HelpGuides on baselines, scripting, keyboard shortcuts, and more — right inside the extension

🔧 Scriptable & Extensible

GUI provides sensible defaults. Power users can script everything:

ScriptPurpose
Browser ScriptAuth headers, cookies, blocked URLs, user-agent
Page ScriptHide cookie banners, wait for animations
Compare ScriptNormalize HTML/headers/logs/metrics before comparison
Navigation ScriptCustom environment switcher in popup
Setup ScriptAuto-generate URLs (envs × paths matrix, sitemap, API)

🤝 Team Collaboration

Share project configurations and test data with your team via import/export:

  • Export a project (URLs, settings, scripts) as a portable JSON file
  • Import on another machine — same setup, zero manual work
  • Backup & restore full project data including captures and screenshots — compressed exports with large project support

No cloud account needed — share files however your team prefers (Slack, email, Git, shared drive).


Comparador vs Alternatives

FeatureComparadorPercy / ChromaticBackstopJSPlaywright VRT
Setup time🟢 Minutes🟡 Hours🟡 Hours🔴 Days
Infrastructure required🟢 Chrome only🔴 SaaS🟡 Node.js🟡 CI/CD
Account required🟢 No🔴 Yes🟢 No🟢 No
Works offline🟢 Yes🔴 No🟢 Yes🟢 Yes
Ad-hoc comparisons🟢 Any two captures🔴 Baseline only🔴 Baseline only🔴 Baseline only
Flexible baselines🟢 Capture + URL🟡 Build-level🟡 CLI update🟡 CLI update
Beyond screenshots🟢 HTML + headers + logs + metrics🔴 Screenshots only🔴 Screenshots only🔴 Screenshots only
Auth / cookies scripting🟢 Yes🟡 Config🟡 Config🟢 Yes
CI/CD integration🔴 No🟢 Yes🟢 Yes🟢 Yes
Team collaboration🟡 Import/export🟢 Cloud dashboard🟡 Git🟡 Git

When to use Comparador

Best for:

  • QA engineers doing manual exploratory testing
  • Developers debugging production issues
  • Quick "before/after" deployment checks
  • Comparing staging vs production
  • Teams without CI/CD pipeline access
  • Privacy-sensitive projects (data stays local)

Not ideal for:

  • Fully automated CI/CD visual regression
  • Large teams needing shared baselines
  • Hundreds of pages requiring scheduled runs

Complementary usage

Comparador works alongside CI/CD tools. Use it for:

  • Ad-hoc debugging when CI catches a diff
  • Testing environments not in your pipeline
  • Quick checks before committing
  • Investigating customer-reported visual issues

Screenshots

Organize URLsCapture Pages
DashboardCapture
Projects, groups, URLsBatch capture with progress
Review CapturesCompare: Side by Side
ReviewSide by Side
Accept or reject captures and attemptsDifferences highlighted in pink
Compare: Swipe ViewCompare: Accepted
SwipeAccepted
Drag the red line to reveal changesApproved baseline with visual diff
HTML DiffResponse Headers Diff
HTML DiffHeaders
Side-by-side source comparisonCompare cache, CDN, security headers
ScriptsSettings
ScriptsSettings
Browser, page, setup, navigationPer-project configuration
PopupHelp
PopupHelp
Quick capture & environment switchKeyboard shortcuts & documentation

Installation

Chrome Web Store (Recommended)

Install directly from the Chrome Web Store.

From Release (Manual)

  1. Download comparador-*.zip from Releases
  2. Extract the ZIP file
  3. Open chrome://extensions/
  4. Enable Developer mode (toggle in top-right)
  5. Click Load unpacked and select the extracted folder

Permissions

PermissionPurpose
activeTabAccess current tab to capture URL and content
tabsCreate/manage tabs for batch capture
debuggerChrome DevTools Protocol for full-page screenshots and HTML extraction
webRequestIntercept response headers for comparison
offscreenRun user-configured compare scripts in an isolated sandbox. Chrome's Content Security Policy prevents dynamic script evaluation in extension pages and service workers; the offscreen document provides a CSP-sandboxed iframe where compare scripts safely preprocess captured HTML and response headers before comparison. Only created when automatic comparison runs after a capture.
host_permissionsCapture pages from any website

Privacy: All data stored locally. Nothing sent to external servers. See PRIVACY_POLICY.md.


Mock Server

Local HTTPS mock server for testing Comparador.

cd mock
npm install
npm run setup # One-time: generate certs, add hosts, trust CA (requires sudo)
npm start

Environments:dev.acme.local, stage.acme.local, www.acme.local

Using with Comparador:

  1. Create a new project (e.g., "Acme")
  2. Uncomment environments and paths in Variables
  3. Go to Manage → select project → SetupGenerate PreviewApply Changes
  4. Capture pages and compare across environments

New projects come pre-configured for mock server — serves as a reference for real-world setup.


Authors


License