DiscordProxy

Mirror your Discord server into a queryable database. REST API, WebSocket streaming, full history backfill.

API Docs GitHub
📥

Full History Backfill

Fetches complete message history on first run. Every message, reaction, and edit stored in PostgreSQL.

Real-Time Capture

Messages, edits, deletes, and reactions captured as they happen via Discord gateway events.

🔍

REST API

Paginated, filterable endpoints with auto-generated OpenAPI/Swagger docs. Filter by channel, author, date range.

📡

WebSocket Stream

Real-time event push with channel filtering and reconnection support via last_event_id.

🔒

Token Auth

SHA-256 hashed API tokens with admin and regular roles. Swagger UI Authorize button built in.

🐳

Docker Deploy

Single docker compose up. Local dev or production with Traefik + automatic HTTPS via Cloudflare DNS.

API Endpoints

GET /api/messages List messages
GET /api/messages/{id} Get message
GET /api/channels List channels
GET /api/users List users
GET /api/messages/{id}/reactions List reactions
POST /api/tokens Create token
DEL /api/tokens/{id} Revoke token
WS /api/ws Live events