Skip to the content
2 layers26 × 79 mmGenerated, the printed circuit board in 3D

Declare each fact once. Derive every artifact from it.

Size
26 × 79 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
23
Pads
154
Tracks, vias
0, 0
Pours
12
Routed
Not yet
KiCad
KiCad 7 (file 20221018)
Created
6 Sep 2026
Updated
5 Nov 2026

Overview

Generated is an open-source printed circuit board by AleksaZCodes, from the AleksaZCodes/fiducial repository on GitHub, published under the MIT licence. It is a 2-layer board of 26 × 79 mm with 29 parts on 23 nets.

Its parts include 12 capacitors, 7 resistors, 5 ICs, 1 diode and 1 connector.

README

README.md

Fiducial

Build any robust multidisciplinary product with AI agents.

That is the platform's thesis (thesis.toml, fid thesis). How: declare each fact once, derive every artifact from it, and gate the result.

Fiducial is a cross-domain build system for products that span web, firmware, electronics, mechanical, simulation and content — built at the quality and pace that normally needs a team, by one person working with agents.

Not by working harder at each domain. By deleting the work that exists only because the domains don't talk to each other.


The problem it removes

In a cross-domain product the same fact gets written down many times:

  • a pin assignment — in the schematic, the firmware, the test rig, the docs
  • a protocol message — in the firmware, and again in the web client
  • a board dimension — in the PCB tool, the enclosure model, the marketing render

Every duplicate is a place where reality drifts from itself. Drift is discovered late, in the field, expensively.

So: one declaration, many derivations. The declaration is typed, machine-readable and lives in git. Everything downstream is generated, and generated artifacts are never hand-edited.

The shape of the system

Three ideas stacked, and each one exists to make the one above it cheap.

text
                        ┌───────────────────────────────┐
   DECLARE              │  board.interface.json         │   typed facts,
   a fact, once         │  fiducial.toml  ·  messages/  │   inert, in git
                        └───────────────┬───────────────┘
                                        │
                                  fid derive          ← gated by --check
                                        │
        ┌───────────────┬───────────────┼───────────────┬───────────────┐
        ▼               ▼               ▼               ▼               ▼
   DERIVE          enclosure       TypeScript      wrangler.toml    migrations
   every artifact  STL · GLB       types           (deploy cfg)     SQL schema
        │
        └── never hand-edited · hashed into fiducial.lock · stale ⇒ CI fails

        firmware · desktop · browser · edge · CLI     ← many runtimes
                          ╲   │   ╱
   RUN IT ANYWHERE  fiducial-protocol                  ← one waist
                          ╱   │   ╲
        USB serial · Web Serial · WebUSB · BLE · LoRa  ← many transports

Logic lives as far down as it can. The no_std Rust spine compiles for the host, wasm32, and two embedded targets on every commit — so a behaviour written once runs in a browser, on a desktop, at the edge, and on a microcontroller, and outlives every framework above it.

A worked example

sh
cargo install fiducial-cli

fid new my-product && cd my-product
fid add capability hardware   # one declaration → case, board, schematic, BOM, interface
fid add capability firmware-rp2040
fid derive                    # run every pipeline, hash every output
fid dash                      # roadmap, decisions, CI, pipelines, freshness

Declare the product once, in hardware/product.toml: its outline, its parts, and what each pin connects to (an excerpt):

toml
[[part]]
id     = "mcu"
symbol = "MCU_RaspberryPi:RP2040"
pins   = { GPIO4 = "SENSOR_SDA", GPIO5 = "SENSOR_SCL", GND = "GND" }

[[part]]
id   = "r-sda"
pick = { category = "Resistors", package = "0603", value = "4k7", has = ["1%"] }  # resolved to a real LCSC part, locked
pins = { 1 = "SENSOR_SDA", 2 = "3V3" }

[firmware]
mcu = "mcu"

Then fid derive produces — with nobody modelling, drawing or copying anything —

  • the case around the parts, with every socket's window cut, and the board inside it: placed by a constraint solver, every pad on its net;
  • the schematic, and the BOM, each part's LCSC number taken from hardware/parts.lock;
  • interface.ts — the nets as a TypeScript type, for the app that talks to the device;
  • board.rs — the firmware's pin map: board::sensor_sda!(p) is p.PIN_4.

