Skip to content
15b4tPublic

About

Browser-based PCB editor for KiCad files: lossless Go parser, PixiJS/WebGL frontend, byte-exact round-trip of untouched content

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

coppertop

A browser-based PCB editor built around one idea: edit a KiCad board in the browser without ever rewriting the parts of the file you did not touch.

A Go backend parses .kicad_pcb and .kicad_sch files into a lossless syntax tree and streams a flat view model to a PixiJS/WebGL frontend. Edits are applied as coordinate patches to the tree and saved as new revisions, so untouched content is written back byte-for-byte. DRC, ERC and manufacturing export run through a sandboxed kicad-cli.

Project status: this began as a product attempt (an AI-first PCB tool) and is no longer pursued as one. It is published as a working codebase and a record of what turned out to be hard. Expect rough edges and no roadmap. See docs/status.md for what works, what does not, and the AI experiments.

What it does

  • Parse, edit and save KiCad PCB files with byte-exact round-tripping of untouched content.
  • Move, rotate and flip footprints; create and delete traces, vias, footprints, zones, graphics and text; undo and redo; revision history.
  • A schematic editor (symbols, wires, labels, netlist, ERC) with schematic-to-PCB sync.
  • DRC, ERC, Gerber/drill/pick-and-place/BOM export and EasyEDA import through kicad-cli.
  • An experimental AI assistant that proposes fixes for DRC errors and shows them as a reviewable diff. A proposal is only offered if real DRC on the result clears an error and adds none. Off by default.

Quick start

Requirements: Go 1.25, Node (version in frontend/.nvmrc) with Corepack, Docker.

cp backend/.env.example backend/.env
docker compose up -d postgres                     # database
docker pull kicad/kicad:9.0                       # for DRC, ERC and export
make deploy                                       # builds and runs backend (:8080) and frontend (:4173)

Open http://localhost:4173. The default dev API key and database credentials are for local use only.

To build binaries instead: make build (this machine) or make dist (archives for Linux and macOS; Windows users can run it under WSL or Docker). Prebuilt archives are on the Releases page. The server still needs Postgres, configured in .env.

Development

make verify          # backend build, vet, test, lint; frontend lint, typecheck, test, bench
make test-boards     # download a few open-source boards so board-dependent tests run instead of skipping
make fuzz            # parser fuzzing
make ai-eval         # AI evaluation against a real model and real DRC (costs money)

Most tests that use real boards skip themselves when backend/testdata/boards/ is empty. See docs/test-boards.md. Layout and conventions are in CONTRIBUTING.md.

Documentation

Contributing

Issues are welcome. Pull requests are not being accepted yet. See CONTRIBUTING.md.

License

MIT, see LICENSE. Bundled KiCad libraries keep their own license: see THIRD_PARTY_NOTICES.md.

About

Browser-based PCB editor for KiCad files: lossless Go parser, PixiJS/WebGL frontend, byte-exact round-trip of untouched content

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages