Visual PCB Diff
The typecad diff command lets you visually compare two KiCAD PCB files with an interactive HTML report showing layer-by-layer differences, netlist changes, and BOM differences.
Basic Usage
Compare two PCB files:
typecad diff build/board_v1.kicad_pcb build/board_v2.kicad_pcbThis generates an HTML report and opens it in your browser. The report shows each PCB layer with changes highlighted in color.
Git Revision Comparison
Compare against a previous git commit:
# Compare last commit vs current file
typecad diff HEAD~1 ./build/board.kicad_pcb
# Compare two specific commits
typecad diff v1.0.0 HEAD -- board.kicad_pcbThis is useful for code reviews — see exactly what changed on the PCB between revisions.
Full Comparison
By default, only changed layers are included. Use --full to include all layers:
typecad diff --full board_v1.kicad_pcb board_v2.kicad_pcbWhat You’ll See
The report includes:
- Visual layer diff: Each copper, mask, silkscreen, and courtyard layer with changes highlighted
- Netlist comparison: Added, removed, and modified nets
- BOM comparison: Added, removed, and changed components
- Interactive viewer: Side-by-side, overlay, onion skin, swipe, and diff-only modes
In a CI/CD Pipeline
Add diff to your CI to automatically generate visual reports:
# Generate diff report without opening it
typecad diff HEAD~1 build/board.kicad_pcb --output diff-report.html