hardware/build.sh then routes the board, builds every solid, checks that it all fits and goes together, and writes the files a board house needs to make and assemble it.

Move SENSOR_SDA to GPIO6 and the copper, the schematic and the firmware move with it — the firmware with no edit. Rename it, and firmware or web code still using the old name stops compiling. Until fid derive has run, fid derive --check names every artifact that no longer matches the declaration and exits non-zero. It runs in CI, so an artifact that did not follow its declaration fails the build instead of shipping. That is the whole contract.

The whole of it, on a real product: examples/sensor-stick/ is a USB-C temperature and humidity stick — case, routed board, orderable fab files, firmware and a web page from one declaration, built end to end in CI — and how it was made, step by step.

What you can add to it

Nothing above is special-cased into the CLI. Each of these is a capability — a named, versioned extension that contributes declarations, pipelines, guard rules and a skill for agents. fid new generates none of them; you add what the product actually needs.

CapabilityContributesInstall
adaptersdeclares adapters; 1 pipeline(s); seeds a fiducial.toml blockfid add capability adapters
branddeclares brand; 2 pipeline(s); 2 template file(s); seeds a fiducial.toml blockfid add capability brand
cmsdeclares cms; 1 pipeline(s); 6 template file(s); seeds a fiducial.toml blockfid add capability cms
contentdeclares content.toml, content/posts/en/hello.md; 1 pipeline(s); 2 template file(s)fid add capability content
deploydeclares deploy; 1 pipeline(s); seeds a fiducial.toml blockfid add capability deploy
designdeclares design-system.md; 1 pipeline(s); 4 template file(s)fid add capability design
edadeclares board/board.interface.json; 2 pipeline(s); 1 template file(s)fid add capability eda
firmware-rp204011 template file(s); guard rulesfid add capability firmware-rp2040
firmware-stm3210 template file(s); guard rulesfid add capability firmware-stm32
hardwaredeclares hardware/outline.svg, hardware/product.toml; 1 pipeline(s); 12 template file(s)fid add capability hardware
i18ndeclares i18n, messages/en.json, messages/sr.json; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml blockfid add capability i18n
identitydeclares identity; 1 pipeline(s); seeds a fiducial.toml blockfid add capability identity
legaldeclares legal; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml blockfid add capability legal
migrationsdeclares migrations; 1 pipeline(s)fid add capability migrations
monitoringdeclares monitoring.toml; 1 pipeline(s)fid add capability monitoring
pressdeclares press, press/docs/en/boilerplate.md, press/docs/en/facts.md, press/stories/en/0001-why-this-exists.md; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml blockfid add capability press
protocoldeclares protocol.toml; 1 pipeline(s)fid add capability protocol
realtimea skillfid add capability realtime
researchdeclares paper; seeds a fiducial.toml blockfid add capability research
seodeclares seo; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml blockfid add capability seo
tauri5 template file(s); guard rulesfid add capability tauri
topologydeclares topology.toml; 1 pipeline(s)fid add capability topology
web-next13 template file(s); guard rulesfid add capability web-next
web-svelte11 template file(s); guard rulesfid add capability web-svelte
worker-cloudflare1 template file(s); guard rulesfid add capability worker-cloudflare

A physical product, from one file

hardware is the capability that goes furthest. One hardware/product.toml names an outline in any SVG (a logo works), the regions on it, and the parts — each a real KiCad symbol, footprint and STEP model, with its LCSC number and its datasheet. fid derive solves the case round them, sizes and sections the board, places its parts with a constraint solver (OR-Tools CP-SAT — every rule a constraint, and a contradiction named rather than guessed at), wires every pin to its net, and writes a gated layout, BOM, KiCad board and schematic. hardware/build.sh then routes and DRCs the board (Freerouting), builds the solid model and fails on any interference, unsealed joint or part that cannot go in, and exports Gerbers, STEP and a review pack of renders. Where the vocabulary stops, a product adds its own geometry (hardware/shapes.py) or its own STEP model, and the checks still run over it.

Everything a part needs travels with it, in KiCad's own library layout: hardware/lib/ holds the symbols, footprints, models and datasheets (with text copies), hash-checked, and hardware/lib/PARTS.md puts every part on one page — what it is, its files, every pin's net — as the context a person or an agent starts from.

