| Filename | Latest commit message | Latest commit date |
|---|---|---|
#437 (multi-step progress on rebuild_queue entries — closed) ×2: in tabs.js current-step comment + in docs/web-ui.md prose referencing the phase annotation. #501 (PR — merged for #437) ×1: paired with #437 in the same tabs.js current-step comment. #575 (X button to cancel pending builds — closed) ×2: in tabs.js cancel-form comment + in docs/web-ui.md cancel-button prose. #436 (route approval execution through rebuild_queue — closed) ×1 in docs/web-ui.md: scrubbed the parenthetical "; #436" next to the approval source-chip description (small freebie since I was editing that paragraph anyway). The approval-as-source-chip is the implementation of #436; the cookie was just history. Pre-scanned docs for matching cookies; caught all 3 doc cookies in the same PR. |
||
| .. | ||
| packages | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
hyperhive frontend
npm workspaces project for the hyperhive browser-facing assets:
packages/shared/— shared modules used by both surfaces (terminal pane, Catppuccin palette + body typography).packages/dashboard/— the hive-c0re dashboard SPA.packages/agent/— the per-container web UI (default agent page, stats, screen).
Build
npm install # one-off; uses the checked-in package-lock.json
npm run build # builds every workspace into packages/*/dist/
The Rust binaries serve packages/dashboard/dist/ and
packages/agent/dist/ via tower_http::ServeDir at runtime; the
build derivation is wired up in nix/modules/frontend.nix. Per-agent
additions are layered on top of the default agent dist via the
hyperhive.frontend.extraFiles option in agent.nix.
Why npm + esbuild
- Hermetic: dependencies vendored via the checked-in lockfile;
buildNpmPackagein nix uses it as the source-of-truth so the output is reproducible without network access at build time. - esbuild: vanilla-JS bundler, no framework runtime overhead.
Each workspace's
build.mjsis ~30 lines. - Single-PR migration: see issue #273 for the design proposal and the four-commit shape (npm scaffold → nix derivations → container plumbing → Rust cutover).