Introduction
Frontguard is an AI-powered visual regression testing tool for frontend teams. It renders every page in your app, compares it against approved baselines, and uses AI vision to classify each diff as a regression, an intentional change, or a content update — then explains why and suggests a verified fix.
The goal is simple: a red run should mean something. Pixel-diff tools fire on non-bugs so often that teams stop trusting them — so Frontguard's job is to tell a real regression apart from noise, not just count changed pixels.
It's CLI-first, MIT licensed, and fully self-hostable. No per-screenshot pricing, no dashboard lock-in. Bring your own AI key.
Pixel diff + DOM and computed-style diff across every viewport and browser. Anti-flake multi-render kills false positives.
AI vision classifies each diff, maps it to the exact code change, and explains the root cause in plain language.
The pipeline
Frontguard runs a six-stage pipeline. Each stage is independent with error boundaries — one page failing doesn't kill the run. A fast pixel gate means ~90% of pages never reach the AI.