Vendors sit behind adapter contracts, chosen per product in [adapters]. Every contract ships with none — a real, working implementation, not a placeholder, which is what makes it cost nothing to wire in from the first commit. A name under Planned cannot be selected and fails with a message saying so: a selectable name with nothing behind it is a promise the platform does not keep.

Three of those nones fail rather than succeed silently: auth, ai and systemOne. The difference is whether the caller reads a result. A no-op send or enqueue is indistinguishable from the real thing at the call site — the caller wanted an effect elsewhere. A session, a completion and a decision are the result, so returning a fabricated one turns "no vendor selected" into a logged-in stranger, a blank answer in the UI, or a confidently wrong branch taken in production — and all three get debugged as bugs somewhere else. They still cost nothing to wire in: constructing them is free, and nothing fails until something actually asks.

ContractForSelectable todayPlanned
databaseRelational storage: queries, migrations, transactionsnone, d1, supabaseneon, postgres
storageObject storage: put, get, signed URLsnone, r2, supabase-storages3
deployWhere the product ships and how a release is promotednone, cloudflarevercel, fly
emailTransactional email: send, template, verify a domainnone, resendses, cloudflare-email
newsletterSubscriber list management: subscribe, unsubscribe, statusnone, resend—
errorsError tracking and diagnosticsnonesentry, workers-analytics
botProtectionBot / abuse challenge verificationnone, turnstilerecaptcha, hcaptcha
queueAsynchronous job/message queue (producer side)none, cloudflare-queuessqs
aiLanguage-model calls: chat, streaming, tool usenone, openrouterworkers-ai, anthropic, openai
authUsers and authentication: sign-up, sign-in, sessionsnone, supabaseclerk, auth.js
systemOneTyped probabilistic decisions: yes/no, one-of-N, ordered levelsnone, openrouter, typesafe—

Both tables are generated from the registries that enforce them, by fid context, and CI fails if they drift from the code.

How you extend it

A capability is a directory

There is no plugin API to learn and no CLI release to wait for. The layout is the manifest — fid derives the capability from the directory, and a third-party capability goes through the same derivation, the same conformance checks and the same lock entry as a built-in.

text
my-capability/
├── SKILL.md              ← the only required file: how an agent uses this
├── capability.toml       ← optional: description, guard rules, [config] seed,
│                           declared directories, required adapter contracts
├── declarations/         ← typed facts, installed at the path below this dir
│   └── messages/en.json
├── pipelines/
│   └── i18n.toml         ← name, executor, args, outputs
└── anything-else         ← a plain template file, copied in, gated by nothing

Scaffold one, then install it from anywhere — a directory, or a git repository pinned in fiducial.lock at the commit it resolved to:

sh
fid capability new my-sensor                    # scaffold the directory above

fid add capability my-sensor --from ./capabilities/my-sensor
fid add capability stripe    --from git:https://github.com/acme/fid-stripe#v1.2.0
fid capability check                            # conformance, once installed

One file is a complete capability. The failure mode for an extension system is ceremony, so capability.toml is optional and a capability without one takes its description from the first line of prose in its own skill.

The seven kinds, and why the difference is not cosmetic

KindIsExample
Declarationa typed fact, written once, inert — a file, a fiducial.toml block, or a directory the product fillshardware/product.toml, the [i18n] block, migrations/
Pipelinereads declarations, produces artifacts, gated by fid derive --checkpipelines/hardware.toml
Adaptera swappable vendor behind a fixed contractstorage = "r2"
Toolan external command the capability's work needs on PATH — declared, never installedrequires_tools = ["wrangler"]
Prerequisiteanother capability this one cannot work without — checked at install, not at first failurerequires_capabilities = ["i18n"]
Templatea plain file copied in, belonging to no pipelineapps/worker/wrangler.toml
Scoped templatea template under for/<capability>/, installed only alongside that capabilityfor/web-svelte/…/LocalePicker.svelte

The test for a declaration: could two different pipelines read this and both be correct? If yes it is a declaration; if it is one tool's config file it is a template.

