Examples
Every example is a real, runnable haw.toml in the repo under
examples/. Clone it (or copy
the manifest), then haw sync and explore. The domain examples compose real public
upstream repos, so haw sync needs network; a few build steps use Docker (noted per
example).
Start with quickstart, then jump to whichever domain matches your fleet.
Learn-by-doing
| Example | What it shows |
|---|---|
| quickstart | Two octocat repos + a stack — the whole sync → status → lock → verify loop (the course walks it). |
| haw-hello | A tiny plugin — the haw <name> → haw-<name> contract in ~20 lines. |
| governance | [plugins] lifecycle hooks — SBOM / provenance / gate wired to phases. |
By domain
| Example | Domain | What it shows |
|---|---|---|
| microservices | Backend | 4 services + a shared proto/lib; a feature branched, PR’d, and landed together in dependency order. |
| ml-platform | ML / data | Model + data-pipeline + serving-infra pinned as one reproducible baseline, with stacks + an overlay. |
| automotive | Embedded / AUTOSAR | ARXML config + shared HAL + two ECU apps, cross-toolchain builds, [plugins] misra + aspice. |
| automotive-pinned | Embedded | A fully SHA-pinned automotive fleet — the reproducibility/audit baseline. |
| embedded-bsp | Embedded | A shared BSP/HAL reused across ECU stacks via overlays. |
| embedded-real | Embedded | Five real upstreams (CoreMark, cJSON, Monocypher, libcanard, Mbed-TLS) — all build with one haw build -j4 (validated). |
| rpi-pico | Embedded / firmware | Two real Raspberry Pi Pico (RP2040) firmwares (embassy blinky + rp-hal) cross-compiled to Cortex-M0+ with Rust’s built-in thumbv6m-none-eabi — no ARM toolchain — plus cJSON (ctest 19/19). Build+test validated; all three have active GitHub Actions CI. |
| devops-infra | DevOps / Infra | Three real upstreams — terraform-aws-vpc (init+validate), Prometheus helm-charts (helm lint), a Dockerfile app (docker build+hadolint) — build+test 3/3 (validated). |
| ml-ai | ML / AI | Real from-source LLM runtime — llama.cpp compiled to llama-cli + nanoGPT parse-check, build+test 2/2 (validated). |
| mobile | Mobile | App+SDK pinned in lockstep — OkHttp SDK builds+tests for real via a JDK-21 Docker image; the Now-in-Android app half is a pattern (needs Android SDK). |
Real build & emulation recipes
For copy-paste build/test wiring to real toolchains — Docker cross-compile
(Cortex-M4), FreeRTOS booted under QEMU, and patterns for EB tresos / Vector / Green
Hills / IAR / Tasking / Zephyr / Renode — see Integration recipes.