# CLAUDE.md — Ianitor Domi Ianitor is a reverse proxy built on Cloudflare's Pingora, with a small Domi CA, a web UI and an API. NixOS-native, with Caddy as a tested fallback. CPAL-1.0 (from 2026-11-23; 0.2.0 and earlier MPL-2.0); the web UI shows the Exhibit B credit (apps/web/src/lib/credit.ts). Plan, decisions and status: docs/ROADMAP.md — read it first. ## Layout crates/core config model, schema, compilers (Pingora runtime + Caddy JSON), CA (Ianitor's view of the shared crate domi-pki, pinned by tag). Pure: no I/O, no network. crates/edge Pingora data plane. Reads compiled config, serves traffic. Never decides policy. crates/control API, git routes repo, apply/rollback, share links, PKI flows. Loopback only. Never serves public traffic. apps/web Svelte 5 (runes, TypeScript strict). A client of the API; no logic. packages/ui shared dark Domi theme, murex palette. tests/diff same requests against Ianitor and Caddy, responses compared. tests/support shared test fixtures (test CA, upstreams, mock Authelia, clients); test-only. tests/fuzz cargo-fuzz targets. deploy/nixos NixOS module + VM tests. scripts version check, release pin, test layers 2 and 5 (conformance, bench), the Nix pin. Releases: docs/release.md. bench layer 5 results as data (CSV/JSON), layer 2 outputs. ## Commands cargo test --workspace # quote test counts per crate; an exit code alone is not green cargo run -p ianitor-control -- --dev pnpm --filter web dev # 127.0.0.1 only, never --host pnpm --filter web test:e2e # the web UI's flows in Edge on demo data, recorded -> target/e2e/videos (docs/fabrica.md) pnpm --filter web aula:shots # the Aula screenshots from the same suite -> target/e2e/aula; then `fabrica aula shots` node scripts/check-version.mjs X.Y.Z # Cargo.toml and both package.json carry the version scripts/conformance.sh # layer 2: h2spec + testssl.sh, Ianitor vs Caddy (nix develop .#ci) tests/fuzz/run.sh 60 # layer 3: cargo-fuzz, 60 s a target; crashes become regressions scripts/bench.sh