On This Page (10)
- Highlights
- Breaking Changes & Migration
- CLI, Config, SVG DOM & Rust API Removals
- Netlist, Bounds & Visual Behavior Shifts
- New Features
- Analytic Fabrication (KiCadFabView, kcr fab, kcr vdoc)
- External 3D STEP Resolution & Native Model Embedding (#90)
- Rendering, Caching & Performance
- Bug Fixes
- Documentation & Guides
kicad-monkey & kicad-cruncher 2026.11.30 Release Notes
Package version: 2026.11.30
Packages: kicad-monkey, kicad-cruncher
This major release introduces the analytic KiCadFabView and pure-Rust kicad-monkey-fab fabrication engines with all 17 Virtual Fab Layers, turnkey kcr fab and kcr vdoc commands, pure Micro-STEP export, and native KiCad 10.0.8 3D STEP embedding (kcr pcb embed-models, #90). It also unifies the standalone native Rust CLI as k3, folds Toon into pcb-svg with a shared project-local .kcr/cache, accelerates Python S-expression parsing ~4×, aligns off-board netlists with kicad-cli 10.0.8, and ships the Blue Phosphor static documentation site.
Highlights
- Analytic
KiCadFabView(kicad_monkey.fab) & Pure-Rustkicad-monkey-fab: A unified whole-nanometre (+Y-up) board view shared across Gerber X2/X1, decimal metric Excellon NC Drill (G85routed slots and blind, buried, and microvia spans), IPC-2581 Rev B, PCB SVG, Pick-and-Place CSV, BOM CSV, and pure-Python / pure-Rust AP242/AP214 Micro-STEP. See the FabView Guide and Rust FabView Guide. - All 17 Virtual Fab Layers: Added
CUTOUTS,PIN1_TOP/PIN1_BOTTOM,DIODES_*,CAPACITORS_*,INDUCTORS_*,RESISTORS_*,ASSEMBLY_OUTLINES_*,ASSEMBLY_DESIGNATORS_*, andPAD_LABELS_*with unified override precedence, autodetect heuristics, oblique Pin 1 and designator orientation, KiCad Stroke / Hershey text, and assembly-variant DNP crossout. See Virtual Fab Layers. - Turnkey
kcr fab&kcr vdoc(Boards +.prettyLibraries):kcr fab(aliasesgerbz,ipc2581) generates config-drivenfab.jsoncmanufacturing packages with automatic stale-Gerber pruning on re-run.kcr vdoc(aliasvirtual-doc) bakes virtual documentation layers directly into.kicad_pcbboards (bake_virtual_layers_to_pcb) and standalone.kicad_mod/.prettyfootprint libraries (bake_virtual_layers_to_footprint,BakeFootprintVirtualLayersOptions) withfab(defaultF.Fab/B.Fab),fab-outlines, anduser-onlypresets,--fab-only/--outlines-only, collision protection, and shared safe documentation-layer cleanup (--clean,--clean-only,--clear-only) in both Pythonkcrand Rustk3.
- External 3D STEP Resolution & Native KiCad 10.0.8 Embedding (
#90):KiCadModelResolverresolves embeddedkicad-embed://models first and falls back to external.step/.stplibraries (plus.wrl→.step/.stpsibling upgrades) through installed KiCadkicad_common.jsonpath variables, environment variables, and project directories acrosstoon,pcb-svg,fab,vdoc, andKiCadFabView. Pass--embedded-onlyor setKCR_EMBEDDED_MODELS_ONLY=1for strict portable CI runs.- Added
kcr pcb embed-modelsto natively embed resolved STEP models in KiCad 10.0.8 format (zstd level 15 + 32-hex MMH3-128 viaEmbeddedFile.from_kicad_bytes) at deduplicated board scope (.kicad_pcb) or footprint scope (.kicad_mod), with--dry-run,--apply,--refs,--update-project-library,--re-embed,--prune-unused,--backup,-o,--json, and KiCad.lcklock-file protection. - Added
kcr kicad prefs,kcr health --require-embedded, andkcr project-lib --embed-board-models.
- Pure Micro-STEP
kcr pcb-layer-step: Replaced heavy B-rep projection with analytic pure-Python and pure-Rust Micro-STEP AP242/AP214 export with zero Geometer/OpenCASCADE dependency. Seekcr pcb-layer-step. - Unified Native Rust CLI (
k3): Consolidated standalone native workflows underk3(k3 fab,k3 vdoc,k3 pcb-svg,k3 toon,k3 design,k3 bom,k3 pnp,k3 jlc,k3 pcb-layer-step,k3 version) with[profile.iteration]fast developer builds,--build-infoprovenance, and shared root--quiet/--verbose/--log-levelcontrols. See Native Rust CLI (k3). - Toon Unified Into
pcb-svg+ Two-Mask Clipping &<defs>/<use>Instancing:kcr toonnow runs as a built-inpcb-svgpreset, makingILLUSTRATION_TOP/BOTTOM,BOARD_SUBSTRATE, andSOLDERMASK_FILM_TOP/BOTTOMavailable in anypcb-svgview. Two-mask board clipping eliminates per-copy clip seams, and<defs>/<use>model instancing shrinks Toon SVGs by 25–50% while slashing warm render time (on a 36 MB board, warm Toon drops from 48.3 s to 15 s in Python and 24.5 s to 5.0 s in Rust). - Shared Project-Local
.kcr/cache& Parallelpcb-svg --workers: Both Python and Rusttoonandpcb-svgnow share.kcr/cachein the project folder (geometer-illustrationandgeometer-hlr), andpcb-svg --workers N(default4) runs HLR misses across a Geometer IPC pool. - ~4× Faster Python S-Expression Parsing & Lossless Round-Trip:
parse_sexpbuilds the list tree directly from one regex match stream without intermediate token objects (36 MBKiCadPcb.from_file: 8.4 s → 2.6 s;parse_sexp: 7.4 s → 1.6 s) while preserving KiCad 7–10 formatting, comments, and unknown tokens across edits. AddedEmbeddedFileDecoder/embedded_file_decoder(board), single-pass MMH3 block hashing,KiCadPcb.source_sha256, and a bounding-box-indexedPcbLayerFlashResolver. - Off-Board Netlist Parity & Never-Stop Design Review:
KiCadDesign.to_netlist()and Rustbuild_kicad_netlistnow exclude pins of(on_board no)symbols and off-board sheets from net node lists (matchingkicad-cli 10.0.8), compiled schematic graphs keep distinct UUIDs for duplicate-number pins, andkcr designrecords remaining drawing/netlist contradictions as structured warnings instead of aborting. - Blue Phosphor Public Documentation Site: Zero-dependency static site covering domain guides, all 17 core
kcrcommands, Python API reference, 6 Rust crates, TypeSpec format contracts, and the KiCad Stroke webfont.
Breaking Changes & Migration
Review four high-impact breaking areas before upgrading: (1) removal of the kcr schematic stub and legacy pcb-svg config keys, DOM attributes, and Rust pcb_svg::preview API; (2) relocation of the Geometer render cache from user-local folders into project-local .kcr/cache; (3) off-board symbol and sheet netlist parity changing emitted net node counts; and (4) accurate SVG canvas bounds, viewBox origins, and layer-prefixed element IDs in pcb-svg and toon.
CLI, Config, SVG DOM & Rust API Removals
Removed / Old (2026.11.24) | Replacement / New (2026.11.30) |
|---|---|
kcr schematic stub subcommand | Removed (use kcr design or kicad_monkey schematic APIs) |
pcb.svg.config assembly_designators.rotation_aspect_thresholdassembly_designators.rotation_direction | Removed — labels now fit automatically along both component axes (including 45° parts); existing configs warn and ignore these keys |
assembly_designators.min_font_size_mm (0.35 mm floor) | Removed — every label that fits its outline is drawn |
pcb-svg label attributes data-bounds-kind & data-projection | Replaced with data-geometry-source; mirrored views now emit readable labels directly instead of un-mirroring in post-processing |
Duplicate element id attributes across multi-layer pcb-svg / toon views | Later layers prefix element ids and references with their layer name so every id in a view is unique (single-layer outputs keep original IDs) |
Rust pcb_svg::preview API & render_toon_preview example | Removed — invoke pcb-svg with the built-in Toon preset / toon runner |
User-scoped caches %LOCALAPPDATA%/kicad-cruncher/toon-models-b0 & toon-models-python-b0 | Project-local .kcr/cache/<product>/<version>/<key>.json shared by Python & Rust toon and pcb-svg (--cache-dir / --no-cache); old user-cache folders are no longer read and may be deleted |
// Before (2026.11.24 pcb.svg.config)
{
"assembly_designators": {
"rotation_aspect_threshold": 1.5,
"rotation_direction": "ccw",
"min_font_size_mm": 0.35
}
}
// After (2026.11.30 pcb.svg.config)
{
"assembly_designators": {
// Labels orient automatically along component axes and fit any size that clears the outline.
// Remove rotation_aspect_threshold, rotation_direction, and min_font_size_mm.
"box_fill_ratio": 0.8
}
}Netlist, Bounds & Visual Behavior Shifts
Behavioral Change (2026.11.24) | New Behavior (2026.11.30) |
|---|---|
KiCadNetlist listed pins of (on_board no) symbols and symbols on (on_board no) sheets | Matches kicad-cli 10.0.8: off-board symbol/sheet pins still connect wires and name nets in the graph, but are omitted from KiCadNetlist nodes; nets with no remaining on-board pins are omitted |
compute_pcb_svg_bounding_box & Python render_pcb_ir_to_svg bounded arcs by start/mid/end only, ignored stroke half-widths, and included unfilled zone outlines | Measures true arc extents (axis crossings), half stroke widths, rotated footprint rectangle corners, and drawn zone fills only (matching Rust kicad-monkey-svg) |
Python pcb-svg ignored global.canvas; Python Toon viewBox started at canvas offset (e.g., -1 -1) | Both Python and Rust pcb-svg share one board canvas (global.canvas + margin_mm), and Python Toon viewBox starts at 0 0 |
Standalone Rust ASSEMBLY_HLR_* / ASSEMBLY_DESIGNATORS_* defaulted to "detail" | Now follow assembly.default_projection (with components.<ref>.projection overriding), matching Python; fixed-mode layers (ASSEMBLY_HLR_*_OUTLINE, *_DETAIL, ASSEMBLY_BOUNDS_*) always honor their fixed mode |
| Toon lighting rotated with each footprint | Lighting stays fixed to the board frame across <defs>/<use> rotated instances; Toon illustration cache keys now include footprint rotation |
| Toon showed faint tented-via holes under mask film | Holes come only from DRILLS and SLOTS (excluding tented vias) |
New Features
Analytic Fabrication (KiCadFabView, kcr fab, kcr vdoc)
- Core Python & Rust Fabrication Engine:
pcb.fab()/KiCadFabViewin Python andkicad-monkey-fabin Rust share whole-nanometre+Y-up geometry across Gerber X2/X1 (to_gerbers), Excellon NC Drill (to_nc_drill), IPC-2581 Rev B (to_ipc2581), PCB SVG (to_svg,to_layer_svgs), Pick-and-Place (to_pnp), BOM (to_bom), and AP242/AP214 Micro-STEP (to_micro_step). See Fab & KiCadFabView. - 17 Virtual Fab Layers & Baking: Full virtual layer suite across board fabrication outputs, SVGs, board baking (
bake_virtual_layers_to_pcb), and footprint-library baking (bake_virtual_layers_to_footprint,BakeFootprintVirtualLayersOptions). See Virtual Fab Layers. - Documentation Cleanup Engine: Shared safe cleanup strips legacy
F.Fab/B.Fab/User.*graphics and hides Reference/Value fields while protecting courtyards, copper, pads, silkscreen, mask, paste, and 3D models.
External 3D STEP Resolution & Native Model Embedding (#90)
KiCadModelResolver: Resolveskicad-embed://payloads first, then searches external.step/.stpfiles (and upgrades.wrlreferences to adjacent.step/.stpfiles) using KiCadkicad_common.jsonpath variables, environment variables, and project folders.- Native KiCad 10.0.8 Embedding:
EmbeddedFile.from_kicad_bytes(...)writes zstd level 15 + 32-hex MMH3-128 frames that open natively in KiCad 10.0.8;kcr pcb embed-modelssupports deduplicated board and footprint embedding,--refs,--update-project-library,--re-embed,--prune-unused,--backup,--dry-run,--apply,--json, and.lcklock safety. - Inspection & Health Integration: Added
kcr kicad prefs,kcr health --require-embedded, andkcr project-lib --embed-board-models.
Rendering, Caching & Performance
- Toon +
pcb-svgUnification:ILLUSTRATION_TOP/BOTTOM,BOARD_SUBSTRATE,SOLDERMASK_FILM_TOP/BOTTOM,soldermask_film.color: "auto", and silkscreen"contrast"work in everypcb-svgview. Pythonpcb-svgnow renders layers in listed order (each layer in KiCad plot order) and placesASSEMBLY_HLR_*/ASSEMBLY_BOUNDS_*at their listed position in the view. - Shared
.kcr/cache& Parallel HLR: Pythonpcb-svgnow uses Geometer's IPC client with--workers N(1–64, default 4) and sharesgeometer-hlrandgeometer-illustrationcache entries with Rustk3. Runs printCache: N reused, M stored (<dir>)and auto-prune retired cache versions. - Progress Logging: Both Python and Rust
toonandpcb-svgprint structured progress lines (board load, views, unique STEP models, component checkpoints, written SVGs), controlled by--verbose(per-phase timings),--quiet, and--log-level. - Parser, Decoder & Plotter Acceleration:
parse_sexpstream-builds list trees ~4× faster without intermediate token objects (falling back toKicadSexprParseron syntax errors or KiCad 10teardropsforms);SexpTokenis a slotted frozen dataclass.EmbeddedFileDecoder/embedded_file_decoder(board)caches verified decodes once per distinct embedded payload across sides, variants, and commands, and MMH3 checks hash 16-byte blocks once (computing the legacy tail only on mismatch).KiCadPcb.source_sha256records file SHA-256 on load sotoon,pcb-svg, andkcr designidentify boards without re-serializing multi-megabyte PCBs.pcb_to_ir(..., layer_flash_resolver=)andcompute_pcb_svg_bounding_box(..., layer_flash_resolver=)accept a reusable bounding-box-indexedPcbLayerFlashResolver.- Rust
pcb-svgnamespaces physical layer SVG IDs in one pass (10 copper layers on a 36 MB board: 27 s → 4.9 s).
Bug Fixes
- Compiled Schematic Graphs & Duplicate Pin Numbers: Each library pin now receives its own saved
(pin "N" (uuid ...))entry in KiCad 10.0.8 order so multi-pin symbols sharing a pin number (or empty number"") no longer abort graph compilation; pins lacking distinct saved UUIDs emit apin_identity_repeatedwarning and continue. - Never-Stop
kcr designDiagnostics: Missing source pin associations, pins listed on multiple nets, conflicting wire groups, ambiguous sheet pins, and duplicate symbol mappings are logged and recorded as structured issues in Design JSON instead of aborting review bundle generation. - Footprint-Owned
Edge.CutsOutlines: Pythonpcb-svgandtoonnow includeEdge.Cutsshapes defined inside footprints (transformed to board coordinates) when computingBOARD_OUTLINEandBOARD_CUTOUTS. - Turned Footprint Pad Boxes & Non-Plated Pegs: Fixed double-rotation of pad angles in Python
pcb-svgpad_bounds/ASSEMBLY_BOUNDS_*_PADSand aligned Rust pad boxes to include non-plated holes andF&B.Culands. - Copper Graphics & Silkscreen Zone Fills: Fixed
kcr designcopper graphics, net-tie polygons, and copper text taking the review's copper/grey colors; fixed Rustpcb-svgsilkscreen zone fills taking the silkscreen style (#000000instead of#888888); fixed RustMarginandRescuephysical layer rendering and unclosedBOARD_OUTLINEfallback; fixed Rusttoon --footprintlabeling only the selected footprint and emittingdata-toon-schema,data-review-side, anddata-sourceroot attributes. - True Stroke Framing in Rust Toon: Rust Toon now measures
Edge.Cutsusing each item's real stroke width instead of a fixed 0.12 mm assumption, matching Python frames to under1e-6mm.