MCPcopy
hub / github.com/atopile/atopile

github.com/atopile/atopile @v0.14.1004 sqlite

repository ↗ · DeepWiki ↗ · release v0.14.1004 ↗
13,649 symbols 56,977 edges 583 files 2,592 documented · 19%
README

Shows a black logo in light color mode and a white one in dark color mode.

PyPI Docs Packages Discord License

Design circuit boards with code

Write hardware like software. atopile is a language, compiler, and toolchain for electronics—declarative .ato files, deep validation, and layout that works natively with KiCad.

atopile editor with a project open

Why atopile

  • Reusable modules instead of starting from scratch every time
  • Capture intent with equations directly in your design
  • Automatic parametric picking of discrete components

Install

The easiest way is via the editor extension—it installs and manages ato for you:

  • VS Code/Cursor extension: https://marketplace.visualstudio.com/items?itemName=atopile.atopile

Advanced setups and CLI installs: https://docs.atopile.io/atopile/guides/install

Quickstart (2 minutes)

  1. Install the extension (link above)

  2. In the editor, run “atopile: Open Example” and pick one

  3. Press the ▶ in the ato menu bar to build, or run ato build from the terminal

  4. Open layout when ready

Notes:

  • The ato menu bar is in the bottom-left of your VS Code/Cursor window
  • KiCad is optional to get started. Without it, you won’t open the PCB, but builds still run and update the .kicad_pcb. Install later when you’re ready for layout: https://docs.atopile.io/atopile/quickstart

How it works

  • ato is a declarative language for electronics: modules, interfaces, units, tolerances, and assertions
  • The compiler solves constraints, picks parts, runs checks, and updates your KiCad layout
  • The extension adds language services and one‑click controls

Learn more: https://docs.atopile.io/atopile/essentials/1-the-ato-language

Where atopile fits in

High-level steps:

  • Requirements — capture specs with units, tolerances, and assertions
  • Component selection — parametric picking, reuse proven modules
  • Design capture — .ato modules and interfaces compose your system
  • Layout — place and route in KiCad
  • Checks — run design checks locally or in CI
  • Build outputs — BOM, fabrication and assembly data, reports
  • PCB fab/assembly — send outputs to your manufacturer

Example Projects

  • Open examples via the editor (“atopile: Open Example”) https://github.com/atopile/atopile/tree/main/examples
  • NONOS — Open-source smart speaker https://github.com/atopile/nonos
  • DSP - Open-source multi-channel DSP https://github.com/atopile/dsp
  • AI-Pin — Vibe-coded Humane Pin https://github.com/atopile/ai-pin
  • Hyperion — 300K nit display for raves https://github.com/atopile/hyperion
  • Cellsim - 18 channel battery cell simulator https://github.com/atopile/cellsim
  • ESPaper - ESP32 epaper display driver https://github.com/atopile/hivehaus/tree/master/src/products/espaper

Packages and parts

  • Browse and install modules from the registry: https://packages.atopile.io
  • Guide: https://docs.atopile.io/atopile/essentials/4-packages
  • Publish your own: https://docs.atopile.io/atopile/guides/publish

Compatibility

  • OS: macOS, Linux, Windows (WSL recommended)
  • Recommended editors: VS Code / Cursor
  • EDA: KiCad recommended for layout; not required to start

Contributing and development

  • Development setup: https://docs.atopile.io/atopile/guides/development
  • Editable install (for working on atopile itself): https://docs.atopile.io/atopile/guides/install#editable-installation-best-for-development
  • Run tests:
pytest -q
  • Fast worktree setup (CoW-clone .venv + Zig cache/output, then pip install -e):
ato dev worktree <new-branch-name>
cd ../<new-branch-name>
./ato --help
  • Issues and feature requests: https://github.com/atopile/atopile/issues

Support

  • Discord “help” channel: https://discord.gg/CRe5xaDBr3
  • Commercial support: hi@atopile.io

License

MIT. See LICENSE.

Extension points exported contracts — how you extend this code

LLM_Rule_Host (Interface)
(no doc) [8 implementers]
src/vscode-atopile/src/common/vscodeapi.ts
AtopileLogoProps (Interface)
* Atopile logo component - the actual logo from the atopile brand.
src/atopile/visualizer/web/src/components/AtopileLogo.tsx
PerfStats (Interface)
* Performance monitoring utilities for UI snappiness tracking. * * Modern UI performance standards (RAIL model): * -
src/ui-server/src/perf.ts
MCP_Host (Interface)
(no doc) [4 implementers]
src/vscode-atopile/src/common/vscodeapi.ts
EdgeTypeConfig (Interface)
(no doc)
src/atopile/visualizer/web/src/types/graph.ts
Material (Interface)
(no doc) [1 implementers]
src/ui-server/src/components/ModelViewer.tsx
Git (Interface)
(no doc)
src/vscode-atopile/src/git.d.ts
GraphNode (Interface)
(no doc)
src/atopile/visualizer/web/src/types/graph.ts

Core symbols most depended-on inside this repo

get
called by 1303
src/faebryk/libs/util.py
create_instance
called by 1118
src/faebryk/library/Literals.py
MakeEdge
called by 1116
src/faebryk/library/Collections.py
create
called by 1002
src/faebryk/libs/package/meta.py
bind_typegraph
called by 957
src/faebryk/core/node.py
MakeChild
called by 906
src/faebryk/library/Units.py
push
called by 741
src/vscode-atopile/src/git.d.ts
add
called by 596
src/vscode-atopile/src/git.d.ts

Shape

Method 7,503
Function 3,477
Class 2,029
Interface 506
Route 111
Enum 23

Languages

Python59%
TypeScript41%

Modules by API surface

src/vscode-atopile/resources/model-viewer/model-viewer.min.js2,744 symbols
src/vscode-atopile/resources/kicanvas/kicanvas.js625 symbols
src/ui-server/public/vendored/kicanvas.js625 symbols
src/faebryk/library/Literals.py603 symbols
src/atopile/compiler/parser/AtoParser.py588 symbols
src/faebryk/libs/util.py354 symbols
src/faebryk/core/node.py327 symbols
src/faebryk/library/Expressions.py243 symbols
src/faebryk/library/Units.py234 symbols
test/compiler/test_runtime.py171 symbols
test/compiler/test_typegraph.py159 symbols
src/faebryk/core/solver/mutator.py157 symbols

Dependencies from manifests, versioned

@gltf-transform/cli4.1.0 · 1×
@radix-ui/react-checkbox1.0.4 · 1×
@radix-ui/react-collapsible1.0.3 · 1×
@radix-ui/react-slider1.3.6 · 1×
@react-three/drei9.92.7 · 1×
@react-three/fiber8.15.12 · 1×
@testing-library/react14.2.0 · 1×
@tracespace/core5.0.0-alpha.0 · 1×
@tracespace/parser5.0.0-next.0 · 1×
@tracespace/plotter5.0.0-alpha.0 · 1×

For agents

$ claude mcp add atopile \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact