On This Page (3)
Overview & Architecture
kicad-monkey and its companion CLI kicad-cruncher (kcr / native Rust k3) provide a self-contained, zero-GUI toolchain for modern KiCad hardware projects (KiCad >= 7, actively calibrated on KiCad 10.0.8 and documented with explicit KiCad 11 boundaries).
Supported KiCad Versions:
kicad-monkeyandkicad-crunchertarget KiCad >= 7 (.kicad_pcb,.kicad_sch,.kicad_sym,.kicad_mod,.kicad_pro, and.kicad_wksS-expression schemas from KiCad 7, 8, 9, and 10). Legacy KiCad 5 and KiCad 6 file formats are outside the supported boundary. See Known Limitations & KiCad 11 Compatibility.
Package Boundaries
| Package | Role | Key Dependencies |
|---|---|---|
kicad-monkey (Python) | Core S-expression parser/writer, OOP PCB/Schematic/Symbol/Footprint/Project models, analytic KiCadFabView, all 17 virtual fab layers, Gerber/Drill/IPC-2581B/SVG/Micro-STEP writers, vdoc baking, Plotter IR, TypeSpec msgspec contracts | Pure Python + shapely, msgspec, freetype-py, numpy |
kicad-cruncher (kcr, Python CLI) | Full 17-command CLI for manufacturing, visualization, formatted .xlsx BOM/PnP/JLCPCB, Toon, pcb-svg, fab, vdoc, pcb-layer-step, pcb embed-models, project-lib, health, megamaid, kicad prefs, and design-review bundles | kicad-monkey, wn-geometer |
| KiCad Monkey Rust Workspace | Six #![forbid(unsafe_code)] pure-Rust crates (kicad-monkey-core, kicad-monkey-fab, kicad-monkey-svg, kicad-monkey-contracts, cad-text-realization, kicad-monkey-codegen) plus the standalone native Rust k3 CLI (kicad-cruncher-cli) | Pure Rust (Edition 2024, MSRV 1.95, zero KiCad/OCCT runtime) |
Where to Start
- Automating KiCad in Python? Start with Installation Guide, then jump into KiCadPcb & Board Model, Fab &
KiCadFabView, or the runnable Examples Gallery. - Running headless CI manufacturing or visual reviews? Jump straight to CLI Quick Start (
kcr) or the zero-Python Native Rust CLI (k3) Parity Guide. - Embedding pure Rust crates or validating wire schemas? Explore Rust Workspace Overview, Practical Rust Cookbook, and Why TypeSpec & Contract Architecture.
Documentation Map
- Getting Started
- Installation Guide — Python (
uv/pip),kcrCLI, Geometer 3D engine, and Rust toolchain setup - KiCad Stroke & Font Engine — built-in KiCad Newstroke vector font, TrueType outlines, and webfont preview
- Known Limitations & KiCad 11 Compatibility — supported KiCad >= 7 baseline, 3-tier KiCad 11 boundaries, and 3D STEP vs. WRL rules
- Installation Guide — Python (
- PCB & Fab Domain
- KiCadPcb & Board Model — lossless S-expression PCB/footprint models, authoring, and native KiCad 10.0.8 3D STEP embedding
- Fab &
KiCadFabView— unified whole-nanometre board view for Gerber X2/X1, Excellon drill, IPC-2581B, SVG, PnP, BOM, and Micro-STEP - Virtual Fab Layers (All 17 Layers) — cutouts, Pin 1/polarity, diodes, passives, 3D HLR outlines, fitted designators, pad labels, and
vdocbaking
- Schematic & Project Domain
- Schematics & Symbol Libraries — multi-sheet
.kicad_schschematics,.kicad_symlibraries, inheritance, and lossless edits - Plotter IR &
kicad-cliOracle SVG — deterministic nanometre Plotter IR display lists, themes, andkicad-cliSVG parity - Projects, Variants & Design —
.kicad_protext variables, net classes, assembly variants, hierarchical netlists, andKiCadDesign
- Schematics & Symbol Libraries — multi-sheet
- CLI (
kcr& Native Rustk3)- CLI Quick Start (
kcr) — entry points, JSONC config discovery table, write policy, and turnkey workflows - Fabrication,
vdoc& Micro-STEP —kcr fab,kcr vdoc,kcr bom/pnp/jlc, andkcr pcb-layer-step - PCB SVG, Toon & Design Review — declarative
kcr pcb-svg, shadedkcr toonthemes, and agent-firstkcr drreview bundles - Native Rust CLI (
k3) Parity Guide — command-by-command matrix and behavioral differences between Pythonkcrand nativek3 - Full Command Reference — all 17 core
kcrcommands with live options, annotated JSONC configs, and conflict rules
- CLI Quick Start (
- Rust Workspace
- Rust Workspace Overview —
#![forbid(unsafe_code)]workspace architecture, dependency DAG, and Cargo build commands - Crate-by-Crate Reference — responsibilities, public entry points, and dependencies for all 6 workspace crates
- Fabrication & Virtual Layers (
kicad-monkey-fab) —FabViewData,KiCadFab, all 17 virtual layers,vdocbaking, and Python parity notes - Practical Rust Cookbook — copy-pasteable recipes for
PcbView::parse, losslessPatchedits, fab exports, and direct SVG rendering
- Rust Workspace Overview —
- Format Contracts & TypeSpec
- Why TypeSpec & Contract Architecture — wire-shape vs. adapter boundary, the 4 contract tiers, and
<letter><digit>revisioning - Multi-Language Codegen Pipeline — TypeSpec → Draft 2020-12 JSON Schema → Python (
msgspec), TypeScript, and Rust (typify) - Complete Contract & Schema Catalog — all 30 TypeSpec core schemas, 12 FabView/
geom.a0schemas, and Cruncher CLI schemas - Fabrication & Enriched SVG Wire Formats — Gerber X2, Excellon, IPC-2581B, Micro-STEP, and enriched SVG
data-*contracts
- Why TypeSpec & Contract Architecture — wire-shape vs. adapter boundary, the 4 contract tiers, and
- Examples & Releases
- Examples Gallery — 18 runnable Python showcase scripts with live Paper & Dark SVG previews
- Release Notes Archive — versioned changelogs, breaking changes, and migration guides