A Quilt reactive runtime for NVIDIA Jetson devices β edge ML, ROS2, vision, federation. The missing mid-tier in the Quilt federation story.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β quilt-jetson v0.1.0 β
β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ β
β β Cells β β Engine β β ROS2 β β Web UI β β
β β 8 kinds β β async β β bridge β β :8080 β β
β β + vision β β tokio β β (feature) β β axum+WS β β
β βββββββ¬βββββββ βββββββ¬βββββββ βββββββ¬βββββββ βββββββ¬βββββββ β
β β β β β β
β βββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββ΄βββββββ βββββββββββββββββββ β
β β Federation β β SQLite β β Vision β β
β β quilt:// URIs β β history β β TensorRT/ONNX β β
β βββββββββββββββββββ ββββββββββββββ βββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β² β²
β subscribes to / publishes to β uses
β β
ββββββββββββββ΄ββββββββββββ ββββββββββ΄ββββββββββ
β Other Quilt tiers β β ROS2 / MQTT / β
β (ESP32, Codespace, β β WS / serial / β
β Cloudflare, etc.) β β GPIO / I2C β
ββββββββββββββββββββββββββ ββββββββββββββββββββ
quilt-jetson is the mid-tier of the Quilt federation β the
runtime that lives on a Jetson Orin Nano, Orin NX, or AGX Orin
device. It runs the same reactive cell engine as every other Quilt
tier, with three Jetson-specific extensions:
- GPU-accelerated vision cells β
apicells withtensorrt://oronnx://endpoints that route to a vision evaluator running YOLOv8, ResNet, or any other ONNX/TensorRT model on the GPU. - ROS2 bridge β
sensorcells withsource: ros2:/topic:MsgTypesubscribe to ROS2 topics;iocells withport: ros2:/...publish to them. The bridge is pure-Rust viarclrsand feature-gated behind--features ros2. - Local persistence β every successful cell evaluation is recorded in a SQLite database. The web UI reads this back as time-series data; the federation client uses it to replay state after reconnects.
It also serves a local web UI on port 8080 with cell browser, live updates, history charts, and a YAML editor. From any browser on the local network you can see every cell in the sheet, every value, and every effect.
Quilt is a federation of runtimes on different hardware tiers, all
reading the same YAML sheet format and all talking to each other
over the quilt:// URI scheme. The three production tiers:
| Tier | Hardware | Use case | Repo |
|---|---|---|---|
| Edge micro | ESP32 (no_std) | Sensors, motors, tight loops | quilt-esp32 |
| Edge mid | Jetson (this repo) | Vision, sensor fusion, ROS2, ML | quilt-jetson (this) |
| Cloud | Cloudflare Workers | Public dashboards, audit, replay | quilt-cloudflare |
| Cloud | GitHub Codespace | Ephemeral dev environments | quilt-codespace |
The cell kinds are the same on every tier. A formula cell on an
ESP32, a Jetson, a Codespace, or a Cloudflare Worker is the same
shape. A quilt:// URI points at a cell on any tier, and the
federation layer routes the subscription.
A typical project uses three of the four. quilt-jetson is the
most commonly used tier for production deployments that involve
any kind of perception or sensor fusion.
# Download the latest release for Jetson (aarch64)
curl -L https://github.com/SuperInstance/quilt-jetson/releases/latest/download/quilt-jetson -o quilt-jetson
chmod +x quilt-jetson
sudo mv quilt-jetson /usr/local/bin/git clone https://github.com/SuperInstance/quilt-jetson
cd quilt-jetson
cargo build --release
# With ROS2 support
cargo build --release --features ros2
# With ONNX Runtime (real vision)
cargo build --release --features vision-onnx# 1. Get an example sheet
curl -L https://raw.githubusercontent.com/SuperInstance/quilt-jetson/master/examples/sensor-fusion.yaml -o sheet.yaml
# 2. (Optional) install the .deb for systemd integration
sudo dpkg -i quilt-jetson_*.deb
# 3. Start the server
quilt-jetson serve sheet.yaml --port 8080
# 4. Open the web UI
open http://jetson.local:8080
# 5. (Optional) push some simulated sensor values
quilt-jetson eval sheet.yaml position.xFor a real Jetson deployment:
# 1. Install OS-level dependencies
sudo apt-get update
sudo apt-get install -y \
build-essential \
pkg-config \
libssl-dev \
libsqlite3-dev \
libasound2-dev
# 2. (Optional) Install ROS2 Humble
sudo apt-get install -y ros-humble-desktop
# 3. Install Rust (if not already)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
# 4. Build with all features
git clone https://github.com/SuperInstance/quilt-jetson
cd quilt-jetson
cargo build --release --features all
# 5. Install
sudo cp target/aarch64-unknown-linux-gnu/release/quilt-jetson /usr/local/bin/
# 6. (Optional) install the systemd service
sudo cp scripts/quilt-jetson.service /etc/systemd/system/
sudo systemctl enable quilt-jetson
sudo systemctl start quilt-jetsonThe runtime has four major components:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β quilt-jetson (async tokio runtime) β
β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ β
β β Cells β β Engine β β Federation β β Web β β
β β 8 kinds β β get/set β β client β β axum :8080 β β
β β + vision β β call/push β β quilt:// β β static UI β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ β
β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββ β
β β ROS2 β β SQLite β β Vision β β
β β bridge β β history β β TensorRT β β
β β (feature) β β β β + ONNX β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The cell engine is fully async (tokio) β different from the
sync engine in quilt-rust. This is because the Jetson tier is
about long-running tasks: ROS2 subscribers, vision inference,
WebSocket federation. An async engine just is.
See docs/architecture.md for the
complete picture.
| Component | Status | Description |
|---|---|---|
| Cell engine | β | 8 cell kinds, async, with propagation |
| Vision cells | β | tensorrt:// and onnx:// URL schemes |
| ROS2 bridge | π§ | Stub by default; real with --features ros2 |
| Web UI | β | Dark theme, cell browser, history, YAML edit |
| Federation | β | quilt:// URI scheme, HTTP + WebSocket |
| SQLite history | β | Async, append-only, indexed |
| MQTT pub/sub | π§ | rumqttc dep included; basic implementation |
| WebSocket I/O | β | tokio-tungstenite based |
| Serial / GPIO | π§ | Adapter pattern; bring your own |
Legend: β = production-ready Β· π§ = stub (works, but bring your own for the specific hardware).
quilt-jetson is one of 16 repos in the Quilt ecosystem. Every
repo reads the same YAML sheet format and the same cell kinds.
| # | Repo | Tier | Description |
|---|---|---|---|
| 1 | quilt | Core | The canonical TypeScript implementation + landing pages |
| 2 | quilt-rust | Core | Pure-Rust sync engine, 8 cell kinds, MCP, CLI, TUI |
| 3 | quilt-live | Runtime | Single-file browser runtime (146 tests) |
| 4 | quilt-esp32 | Edge micro | no_std Rust for ESP32 microcontrollers |
| 5 | quilt-codespace | Cloud | GitHub Codespace template β HTTP + TUI + dashboard |
| 6 | quilt-cloudflare | Edge cloud | Cloudflare Workers runtime |
| 7 | quilt-mesh | Federation | CRDT-based peer-to-peer mesh |
| 8 | quilt-agent | AI | LLM agent sheets |
| 9 | quilt-ai | AI | AI cell evaluators |
| 10 | quilt-vision | AI | Vision cell evaluators (browser-side) |
| 11 | quilt-time | Tooling | Time-travel debugger for sheets |
| 12 | quilt-vault | Tooling | WebCrypto-encrypted cell state |
| 13 | quilt-zk | Tooling | Zero-knowledge circuits for cell proofs |
| 14 | quilt-flow | Tooling | Visual graph editor |
| 15 | quilt-evolve | AI | Self-evolving sheets (genetic programming) |
| 16 | quilt-jetson (this) | Edge mid | NVIDIA Jetson runtime β vision, ROS2, federation |
Four working examples ship in examples/:
Subscribe to /cmd_vel, smooth it, publish to /cmd_vel_smoothed.
cargo run --features ros2 -- serve examples/ros2-publisher.yamlCamera β YOLOv8 β log detections.
cargo run --features vision-onnx -- serve examples/vision-detect.yamlIMU + GPS β position estimate.
cargo run -- serve examples/sensor-fusion.yamlSubscribe to quilt://esp32-fleet/boat#sensor.heading from a
remote ESP32 and expose it as a local cell.
cargo run -- serve examples/federation-subscribe.yamluse quilt_jetson::{QuiltEngine, EngineConfig, parse_sheet, CallerContext};
use std::sync::Arc;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Load a sheet from YAML.
let yaml = std::fs::read_to_string("sheet.yaml")?;
let sheet = parse_sheet(&yaml)?;
// Build an engine.
let engine = QuiltEngine::with_sheet(
"my-engine",
EngineConfig::default(),
sheet,
)?;
// Evaluate a cell.
let value = engine.get("vision.obstacles", CallerContext::default()).await?;
println!("obstacles = {}", value.data);
// Push a sensor value.
engine.push("imu.x", serde_json::json!({"x": 0.0})).await?;
// Subscribe to changes.
let mut sub = engine.subscribe("vision.count")?;
while let Ok(event) = sub.rx.recv().await {
println!("vision.count changed: {:?}", event.new_value.data);
}
Ok(())
}quilt-jetson reuses the eight standard Quilt cell kinds. They're
described in detail in
quilt-rust/packages/core/src/types.rs.
| Kind | Semantics | Example |
|---|---|---|
value |
Static data, no computation | value: 42 |
formula |
Pure reactive computation, deps auto-tracked | expr: "=imu.x + imu.y" |
api |
External endpoint / model call | endpoint: tensorrt:///opt/yolo.engine |
program |
Stateful, side-effectful rhai script | code: "return await runtime.get('a')" |
sensor |
Streaming input, push-based | source: imu:i2c-1:0x68 |
listener |
Delta-triggered execution | watch: [imu.x], condition: ..., action: ... |
router |
Caller-aware policy, routes the call elsewhere | rules: [{when: 'caller.row == "boat-1"', route: ...}] |
io |
Bidirectional port | port: mqtt://broker/topic, direction: out |
The web UI is on port 8080. Open http://jetson.local:8080 from
any browser on the local network.
Features:
- Cell browser β all cells in the current sheet, with live values and status.
- Cell detail β click a cell to see its value, history, and effects.
- YAML editor β paste a sheet YAML and load it; the UI re-renders.
- WebSocket live updates β values update in real time as cells are re-evaluated.
- History charts β for any cell with a SQLite-backed history, the UI shows the last N values.
The dark theme matches the other Quilt landing pages (quilt, quilt-rust, quilt-codespace, etc).
quiltβ the canonical TypeScript implementation and landing pages.quilt-rustβ the pure-Rust sync engine. Most of the cell semantics inquilt-jetsonmirrorquilt-rust; the main difference is that this crate is async.quilt-esp32β the no_std tier. The same cell kinds, the same sheet format.quilt-cloudflareβ the Workers tier.quilt-codespaceβ the Codespace tier.@quilt/sdkβ the TypeScript SDK withresolveCellandsubscribeCell.
| Document | Description |
|---|---|
| docs/architecture.md | How quilt-jetson fits in the federation tier model |
| docs/ros2-bridge.md | ROS2 integration details |
| docs/vision-cells.md | TensorRT/ONNX cell evaluators |
| docs/federation.md | How to subscribe to remote cells |
- Fork the repo.
- Create a feature branch:
git checkout -b feature/my-thing. - Make your change. Add tests. Update the relevant doc.
- Run the test suite:
cargo test --all-features. - Run clippy:
cargo clippy --all-targets --all-features -- -D warnings. - Run format:
cargo fmt --all. - Open a pull request. The CI will run the same checks; the review will be from @SuperInstance (per CODEOWNERS).
When adding a new cell evaluator, please:
- Document the cell kind semantics in a
//!module comment. - Add at least three unit tests (happy path, error path, edge case).
- Add at least one integration test in
tests/cells.rs. - If it talks to hardware, feature-gate it.
This repo follows the engineering standards from
QUILT_ENGINEERING_BAR.md
in the main quilt repo. The key elements:
- L1 Hygiene β Apache-2.0 LICENSE, README, CHANGELOG (this README serves as the changelog for v0.1.0), .gitignore, .editorconfig, CODEOWNERS, SECURITY.md.
- L2 Build β
Cargo.tomlwith pinned versions, single command to build (cargo build) and test (cargo test). - L3 Test β 100+ unit tests across 11 modules, 4 integration
test files. CI runs on every push to
masterand on every pull request that targetsmaster. Pushes to other branches deliberately do not trigger a run: the pull request is the gate, not the topic branch. - L4 Quality β heavy header comments,
cargo clippy -D warnings, no unsafe, public API documented. - L5 Docs β this README plus 4 docs/ files with diagrams.
- L6 Release β
.github/workflows/release.ymlcross-compiles to aarch64 and builds a Debian package. - L7 Operations β dependabot, issue templates (via .github/).
- L8 Supply chain β known exposure, not yet fixed. All 31
uses:references across this repository's 3 workflow files float on a tag or branch (@v7,@stable,@1.75), and 0 of 31 are pinned to a commit SHA. A tag can be moved, so what a workflow executes is not fixed by the commit the workflow lives in. Pin each workflow as you touch it; a bulk conversion to SHAs nobody has audited would be a worse trade than an honest floating tag.
The badge at the top of this file is not a label. It is
actions/workflows/ci.yml/badge.svg?branch=master, which asks
GitHub for the status of the most recent ci run on master and
renders whatever that status actually is β including failing, and
including no status before anything has run.
What ci does, and what it does not:
| Trigger | Runs? |
|---|---|
Push to master |
yes |
Pull request targeting master |
yes |
| Push to any other branch | no |
| Pull request targeting another branch | no |
The last two rows are deliberate. The pull request is the gate; a
topic branch is not. The six jobs are Lint & format, Test (ubuntu-latest, x86_64), Cross-compile (aarch64-unknown-linux-gnu), Coverage, Validate example sheets
and MSRV (1.75). All six run on ubuntu-latest; there is no
macOS or Windows runner in this matrix.
Until the four CI defects were fixed, ci.yml listened for main
while this repository's default branch is master and no main
branch has ever existed. It therefore matched no push and no pull
request, and had produced zero runs in its entire history β
while the badge above it claimed CI was passing. A branch filter
that cannot match is a green badge over zero jobs.
.github/workflows/ci-trigger-guard.yml now asserts that on every
push and every pull request: it reads default_branch and the
branch list from the GitHub API, and fails if any workflow's
branches: filter omits the default branch, names a branch that
does not exist without declaring it in .github/branch-aliases.txt,
or if the badge above stops pointing at ci.yml on the default
branch. Its own triggers carry no branch filter, on purpose β a
guard that shares the filter it guards cannot fire when that filter
breaks. tests/ci_triggers.rs asserts the same invariants offline,
so they are checked by cargo test as well.
The guard fails closed: if the API cannot be reached it exits non-zero rather than reporting success, because a guard that passes because it could not measure is the same defect wearing a different hat.
Apache 2.0 β see LICENSE.
Quilt β a spreadsheet where every cell is a live, addressable capability. The grid is the runtime. This repo is the mid-tier runtime that runs on a Jetson.