Admin Dashboard
Essential web-based control plane for SimpleNS onboarding, plugin management, API keys, live settings, file storage, and monitoring.
Overview
The Admin Dashboard (dashboard/, default port 3002) is an essential component of SimpleNS. It serves as the control plane for first-launch setup, plugin installation, provider credentials, channel routing, scoped API keys, live operational settings, file storage, and notification troubleshooting.
Default URL: http://localhost:3002
First-Launch Setup & Authentication
SimpleNS no longer stores admin credentials in .env variables.
- First-Launch Setup (
/setup): When no admin account exists in MongoDB, visiting the Dashboard redirects you to/setup. Create your admin username and password (POST /api/auth/setup), which are salted and hashed in MongoDB. - Guided Onboarding Tour: Immediately after setup, the Dashboard guides you through installing your first plugin, configuring provider credentials, setting channel routing, and generating an API key.
- Sign In (
/login): Subsequent visits use/loginwith cookie-backed JWT sessions (JWT_SECRET, minimum 32 characters in.env).
Security Note
JWT_SECRET in .env must be at least 32 characters long. Auth endpoints (/api/auth/*) are protected by a strict Redis-backed IP rate limiter (authRateLimiter).
Dashboard Pages & Features
Dashboard Home (/dashboard)
Real-time health overview of your notification system:
- Stats Grid: Total notifications, delivery rate, active queues (pending/processing), and alerts/failed counts.
- Channel Cards: Metrics per active channel (Email, SMS, WhatsApp, Mock, etc.).
- Recent Activity: Live feed of the latest notification events.
Plugins, Providers & Routing (/plugins)
Manage your entire delivery stack without restarting services:
- Plugin Catalog & Lifecycle: Browse, install, change versions, or uninstall plugins from npm (
GET /api/plugins/catalog). - Custom npm Registry & Scope Auth: Configure private npm registries or scoped tokens (
NpmAuthService). - Provider Configuration: Add multiple provider instances with encrypted credentials and per-provider rate limits.
- Channel Routing: Set default and fallback providers per channel. Changes are saved in MongoDB and hot-reloaded across all API, worker, and processor instances via Redis Pub/Sub.
API Keys (/keys)
Create, inspect, and revoke scoped API keys (POST /api/keys) for your client applications instead of sharing a single static NS_API_KEY.
- Keys are scoped by permission (e.g.,
notificationscope for sending notifications and uploading attachments). - Keys are displayed once at creation and stored securely hashed.
Operational Settings (/settings)
Tune system behavior live with zero restarts (persisted in MongoDB and broadcast via Redis Pub/Sub DynamicConfigService):
- Worker & Outbox: Poll intervals, batch sizes, claim timeouts.
- Retry & Idempotency: Max retry counts, backoff, idempotency TTL.
- Delayed & Recovery: Poll intervals, stuck thresholds, retention cleanup windows.
- Attachments: Global
max_file_size(1 KB–500 MB, default100 MB) andmax_file_count(1–50, default10). - API & Rate Limits: Batch request limits and Redis-backed IP rate limiter thresholds (
generalRateLimiter&authRateLimiter).
File Storage (/storage)
Configure object storage for File Attachments:
- Add MinIO / S3-compatible storage providers (
endPoint,port,useSSL,accessKey,secretKey,bucket,region). - Test connections before saving and Activate one active storage provider at a time.
Send & Payload Studio (/send, /payload-studio)
- Send (
/send): Visually compose and dispatch test notifications—including an automatic file attachment uploader whenever the chosen provider supports attachments. - Payload Studio (
/payload-studio): Interactively generate exact JSON request schemas for Single or Batch requests based on your installed plugins.
Templates (/templates, /templates/editor)
Create, edit, and test reusable notification templates with normalized variable extraction and live preview. See Notification Templates.
Events Explorer (/events, /events/[id])
Browse and filter all notification events by status, channel, provider, or Request/Recipient ID.
- Click into any event (
/events/[id]) to view its full JSON payload, delivery timeline, provider response, and attached file metadata & download links.
Failed Events (/failed)
Troubleshoot and recover failed deliveries:
- Edit & Requeue: Edit the payload or recipient of a failed notification and requeue it directly from the UI (
edit-failed-notification). - Bulk Retry: Select and retry up to 100 failed notifications at once.
System Alerts & Admin Alert Channels (/alerts, /admin-alerts)
- System Alerts (
/alerts): Inspect and resolve Ghost Deliveries, Stuck Processing, and Orphaned Pending notifications (single or bulk resolution). - Admin Alert Channels (
/admin-alerts): Configure external alert destinations (Discord, Telegram) with encrypted credentials and connection testing.
Analytics (/analytics)
Track delivery trends, channel breakdowns, and failure patterns over time.
Troubleshooting
Login / Setup Issues
- Ensure
JWT_SECRET(32+ characters) is set consistently in.env. - Ensure
CORS_ALLOWED_ORIGINSincludes your Dashboard URL (e.g.,http://localhost:3002). - If you hit
429 Too Many Requestson/loginor/setup, wait for theauthRateLimiterwindow to reset (or adjust it in/settingsonce signed in). - If running behind a reverse proxy (Nginx/Traefik), set
TRUST_PROXYto the proxy hop count (e.g.,1) or trusted IP/CIDR—do not setTRUST_PROXY=true.
No Data / Stats
- Verify
MONGO_URIandREDIS_URLmatch between the API server and Dashboard. - Check container logs:
docker compose logs dashboard api.
Docs