Ticket Relay
Discord support tickets, filed as GitHub issues.
Node.js 24 · TypeScript · Fastify · SQLite · Discord Interactions · GitHub Apps
Members submit tickets from a panel in Discord. Each ticket is routed to the right repository and filed by a GitHub App. Reporters never need a GitHub account.
Features
- Discord-native: members open tickets from a panel in your server and get a private confirmation with the issue link. No GitHub account needed.
- Admin console: guided setup, map apps to repos and labels, a tickets inbox with retry, link and close.
- Moderators: view-only by default; admins choose per person who can act on tickets or see verifications.
- Ticket types: members pick a type (e.g. Bug report, Feature request); each adds its GitHub label and a
[Bug]title prefix. - AI triage (optional): Claude flags priority, duplicates and spam on filed tickets, as suggestions or automatically. It runs in its own worker, so filing never depends on it.
- Contributor roles: a second panel where members sign in with GitHub and get a role based on their merged PRs or commits across all your apps, e.g. Junior Contributor at 1, Contributor at 10.
- Reliable: duplicate and rate-limit protection; never files the same issue twice.
- Secure: credentials stay on the server; stored tokens and ticket text are encrypted.
Screenshots
Overview: tickets needing attention, utility stats and the latest tickets.
Quick start
npm install
cp .env.example .env # PUBLIC_URL, ENCRYPTION_KEY
npm run dev # http://localhost:3000
Set DEV_LOGIN=true to use the console locally without Discord credentials.
Self-hosting
One host, PM2 and a TLS reverse proxy. No external database: state is a single SQLite file. Serverless platforms such as Vercel are not supported.
npm ci && npm run build
cp .env.example .env # PUBLIC_URL, ENCRYPTION_KEY, provider credentials
pm2 start ecosystem.config.cjs # web (1) + queue workers (2) + triage (1); migrations run on boot
pm2 save && pm2 startup
Then:
- Proxy HTTPS to port
3000(setHOST=127.0.0.1so the port isn't public). - Register the Discord application and the GitHub App: docs/PROVIDER_SETUP.md.
- Open
PUBLIC_URL, sign in with Discord and follow the setup steps.
Processes, operations, backups and scaling: docs/DEPLOYMENT.md.
Configuration
| Variable | Description |
|---|---|
DATABASE_PATH |
SQLite file (default ./data/ticket-relay.db) |
PUBLIC_URL |
Public HTTPS origin |
ENCRYPTION_KEY |
openssl rand -base64 32; keep it stable |
DISCORD_* |
APPLICATION_ID, PUBLIC_KEY, CLIENT_SECRET, BOT_TOKEN |
GITHUB_* |
APP_ID, APP_SLUG, CLIENT_ID, CLIENT_SECRET, optional WEBHOOK_SECRET |
GITHUB_APP_PRIVATE_KEY_FILE |
./secrets/sec.pem (git-ignored; see secrets/) |
PLATFORM_ADMIN_DISCORD_IDS |
Discord user IDs allowed to create workspaces |
Optional variables are listed in .env.example. Everything else is configured
in the console.
Scripts
| Command | |
|---|---|
npm run dev |
Dev server with reload |
npm run build · npm start |
Production build and run |
npm run start:worker |
Queue worker process |
npm run migrate |
Apply migrations (also runs on boot) |
npm run typecheck |
Type-check source and tests |
npm test |
Test suite (self-contained; uses a temporary SQLite file) |
Docs
- Provider setup: Discord application and GitHub App registration
- Deployment: runtime, scaling, retention, operations
- Architecture: ticket lifecycle, endpoints, schema, security
Scope
Not included: GitHub ↔ Discord comment sync, issue-status sync, attachments, private ticket channels.


