Admin Dashboard
A React SPA served at / providing a visual interface for all administrative operations.
Dashboard
- Stat cards: Schemas, Total Records, Users, Files, Storage Used, Connected LLMs, Agents Created, Server Uptime, Server Status
- Schema Overview table: model name, table name, record count per model
- Connected LLMs table: provider name, request count, tokens in, tokens out, key status
Database Schemas
- View all defined models with their field names, types, and constraints
- Create a new model via a field builder UI (add field name + type pairs)
- Attempting to create a model with an existing name returns a conflict error
- Delete a model (routes deactivate immediately; underlying data table is preserved)
User Management
- List all registered users: email, display name, role, creation date
- Admin actions on user accounts
File Browser
- Browse all files (admins see all; users see their own)
- Preview images inline
- Download any file
- Delete files (removes from disk and database)
AI Integration
Providers tab: Enable/disable providers, enter API keys (masked after save), set default model per provider.
Playground tab:
- Generate mode: prompt + provider/model/system/temp/maxTokens controls, token display after response
- Chat mode: multi-turn conversation with message history
Agents tab:
- List all agents with name, provider, model, tools
- Create agent form: name, description, provider, model, system prompt, tool checkboxes, temperature, max tokens, max iterations
- Edit existing agents
- Delete agents
- Run agents interactively: enter a task, see reasoning steps in real time, view final output
API Docs tab: Built-in reference for all AI and agent endpoints.
Server Logs
- In-memory ring buffer of structured log entries
- Filter by level (
info,warn,error,debug) - Timestamps and log messages displayed in a table
Settings
Editable via admin panel — writes to .env:
| Variable | Description |
|---|---|
JWT_SECRET | Access token signing secret |
JWT_REFRESH_SECRET | Refresh token signing secret |
ROTIFEX_PORT | Server port |
ROTIFEX_HOST | Server bind host |
ROTIFEX_CORS_ORIGIN | Allowed CORS origin(s) |
ROTIFEX_RATE_LIMIT_MAX | Max requests per time window |
ROTIFEX_LOG_LEVEL | Log verbosity |
ROTIFEX_STORAGE_MAX_FILE_SIZE_MB | Max upload size in MB |
ROTIFEX_STORAGE_SIGNED_URL_SECRET | HMAC secret for signed URLs |