The test for a scoped template: would this file be dead weight in a product that has this capability but not the other one? A React component in a SvelteKit app is the case it exists for. Install order does not matter — adding the target capability later back-fills what the others were holding.

Filing one as another is not a style mistake. A pipeline outside pipelines/ is installed and never runs; a pipelines/ file listed as a template is installed and never gated. fid capability check rejects both.

A pipeline is four lines

toml
name     = "enclosure"
executor = "fid-mesh"
args     = ["board/board.interface.json"]
outputs  = [
  "enclosure/case-base.stl",
  "enclosure/case-lid.stl",
  "enclosure/gasket.stl",
  "enclosure/case.glb",
]

outputs is what makes it gated: fid derive hashes each one into fiducial.lock, and fid derive --check fails when a hash no longer matches what the declaration implies.

inputs closes the other half. An output can match its hash while the file it was derived from has moved — a logo redrawn, a schema another tool rewrote — and nobody re-derived. Files listed in inputs (and those a built-in executor knows it reads, such as the SVGs a hardware/product.toml addresses) are hashed into the lock too, and --check names the one that moved.

Executors are shell and cargo-test — which need no platform change at all — plus the in-process ones (fid-validate, fid-mesh, fid-i18n, fid-brand, fid-thesis, fid-deploy, fid-identity, fid-adapters, fid-schema, fid-legal, fid-design, fid-protocol, fid-topology, fid-monitoring, fid-hardware). Reach for shell first; a new in-process executor is warranted only when the work is genuinely a Rust library call rather than a tool invocation.

A shell pipeline that runs node runs under Node's permission model: it may read its script's directory, its own pipelines/<name>.toml, its declared inputs and node_modules, and write only where its outputs go. A script that reads a file it does not declare fails naming that file, instead of producing an output whose input the lock never recorded.

fid-design is the clearest case of that line: it parses a declaration, runs OKLCH-to-sRGB conversion and WCAG contrast arithmetic over the palette, and fails the derive when a declared pair misses its minimum. Shelling out would mean shipping a script and a language runtime to do arithmetic the binary already can.

Adding a vendor to a contract

Implement the contract in crates/fiducial-adapters (and its TypeScript mirror in packages/adapters), then move the vendor from candidates to implementations in crates/fiducial-cli/src/adapter.rs. The table above and the error message a user sees both derive from that one move.

One place does need the new name: REAL_VENDORS in packages/adapters/src/generated-factory.test.js, which is the list of vendor selections CI actually compiles the generated factory for. A vendor missing from it is generated and never typechecked, so the suite names itself in that comment rather than leaving it to be discovered.

Deeper detail: docs/specs/2026-09-15-external-capabilities.md and docs/specs/2026-09-14-capability-taxonomy.md.

Documentation

New here? Start here explains what this is and why it is shaped that way, then Your first product takes you from nothing to a generated enclosure and a CI gate in about twenty minutes.

ReadFor
docs/guides/Step-by-step guides for humans and agents
AGENTS.mdWorking here as an agent — layout, rules, build commands
MISSION.mdWhy this exists. The tiebreaker for ambiguous decisions.
ARCHITECTURE.mdHow the layers fit together.
STACK.mdEvery technology choice, enumerated.
ROADMAP.mdWhat is intended, in order — and so what is next.
SHIPPED.mdWhat was built, phase by phase.
docs/protocol/The wire specification + conformance vectors.
docs/specs/Design decisions, append-only.

Each crate and package carries its own README — start with fiducial-cli if you want to build something, or fiducial-core if you want to see the spine.

Repository

firmware/ is a separate Cargo workspace (Embassy; RP2040 + STM32), and docs/ holds the specs, the protocol and the compatibility matrix. The two workspaces this repository builds:

