D-UI Monitor

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

  1. Sign up at https://sadapp.org/sign-up
  2. Go to /servers/add — fill hostname, IP, region
  3. Copy the generated Invitation Link and Key ID / Key Secret
  4. Run the Rust agent with --invitation-link on first boot
  5. On subsequent runs pass --key-id and --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