Subsystemsยถ

A guided tour of each component of splanc: what it does, its key files, and the Bazel targets that build, run, or test it. Start with the architecture overview for how they fit together.

๐Ÿ“ฑ The PWA

web/ โ€” the phone capture app, the effects editor, and the virtual LED wall. Framework-free TypeScript on Vite.

The PWA (web/)
๐Ÿ”Œ The firmware

firmware/ โ€” no_std Rust crates behind a C++/Arduino app on the ESP32-C6: LEDs, a heapless Wi-Fi/BLE stack, the effects VM, and checked memory budgets.

The firmware (firmware/)
โœจ The effects compiler

fx_compiler/ โ€” a single-pass compiler from the effects language to .fxb bytecode, native and wasm.

The effects compiler (fx_compiler/)
๐Ÿงฎ The solver

solver/ โ€” the visual-inertial solver in Rust: native on the Pi, wasm in a phone Web Worker.

The solver (solver/)
๐Ÿ—บ๏ธ Reconstruction

pi/reconstruction/ โ€” triangulation + bundle adjustment that turns detections into a per-LED 3D map.

Reconstruction (pi/reconstruction/)
๐Ÿ”— The wire protocol

shared/protocol/ โ€” JSON schemas + protobuf as the single source of truth for every cross-module message; zero-copy pbview views on the firmware.

The wire protocol (shared/protocol/)
๐Ÿงช The simulator

shared/simulator/ โ€” synthetic ground truth: fixtures, camera walks, and degradations for hardware-free testing.

The simulator (shared/simulator/)
๐Ÿง  The agent bridge

agent/ โ€” an MCP server + CLI hub that lets an AI agent drive every player on the LAN as one room. Shipped with each firmware release; served at splanc.io.

The agent bridge (agent/)
๐Ÿค– HITL & tooling

pi/hitl/ + tools/ โ€” the hardware-in-the-loop rigs and the host-side dev, flash, and bench helpers.

HITL & tooling (pi/hitl/, tools/)