Schrune is a small hardware description language for building schematics, PCB projects, and reusable part libraries for KiCad.
npm install schruneThis package installs the schrune command.
schrune build path/to/design.schrune
schrune add C29823schrune build example3/example3.schruneBuild mode compiles a .schrune file, resolves parts, and writes KiCad output
next to the source file:
KiCad/<name>.kicad_proKiCad/<name>.kicad_schKiCad/<name>.kicad_pcb<name>.BOM.csv
Useful flags:
--keep-jswrites the intermediate Step 1 JavaScript files--no-parts-lockskips the autogenerated parts lock file
schrune add C29823add imports an LCSC part into the local parts/ tree. It requires the Python
easyeda2kicad package to be available in a usable interpreter.
If you need to install that dependency into the current Python environment:
npm run setup:easyeda2kicadIf your system needs a specific interpreter, set EASYEDA2KICAD_PYTHON before
running the setup script.
See docs/syntax.md for the language reference and docs/cli.md for the CLI
details.