Status: v0.1 — usable. Diffs real Gerber + Excellon fab packs across the CLI, a native desktop viewer, and a web viewer, with prebuilt binaries and a distroless container. The Python predecessor is frozen at Cimos/Gerber-Diff-Tool (v0.11).
etchy is a fast, trustworthy, open-source PCB visual + geometric diff tool. Point it at two revisions of a board's fab output and it shows — and measures — exactly what changed.
etchy old/ new/ # terminal summary; exit 0 = no diff, 1 = diff, 2 = error
etchy old/ new/ --html diff.html # a single self-contained HTML report
etchy old/ new/ --svg out/ # one SVG overlay per changed layer
etchy old/ new/ --format json # machine-readable magnitudes (schema v1)Try it right now — the repo ships two revisions of a real board (the open Mad_RP2040, Gerbers + Excellon drills):
etchy crates/etchy-gui/assets/demo/old crates/etchy-gui/assets/demo/new --html diff.html
# 10 of 13 layers changed; +213.29638 / -448.70036 mm² (967+/863- regions)
# Open diff.html to see every overlayDiff two committed revisions straight from git, no checkout:
etchy v0.11 HEAD fab/ # <refA> <refB> [subdir]Gate CI on the magnitude and location of change:
# exit 1 only if copper changed by more than 0.5 mm²; silkscreen churn is ignored
etchy old/ new/ --gate-layers copper --fail-on-area 0.5A change in a drill layer's hole or slot counts per tool size is a diff too (exit 1), even when the drilled geometry is identical — say a hole drilled twice at one spot. It fails any gate that includes that drill layer, whatever the thresholds.
Waivers accept a known change, such as a bumped date code, so the gate still passes. A waiver is a box in board mm on one layer, with a required reason:
# waivers.toml — pass with: etchy old/ new/ --waivers waivers.toml
[[waiver]]
layer = "top-silk"
box = [10.0, 5.0, 30.0, 9.0] # x_min, y_min, x_max, y_max in mm, the board's own coordinates
reason = "date code bumped each revision"A changed region is waived only if it lies entirely inside a box; a partial
overlap stays a failure and is named as one. The gates and the exit code count only
unwaived changes, but every output still lists the waived regions with their
count, area and reason. A waiver that matches nothing is reported as stale;
--fail-on-stale-waivers makes that exit 1. Waivers cover changed geometry
only; a drill hole-count change still fails the gate.
Every PR that touches Gerbers gets a layer-by-layer diff comment — five lines
add the Action to a repo (full recipe in
docs/ci-recipes/etchy-pr-diff.yml):
- uses: Cimos/etchy@v0.3.0
with:
old: fab/rev-a
new: fab/rev-b
comment: trueThe job grants pull-requests: write; etchy supplies its own token and posts a
sticky per-layer table (added / removed mm² and region counts).
History over a git range — etchy log walks the commits that touch the fab
pack and prints, per commit, which layers changed and by how much (no checkout;
--format md|json too; exit 1 if any commit changed a layer):
etchy log v0.1.0..HEAD fab/ # newest first, each commit vs its first parentPDF diff — schematic PDFs get a page-by-page pixel diff (builds with
--features pdf; release binaries ship it on):
etchy old.pdf new.pdf --out overlays/ # per-page table + one overlay PNG per page
etchy old.pdf new.pdf --dpi 300 # crisper rasterization (default 150 DPI)-
From source —
cargo install --path crates/etchy-cli(needs a Rust toolchain). -
Container (headless CLI, distroless, ~11 MB):
docker pull ghcr.io/cimos/etchy:v0.3.0 docker run --rm -v "$PWD:/work" ghcr.io/cimos/etchy:v0.3.0 --format summary /work/old /work/newOr build it yourself with
docker build -t etchy .. -
Prebuilt binaries —
etchy-cli-…archives for Linux (x86_64 and ARM64, from v0.3.0), macOS (Apple Silicon and Intel) and Windows, plus aSHA256SUMSfile, are on the Releases page. From v0.3.0, releases also have signed build provenance for every asset and the container image, plus CycloneDX SBOMs (etchy-{cli,viewer}-<tag>.cdx.json).SHA256SUMSonly shows a download is intact; to check it came from etchy's release workflow, rungh attestation verify <file> --repo Cimos/etchy(oci://ghcr.io/cimos/etchy:<tag>for the image).
The desktop viewer is a separate binary — etchy-gui <old> <new> — with a
changed-first layer list, Overlay / Old / New / Split / Swipe modes, pan /
zoom / fit, a settings panel, an Open-A / Open-B loader (folder, .zip, or
drag-and-drop), and a Help menu. etchy-gui <dir|zip> opens one Gerber set on
its own, with no diff, for a first look at fresh fab output; opening or dropping
an old revision onto it turns it into a normal diff. A web viewer build also exists (see deploy/).
Install the viewer from the Releases page: etchy-viewer-…
as a Windows .msi, a macOS .dmg (Apple Silicon), or a Linux .AppImage /
.deb. The installers also put the etchy command-line tool on your PATH
(not the AppImage). On macOS, brew install --cask cimos/etchy/etchy also works. The
installers are not code-signed yet, so Windows SmartScreen and macOS Gatekeeper
ask once before the first run.
- Visual + geometric diff of Gerber (RS-274X/X2), Excellon drill, and
pick-and-place (centroid) revisions: a per-layer polygon boolean diff
(
added = B − A,removed = A − B) yields a resolution-independent SVG overlay, a self-contained HTML report, and magnitudes (changed area mm², region count) — all from one computation. Moved / rotated / added / removed components diff as placement markers. - CLI / CI-first: exit codes, per-layer thresholds, git-refs, JSON (schema v1), a GitHub Action + Markdown PR summary; the egui viewer is the second surface.
- Same-board revisions only — fails loud on mismatched boards, never a garbage
diff. Trustworthy: a golden corpus plus property and fuzz tests, and no
silent misses — see
docs/TRUST.md. - Ships as small static binaries and a distroless container.
Non-goals: net/connectivity diff, BOM/component diff, DRC, IPC-2581 / ODB++ ingestion, and native schematic files. (Pick-and-place is diffed as placement geometry — where parts sit — not a BOM/component list.)
Planned: reading KiCad .kicad_pcb boards directly (0.4.0), then Altium
.PcbDoc, with a list of changed objects alongside the layer diff
(#122, spec).
docs/TRUST.md— the trust model + limitations: what etchy guarantees, and what it deliberately doesn't do.docs/ci-recipes/etchy-pr-diff.yml— drop-in GitHub Action recipe for gating a PR on a board diff.docs/ci-recipes/gitlab.md— the same for GitLab CI: a.gitlab-ci.ymljob that gates a merge request and posts the summary as an MR note.docs/ROADMAP.md— phased plan to 1.0.docs/DEVELOPER_GUIDE.md— architecture + the verified Rust crate stack.docs/PRODUCT_DISCOVERY.md— the requirements interview behind every decision.deploy/SETUP.md— stand up the hosted web demo + feedback widget on a new machine.
| Crate | Role |
|---|---|
etchy-core |
the engine: parse → resolve → polygonize → diff → measure → render |
etchy-cli |
binary etchy — the primary CLI/CI surface |
etchy-gui |
native egui viewer (separate binary; never compiled in headless builds) |
etchy-pdf |
schematic-PDF pixel diff (feature-gated; keeps the pure-Rust hayro PDF stack out of the core) |
Dual-licensed under either of MIT or Apache-2.0 at your option.
