Skip to content
hw.dev
hw.dev/signal/kanga-kicad-byte-exact-json-4533-vectors-2026
SignalKanga ECAD

A KiCad Library Reproduces 384 of 390 Project Files Byte for Byte

Kanga ECAD treats byte-exact KiCad files as a testable compatibility target instead of accepting merely parseable output.

Thesis connection

Board automation can make safer edits when its file writer is checked against the exact bytes KiCad produces.

#pcb#eda#testing#tools
Read Original

Kanga is building a KiCad file library with a stricter target than "KiCad can open it." Its new project-file writer copies KiCad's key ordering, escaping, indentation, and number formatting, checked against 4,533 number-format vectors from the same library KiCad uses.

That work reproduces 384 of KiCad's 390 project files byte for byte. The same change adds readers and writers for symbol and footprint library tables, coordinates, identifiers, colors, text effects, and other shared types. Corpus tests compare the output with KiCad's own source fixtures and preserve older format migrations instead of flattening every file into a guessed current form.

Byte identity sounds cosmetic until an automated board edit lands in review. Stable serialization keeps the diff about the moved part or changed rule, rather than reordered keys and reformatted numbers. Tool builders working on KiCad agents should measure exact round trips over a real project corpus; "opens successfully" is too weak for unattended edits.