
StackLink
gusmanb/logicanalyzer
24 channel, 100Msps logic analyzer hardware and software

Declare each fact once. Derive every artifact from it.
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.
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.
In a cross-domain product the same fact gets written down many times:
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.
Three ideas stacked, and each one exists to make the one above it cheap.
┌───────────────────────────────┐
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 transportsLogic 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.
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, freshnessDeclare the product once, in hardware/product.toml: its outline, its parts,
and what each pin connects to (an excerpt):
[[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 —
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.
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.
| Capability | Contributes | Install |
|---|---|---|
adapters | declares adapters; 1 pipeline(s); seeds a fiducial.toml block | fid add capability adapters |
brand | declares brand; 2 pipeline(s); 2 template file(s); seeds a fiducial.toml block | fid add capability brand |
cms | declares cms; 1 pipeline(s); 6 template file(s); seeds a fiducial.toml block | fid add capability cms |
content | declares content.toml, content/posts/en/hello.md; 1 pipeline(s); 2 template file(s) | fid add capability content |
deploy | declares deploy; 1 pipeline(s); seeds a fiducial.toml block | fid add capability deploy |
design | declares design-system.md; 1 pipeline(s); 4 template file(s) | fid add capability design |
eda | declares board/board.interface.json; 2 pipeline(s); 1 template file(s) | fid add capability eda |
firmware-rp2040 | 11 template file(s); guard rules | fid add capability firmware-rp2040 |
firmware-stm32 | 10 template file(s); guard rules | fid add capability firmware-stm32 |
hardware | declares hardware/outline.svg, hardware/product.toml; 1 pipeline(s); 12 template file(s) | fid add capability hardware |
i18n | declares i18n, messages/en.json, messages/sr.json; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml block | fid add capability i18n |
identity | declares identity; 1 pipeline(s); seeds a fiducial.toml block | fid add capability identity |
legal | declares legal; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml block | fid add capability legal |
migrations | declares migrations; 1 pipeline(s) | fid add capability migrations |
monitoring | declares monitoring.toml; 1 pipeline(s) | fid add capability monitoring |
press | declares 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 block | fid add capability press |
protocol | declares protocol.toml; 1 pipeline(s) | fid add capability protocol |
realtime | a skill | fid add capability realtime |
research | declares paper; seeds a fiducial.toml block | fid add capability research |
seo | declares seo; 1 pipeline(s); 2 template file(s); seeds a fiducial.toml block | fid add capability seo |
tauri | 5 template file(s); guard rules | fid add capability tauri |
topology | declares topology.toml; 1 pipeline(s) | fid add capability topology |
web-next | 13 template file(s); guard rules | fid add capability web-next |
web-svelte | 11 template file(s); guard rules | fid add capability web-svelte |
worker-cloudflare | 1 template file(s); guard rules | fid add capability worker-cloudflare |
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.
| Contract | For | Selectable today | Planned |
|---|---|---|---|
database | Relational storage: queries, migrations, transactions | none, d1, supabase | neon, postgres |
storage | Object storage: put, get, signed URLs | none, r2, supabase-storage | s3 |
deploy | Where the product ships and how a release is promoted | none, cloudflare | vercel, fly |
email | Transactional email: send, template, verify a domain | none, resend | ses, cloudflare-email |
newsletter | Subscriber list management: subscribe, unsubscribe, status | none, resend | — |
errors | Error tracking and diagnostics | none | sentry, workers-analytics |
botProtection | Bot / abuse challenge verification | none, turnstile | recaptcha, hcaptcha |
queue | Asynchronous job/message queue (producer side) | none, cloudflare-queues | sqs |
ai | Language-model calls: chat, streaming, tool use | none, openrouter | workers-ai, anthropic, openai |
auth | Users and authentication: sign-up, sign-in, sessions | none, supabase | clerk, auth.js |
systemOne | Typed probabilistic decisions: yes/no, one-of-N, ordered levels | none, openrouter, typesafe | — |
Both tables are generated from the registries that enforce them, by
fid context, and CI fails if they drift from the code.
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.
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 nothingScaffold one, then install it from anywhere — a directory, or a git repository
pinned in fiducial.lock at the commit it resolved to:
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 installedOne 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.
| Kind | Is | Example |
|---|---|---|
| Declaration | a typed fact, written once, inert — a file, a fiducial.toml block, or a directory the product fills | hardware/product.toml, the [i18n] block, migrations/ |
| Pipeline | reads declarations, produces artifacts, gated by fid derive --check | pipelines/hardware.toml |
| Adapter | a swappable vendor behind a fixed contract | storage = "r2" |
| Tool | an external command the capability's work needs on PATH — declared, never installed | requires_tools = ["wrangler"] |
| Prerequisite | another capability this one cannot work without — checked at install, not at first failure | requires_capabilities = ["i18n"] |
| Template | a plain file copied in, belonging to no pipeline | apps/worker/wrangler.toml |
| Scoped template | a template under for/<capability>/, installed only alongside that capability | for/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.
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.
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.
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.
| Read | For |
|---|---|
| docs/guides/ | Step-by-step guides for humans and agents |
AGENTS.md | Working here as an agent — layout, rules, build commands |
MISSION.md | Why this exists. The tiebreaker for ambiguous decisions. |
ARCHITECTURE.md | How the layers fit together. |
STACK.md | Every technology choice, enumerated. |
ROADMAP.md | What is intended, in order — and so what is next. |
SHIPPED.md | What 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.
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:
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…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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | C_0603_1608Metric | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12 |
| 7 | R_0603_1608Metric | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4, R5, R6, R7 |
| 2 | MountingHole | fid:MountingHole | H1, H2 |
| 1 | Crystal_SMD_3225-4Pin_3.2x2.5mm | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D1 |
| 1 | QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm | Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm | U1 |
| 1 | SENSOR-SMD_L3.0-W3.0-P1.00-BR | lcsc:SENSOR-SMD_L3.0-W3.0-P1.00-BR | U5 |
| 1 | SOIC-8_L5.3-W5.3-P1.27-LS8.0-BL | lcsc:SOIC-8_L5.3-W5.3-P1.27-LS8.0-BL | U3 |
| 1 | SOT-223-3_TabPin2 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U2 |
| 1 | SOT-23-5 | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | USB_C_Receptacle_HRO_TYPE-C-31-M-12 | Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J1 |

gusmanb/logicanalyzer
24 channel, 100Msps logic analyzer hardware and software

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

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

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

OLIMEX/DIY-LAPTOP
Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

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


It measures 26 × 79 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).