[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108477":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":28,"discoverSource":29},108477,"pcbcraft-gpl","tangency-labs\u002Fpcbcraft-gpl","tangency-labs","MCP-first Rust EDA with a single-window tabbed editor, KiCad compatibility, and craft-libs",null,"Rust",179,23,6,563,0,2,7,45.79,"GNU General Public License v3.0",false,"main",true,[],"2026-10-20 22:44:40","2026-11-23 00:10:00","# PCBCraft\n\n**A Rust EDA application, MCP-first, with one window and tabbed workspaces.**\n\nGPL-3.0-or-later. Inspired by KiCad workflows and the SolidCraft \u002F Craft application\narchitecture. Uses the pinned `craft-ui` library from `storytold\u002Fcraft-libs`.\n\n**Status: first working foundation, not a KiCad replacement yet.** The current\nvertical slice is a flat schematic → assigned SMD PCB → basic routing → checks → KiCad\nboard export. The complete EDA roadmap is in [ROADMAP.md](ROADMAP.md).\n\n## What works\n\n- One native Rust window with Schematic, PCB Layout, Libraries and Checks tabs;\n  project browser and properties remain docked in the same window.\n- Dark default, light theme, persistent accent and grid preferences, zoom around\n  the cursor, middle-button pan, symbol previews and drag-to-move.\n- Periodic project recovery and recovery on normal close, using application storage.\n- Original resistor, capacitor, LED and two-pin connector symbols; explicit\n  logical nets and pin-to-pin orthogonal wire presentations.\n- Background search and geometry previews of installed KiCad symbol\u002Ffootprint\n  libraries, including inherited definitions. Place supported symbols with\n  independently movable schematic units within one physical package, assign\n  matching front SMD or plated through-hole footprints, and embed used definitions.\n- Symbol and footprint editors in the Libraries tab: editable pins, unit membership,\n  pad\u002Fdrill dimensions, and line\u002Frectangle\u002Fcircle\u002Farc\u002Fpolyline\u002Ftext graphics. Save\n  undoable project-library definitions and reusable `.pcbcraft-lib` collections.\n- Schematic-to-PCB sync retains existing placements and reconciles pad nets.\n- Real circle\u002Frectangle\u002Froundrect\u002Foval front SMD and plated through-hole pads,\n  circular\u002Foval offset drills, plus generic starter pads;\n  straight or two-segment orthogonal tracks;\n  airwires from actual same-layer copper connectivity.\n- Editable rectangular board width\u002Fheight and dimensioned circular cutouts,\n  exported as Edge.Cuts. Constrained\u002Fparametric outline sketches are planned.\n- Initial pin assignment\u002Fnet-population checks and copper short, clearance,\n  board-edge, cutout and unrouted checks with affected object IDs.\n- 26 engine commands, discoverable schemas, atomic batches, stable IDs,\n  revision guards, 32-step undo\u002Fredo and validated atomic project saves.\n- 44 MCP tools: every engine command plus library discovery\u002Fsearch\u002Finspection,\n  design inspection, checks, persistence,\n  export and PNG previews. Headless or bridged into the actual running desktop.\n- Rust browser entry point; the shared UI and engine compile to WebAssembly.\n  Browser host-file open\u002Fsave\u002Fexport are not implemented yet.\n\n## Run on Linux \u002F WSL\n\nInstall Rust 1.95+ and window-system development libraries. On Ubuntu:\n\n```sh\nsudo apt install build-essential pkg-config libxkbcommon-dev libwayland-dev \\\n  libx11-dev libxi-dev libxrandr-dev libxcursor-dev libgl1-mesa-dev\nrustup target add wasm32-unknown-unknown\ncargo run -p pcbcraft -- --sample --control 127.0.0.1:7991\ncargo run -p pcbcraft -- --project led.pcbcraft --tab pcb\n```\n\nWSLg can display the Linux app on Windows. For automated UI capture without a\ndesktop, use Xvfb with `--capture`:\n\n```sh\nxvfb-run -a -s '-screen 0 1600x1100x24' \\\n  env -u WAYLAND_DISPLAY WGPU_BACKEND=vulkan \\\n  cargo run -p pcbcraft -- --sample --capture \u002Ftmp\u002Fpcbcraft.png\n```\n\nWindows can also build natively with `cargo run -p pcbcraft -- --sample`.\n\n## First circuit\n\nLoad **LED example**, or press **A** to select a symbol and click to place it.\nPress **W**, then click two pin circles to connect them. A new net is created\natomically if neither pin is assigned; conflicting existing nets are rejected.\nClick **Sync to PCB** to generate footprints. Press **X** and click two same-net\npads to route between them. Open **Checks** to inspect remaining findings. Save\nthe native `.pcbcraft` project or export its board to `.kicad_pcb`.\n\nThe route tool is a simple orthogonal pad-to-pad operation. It does not avoid\nobstacles; inspect its clearance findings. Footprint movement does not drag tracks.\nWire crossings do not implicitly join logical nets.\n\n## KiCad libraries\n\nInstall KiCad's symbol and footprint libraries, then open **Libraries**. Search a\nsymbol, preview it and choose **Place in schematic**. Select its placed component,\nchoose **Assign footprint in Libraries**, and assign a package whose numbered pads\nmatch its pins. **Sync to PCB** retains placement and reports symbols that still\nneed footprints. The project embeds used geometry, so reopening needs no library\ninstallation. The desktop discovers Linux, Windows and Ubuntu WSL library folders;\ncustom paths and `KICAD10_SYMBOL_DIR` \u002F `KICAD10_FOOTPRINT_DIR` are supported.\n\nMulti-unit symbols share one component\u002Freference, physical pin map and footprint;\neach unit can move\u002Frotate independently. Select its drawing or choose the unit in\nProperties. All units, including separate power units, are initially placed.\nPlacement supports up to 32 units, 64 unique physical pins, and front SMD\u002Fplated\nthrough-hole circle\u002Frect\u002Froundrect\u002Foval pads. Repeated common pin numbers across\nunits, unsupported graphical pin styles, NPTH mechanical holes, back SMD placement,\n3D models, footprint copper graphics and general KiCad project import remain planned.\nRounded-pad clearance uses sampled outlines with a small conservative error bound;\nconnectivity uses inscribed pad bounds and can conservatively flag corner contacts.\nSee [library formats, limits and provenance](docs\u002Fkicad-libraries.md).\n\nChoose **Edit a copy**, **New symbol**, or **New footprint** inside Libraries to\nauthor a definition. Edit pins\u002Fpads and drawing primitives with a live preview,\nthen save to **Project library**. Save\u002Fload a `.pcbcraft-lib` collection to reuse\nit elsewhere. Original nodes and attribution notices are retained for imported\ncopies; native libraries reject unknown data fields rather than discarding them.\nLibrary edits do not silently change placed definitions. Reassign a revised\nfootprint or place a revised symbol explicitly. KiCad library writing and advanced\ninteractive library drawing remain planned.\n\nThe portable `examples\u002Fdual-amplifier.pcbcraft` demonstrates three LM358 units,\none edited DIP8 package with an offset oval drill, and front\u002Fback routing.\n\n## Keyboard defaults\n\n| Shortcut | Action |\n|---|---|\n| A | Inline add-symbol chooser (schematic) |\n| W | Wire between pins (schematic) |\n| X | Route between pads (PCB) |\n| M | Move selection, then click destination |\n| R | Rotate selection 90° |\n| E | Show properties |\n| Delete | Delete selection |\n| Escape | Cancel tool \u002F placement preview |\n| Ctrl+Z \u002F Ctrl+Y | Undo \u002F redo (Ctrl+Shift+Z also redoes) |\n| Ctrl+S | Save to the inline project path |\n| Ctrl+K | Inline command panel |\n| Home | Fit the active canvas |\n\nThese are the initial KiCad-style defaults, not a complete configurable KiCad keymap.\n\n## CLI and MCP\n\n```sh\ncargo run -p pcbcraft-cli -- commands\ncargo run -p pcbcraft-cli -- sample --out led.pcbcraft\ncargo run -p pcbcraft-cli -- run examples\u002Fled-indicator.json --save led.pcbcraft --export led.kicad_pcb\ncargo run -p pcbcraft-cli -- checks --project led.pcbcraft\ncargo run -p pcbcraft-cli -- snapshot --sample --view pcb --out led.png\ncargo run -p pcbcraft-cli -- mcp\ncargo run -p pcbcraft-cli -- mcp --connect 127.0.0.1:7991\n```\n\nSee [docs\u002Fmcp.md](docs\u002Fmcp.md) for client configuration and request examples.\nMCP uses JSON-RPC over newline-delimited stdio. Logs\u002Ferrors go to stderr.\n\n## Development\n\n```sh\ncargo xtask ci  # formatting, clippy, tests, UI\u002Fengine\u002Fbrowser wasm checks\ncargo build -p pcbcraft -p pcbcraft-cli\n# Browser: install Trunk, then:\ncd apps\u002Fpcbcraft-web && trunk serve\n```\n\nKeep build products outside the mounted Windows tree in WSL for better filesystem\nperformance, e.g. `CARGO_TARGET_DIR=$HOME\u002F.cache\u002Fpcbcraft-target`.\n\nArchitecture: [docs\u002Farchitecture.md](docs\u002Farchitecture.md). Agent instructions:\n[AGENTS.md](AGENTS.md). Provenance: [ATTRIBUTION.md](ATTRIBUTION.md).\n\n## License\n\nPCBCraft is licensed under GNU GPL version 3 or later; see [LICENSE](LICENSE).\nThird-party dependencies retain their own licenses and notices. No KiCad source\nimplementation has been copied or ported in this initial version. KiCad is an\nindependent project; PCBCraft is not affiliated with or endorsed by the KiCad team.\nKiCad library fixtures retain CC-BY-SA 4.0 with the design-output exception; the\ndata license is separate from the Rust application's GPL license.\n","PCBCraft 是一款以 MCP（Model-Command-Protocol）架构为设计核心的 Rust 编写的开源电子设计自动化（EDA）工具，提供单窗口、多标签式原理图与 PCB 协同编辑环境。它支持 KiCad 符号\u002F封装库的实时搜索与复用，具备原理图绘制、SMD\u002FPTH 封装分配、正交布线、电气规则检查（DRC）及 KiCad 板文件导出等核心功能；采用 craft-ui 框架，支持深色\u002F浅色主题、项目自动恢复、32步撤销重做和 WebAssembly 编译能力。当前定位为轻量级硬件原型设计与教育场景下的 KiCad 补充工具，适合嵌入式开发者、开源硬件爱好者及教学实验中快速迭代电路设计。","2026-11-24 04:34:19","CREATED_QUERY"]