text
fiducial/
├── crates/               15 members
│   ├── fiducial                 Declare each fact once. Derive every artifact from it.
│   ├── fiducial-adapters        Cross-platform adapter contracts for Fiducial — database, s…
│   ├── fiducial-cli             fid — the Fiducial platform CLI
│   ├── fiducial-core            no_std spine: IDs, time primitives, validation, state machi…
│   ├── fiducial-eda             no_std EDA pipeline types — the BoardInterface schema for b…
│   ├── fiducial-geometry        no_std geometry for Fiducial: points, tolerance profiles, c…
│   ├── fiducial-identity        no_std identity spine: one Principal across users, devices…
│   ├── fiducial-mesh            no_std case generation from a board outline: gasket-sealed…
│   ├── fiducial-model           no_std Fact, Decision and Pipeline contract types.
│   ├── fiducial-ota             no_std over-the-air firmware update protocol: signed manife…
│   ├── fiducial-protocol        no_std transport-agnostic protocol: framing, checksums, seq…
│   ├── fiducial-quantity        no_std typed quantities with tolerance algebra and assertions.
│   ├── fiducial-sim             Numerical simulation — ODE integration that runs native (wi…
│   ├── fiducial-tauri           Serial transport and device discovery for Fiducial Tauri apps.
│   └── fiducial-wasm            WASM bindings for fiducial-core — browser, edge, and Cloudf…
└── packages/             13 members
    ├── adapters                 Cross-platform adapter contracts for Fiducial — database, s…
    ├── advisor                  Advisory checks for Fiducial — typed judgments where determ…
    ├── board-schema             TypeScript types for board.interface.json — mirrors the Rus…
    ├── cli                      fid — the Fiducial platform CLI
    ├── fiducial                 Declare each fact once. Derive every artifact from it.
    ├── headless                 Framework-agnostic headless utilities for Fiducial — Result…

License

MIT — see LICENSE.

Product repos, domain logic, novel protocols and hardware designs are private; see IP-POLICY.md.

Contributions are welcome and need a sign-off — see CLA.md. It exists so the project keeps the option to relicense later: that option is destroyed silently by the first contribution merged without one, and cannot be recovered afterwards.

Parts

29
QtyValueFootprintReferences
12C_0603_1608MetricCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12
7R_0603_1608MetricResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R6, R7
2MountingHolefid:MountingHoleH1, H2
1Crystal_SMD_3225-4Pin_3.2x2.5mmCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD1
1QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mmPackage_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mmU1
1SENSOR-SMD_L3.0-W3.0-P1.00-BRlcsc:SENSOR-SMD_L3.0-W3.0-P1.00-BRU5
1SOIC-8_L5.3-W5.3-P1.27-LS8.0-BLlcsc:SOIC-8_L5.3-W5.3-P1.27-LS8.0-BLU3
1SOT-223-3_TabPin2Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1SOT-23-5Package_TO_SOT_SMD:SOT-23-5U4
1USB_C_Receptacle_HRO_TYPE-C-31-M-12Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

Similar boards

  • 2 layers52.3 × 10.5 mmStackLink, the printed circuit board in 3D

    StackLink

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    29 parts5.1kGPL-3.0
  • 2 layers56 × 20 mmHallEffectXY Endstop, the printed circuit board in 3D

    HallEffectXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    29 parts1.1kGPL-3.0
  • 2 layers50 × 23.2 mmAnalog, the printed circuit board in 3D

    Analog

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    29 parts1kGPL-3.0
  • 2 layers16.8 × 13.6 mmE Fidget Lite, the printed circuit board in 3D

    E Fidget Lite

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    29 parts915
  • 2 layers85 × 12.5 mmTERES PCB3-TOUCH BTN Rev.A, the printed circuit board in 3D

    TERES PCB3-TOUCH BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    29 parts578Apache-2.0
  • 2 layers33.7 × 97.8 mmHAN ESP TSS721, the printed circuit board in 3D

    HAN ESP TSS721

    UtilitechAS/amsreader-firmware

    ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

    29 parts470
  • 2 layers80 × 55 mmGB CARTPP XC, the printed circuit board in 3D

    GB CARTPP XC

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    29 parts379CC-BY-4.0
  • 2 layers55 × 58 mmProto ads bee mcu board, the printed circuit board in 3D

    Proto ads bee mcu board

    PantsForBirds/adsbee

    Open Source Embedded ADS-B Receiver

    29 parts344GPL-3.0

Questions

How big is the Generated PCB?

It measures 26 × 79 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Generated use?

29 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Generated KiCad files?

From the AleksaZCodes/fiducial repository on GitHub, at the commit this page was made from: the board is examples/sensor-stick/hardware/generated/board.kicad_pcb and its schematic examples/sensor-stick/hardware/generated/board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Generated design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).