How mriverodorta/homelab-inventory works
Homelab Inventory is a self-hosted visual workbench for documenting equipment and connections, checking hardware compatibility, and monitoring hosts. The main workflow is to edit a project’s canvas, send domain-engine commands through the browser API to the server, and persist the resulting inventory state. Separate product areas cover catalog reuse, Systems views and Agents, alerts, sharing, authentication, and backups. The README establishes these capabilities; source excerpts verify the engine request path. Several other subsystem links are documented capabilities rather than inspected call paths.
Main entry points: client.ts Engine client · engine-routes.mjs Engine routes · app.tsx Workbench app · workbench-canvas.tsx Canvas editor
Components 22
Workbench
- Workbench app
src/app/app.tsx - Canvas editor
src/components/canvas/workbench-canvas.tsx - Systems views
server/systems/routes.mjs
Domain Engine
- Engine provider
src/components/domain-engine-provider.tsx - Runtime manager
src/engine/canvas-runtime-manager.ts - Engine client
src/engine/client.ts - Engine API
src/engine/api.ts - WASM worker
src/workers/domain-engine.worker.ts - Engine protocol
shared/engine/protocol.mjs - Engine routes
server/engine-routes.mjs - Command service
server/engine/command-service.mjs
Inventory And Catalog
- Hardware validation
shared/compatibility/index.mjs - Inventory lifecycle
server/db/inventory-lifecycle.mjs - Persistent state
server/persistence/sqlite-store.ts - Hardware Registry
server/registry/snapshot-service.mjs
Monitoring
- Host Agents
server/agent-routes.mjs - Host telemetry
server/telemetry/repository.mjs - Incident alerts
server/notifications/incident-manager.mjs
Operations
- View sharing
server/sharing/routes.mjs - Authentication
server/auth/auth-service.mjs - Backup and restore
server/backup/backup-service.mjs
Other components
- Lab operator
Connections 22
- Lab operator → Workbench app: uses
README.md - Workbench app → Canvas editor: edits
- Lab operator → Systems views: reviews hosts
README.md - Canvas editor → Engine provider: uses runtime
- Engine provider → Runtime manager: configures
src/components/domain-engine-provider.tsx - Runtime manager → Engine client: creates
src/components/domain-engine-provider.tsx - Engine client → Engine API: sends requests
src/components/domain-engine-provider.tsx - Engine API → Engine routes: HTTP commands
server/engine-routes.mjs - Engine routes → Command service: executes
server/engine-routes.mjs - Engine routes → Engine protocol: decodes requests
server/engine-routes.mjs - WASM worker → Engine protocol: decodes snapshots
src/workers/domain-engine.worker.ts - Engine client → WASM worker: dispatches work
- Lab operator → Hardware validation: checks fit
README.md - Lab operator → Inventory lifecycle: manages equipment
README.md - Lab operator → Hardware Registry: reuses definitions
README.md - Lab operator → Host Agents: enrolls hosts
README.md - Host Agents → Host telemetry: reports measurements
- Lab operator → Incident alerts: configures alerts
README.md - Lab operator → View sharing: publishes views
README.md - Lab operator → Authentication: signs in
README.md - Lab operator → Backup and restore: backs up state
README.md - Inventory lifecycle → Persistent state: persists changes