Engineering
A production Discord ticket and support platform: discord.js bot service, Next.js dashboard, and shared MongoDB datastore.
The system is split into two deployable services that share one MongoDB database.
Only the technologies actually used in this repository.
Local development setup and repository layout.
npm install && npm run dev — requires a MongoDB connection string, Discord OAuth credentials, and NextAuth configuration.app/ (routes), lib/ (data + i18n), components/ (UI), middleware.ts (edge protection).lib/kriol-i18n.ts, lib/pages-i18n.ts, and components/language-provider.tsx.Only endpoints that exist in this codebase.
GET /health → { ok, ready }; GET /ping → pong; GET / → HTML status page.POST /api/ticket/send-panel and GET /api/ticket/:guildId/resources for panel publishing and resource lookups.app/api/*): session-authenticated Next.js handlers for Discord OAuth, guild/ticket management, panel sync, transcripts, uploads, and user profile.Persistence and external services.
tickets, ticketpanels, ticketevents, ticketmessages, ticketsettings, tickettranscripts, siteuploads (website); bot Mongoose models map to the same logical stores.discordRequest in lib/discord-api.ts), OAuth2 (/api/login/discord), webhooks for panel messages, and the bot invite URL.cloudinary SDK) and local upload helpers for ticket images/transcripts.How the pieces run in production.
GET /health on the bot, GET /api/auth/session on the website, and the dashboard ticket panel flow end-to-end.Get help in the support server. Open support server