Documentation
API reference, Rust agent usage, and authentication guide for D-UI Monitor.
Architecture
Rust Agent (server host)
│ POST /api/v1/agent (invite token on first call)
▼
D-UI Monitor API (Next.js / sadapp.org)
│ persists to PostgreSQL via Prisma
▼
Dashboard /servers /servers/[hostname]Quick-start
- Sign up at https://sadapp.org/sign-up
- Go to /servers/add — fill hostname, IP, region
- Copy the generated Invitation Link and Key ID / Key Secret
- Run the Rust agent with
--invitation-linkon first boot - On subsequent runs pass
--key-idand--key-secret
Database schema (key models)
User id, email, password (bcrypt), emailVerified
Server id, hostname, ipAddress, location, barebone, ownerId
AgentKey id, keyId, secret (AES-256-GCM encrypted), serverId, revoked
AgentInvite id, token, createdById, serverId, used, expiresAt (7 days)
ServerMetric id, hostname, cpuUsage, memoryUsed, memoryTotal, raw JSON