← ALL PROJECTS

Omega Discord

01 / PROJECT OVERVIEW

What is Omega Discord?

A full-stack Discord server management platform within the Omega Ecosystem, combining a centralized dashboard, moderation tools, automation, and bots into one unified system.

The platform brings server administration into a shared workspace, connecting a web dashboard, application APIs, and dedicated Discord bots. Instead of treating each bot as an isolated tool, it gives configuration, access, and module readiness a common context.

Each Discord server is represented by a tenant. Owners configure the server and its modules, while staff access is resolved through tenant membership, roles, and permissions. The frontend re-authorizes the selected project before entering its workspace. Authentication, onboarding, and the dashboard shell are implemented; individual business pages remain future work.

Type
Full-Stack Platform
Ecosystem
Omega Ecosystem
Focus
Discord Community Management

02 / KEY FEATURES

Built for community management.

01

Centralized Dashboard

Discord sign-in, explicit project selection, registration, owner setup, and a responsive dashboard shell. The foundation is implemented; business pages remain a separate next step.

02

Moderation & Management

Spring services and dedicated bots handle moderation commands, staff workflows, and role changes, with tenant configuration and readiness checks at the module boundary.

03

Automation & Integrations

HTTP APIs connect the dashboard and backend. RabbitMQ carries selected bot commands, while bots report events and retrieve configuration through backend HTTP endpoints.

04

Discord Bot Ecosystem

Separate Node.js bots cover moderation, management, reports, appeals, gate, and economy, connecting Discord events and actions to shared backend configuration.

03 / ARCHITECTURE

How the system works.

Browser / FrontendReact · TypeScriptSpring Boot APIApplication logic · tenant accessExpress OAuthDiscord sign-in · sessionsPostgreSQLPlatform data · session recordsRedisTransitional report stateRabbitMQSelected commandsDiscord BotsSeparate Node.js applicationsDiscord APIOAuth · guilds · roles · actionsREST APIsOAuth / sessionsCommandsBrowser / FrontendReact · TypeScriptSpring Boot APIApplication logic · tenant accessExpress OAuthDiscord sign-in · sessionsPostgreSQLPlatform data · session recordsRedisTransitional report stateRabbitMQSelected commandsDiscord BotsSeparate Node.js applicationsDiscord APIOAuth · guilds · roles · actions
The browser frontend calls Spring Boot for platform and tenant APIs, and Express separately for Discord OAuth and sessions. Both services access PostgreSQL. Spring uses Redis for transitional report state and publishes selected commands through RabbitMQ. Bots consume those commands, call Spring over HTTP for configuration and events, and interact with Discord API. Express also calls Discord API during OAuth.
  • Frontend → Spring: platform and tenant REST APIs.
  • Frontend → Express: OAuth callback, session checks, and sign-out.
  • Spring → PostgreSQL: platform, tenant, and session data.
  • Express → PostgreSQL: user, guild snapshot, and session records.
  • Spring → Redis: transitional report state; PostgreSQL remains the source of truth.
  • Spring → RabbitMQ: tenant-aware commands for selected modules.
  • RabbitMQ → Bots: command consumers.
  • Bots → Spring over HTTP: configuration, health, and result events.
  • Bots → Discord API: guild, role, and moderation operations.
  • Express → Discord API: OAuth code exchange, user identity, and guild snapshots.

Two backend boundaries

Express issues and revokes platform sessions. Spring validates those sessions and resolves application and tenant access. Both use the same PostgreSQL session records.

Messaging alongside HTTP

RabbitMQ separates selected commands from bot execution. Configuration, health reports, and result events also travel over HTTP; messaging is not the only bot integration path.

Purpose-specific state

PostgreSQL holds platform data. Redis is used by the reports service as a transition cache, rather than as a universal store for the platform.

04 / TECHNOLOGY STACK

Built with.

Frontend
ReactTypeScriptViteReact RouterTailwind CSSshadcn/uiTanStack Query
Backend & Discord
JavaSpring BootNode.jsExpressREST APIsWebSocketDiscord APIdiscord.jsDiscord OAuth2
Data & Messaging
PostgreSQLRedisRabbitMQ
Infrastructure
Docker

Container build definitions are present for the frontend and Spring API. This describes build configuration, not a verified production deployment.

05 / ENGINEERING DECISIONS

Behind the decisions.

01

Separating Authentication and Application Logic

Challenge
Discord identity and server administration have different responsibilities. Completing an OAuth exchange does not establish which project a person may enter, which staff actions they can perform, or whether a module is ready. A browser session therefore needs an application authorization step beyond successful sign-in.
Approach
Express handles the Discord callback, exchanges the authorization code, synchronizes identity and guild snapshots, and issues a platform-session JWT. It also provides session checks and sign-out. Spring owns platform and tenant APIs, validates the session against PostgreSQL token records, and resolves project access. The frontend uses separate OAuth and application API boundaries rather than sending every request to one backend.
Trade-offs
This separates responsibilities, but it leaves an integration contract to maintain. The services must agree on token validation, session records, callback routing, and the shared database. A valid OAuth response is not permission to bypass Spring authorization. These are properties of the implementation, rather than evidence that the entire deployment has been audited.
02

Tenant-Aware Authorization

Challenge
A user can belong to more than one Discord community, with different roles and module access in each. Retaining a previously selected project in the browser is insufficient: changing a route or restoring a session must not silently reuse authorization for another tenant.
Approach
The frontend re-authorizes project activation through Spring and checks that returned authorization matches the target tenant. Its shared policy evaluates tenant identity, owner capability, staff groups, explicit permissions, and module readiness. On the backend, PlatformService resolves membership and permissions, while TenantAccessInterceptor establishes tenant context for scoped routes and applies lifecycle and module readiness checks. ProjectReadinessService and ModuleReadinessService consider configuration, subscription state, bot installation, and recent health reports.
Trade-offs
Revalidation and readiness checks add requests and make access depend on current backend state. They also require care around expired sessions, stale workers, and setup routes that must remain available while a project is incomplete. The code establishes explicit checks and recovery paths; it does not, by itself, prove complete tenant isolation across every endpoint or query.
03

Asynchronous Bot Communication

Challenge
An application request and a Discord action run in different processes. A moderation command must carry enough context for the receiving bot to identify the intended community and configuration, while failures need an explicit outcome rather than an assumption that publication means completion.
Approach
Spring publishes selected commands through RabbitMQ exchanges and queues. The moderation publisher attaches message, tenant, guild, bot, module, and creation metadata. Consumers validate the command envelope, fetch tenant configuration over HTTP, and verify that the guild configuration matches the tenant before executing Discord actions. The moderation and management consumers acknowledge successful work, report result events to the backend, and reject failed messages without immediate requeue.
Trade-offs
Separating publication from execution introduces a delay between request and result, along with another service to operate. HTTP configuration and event calls remain part of the processing path. A durable queue and an acknowledgement do not establish exactly-once execution or a complete retry strategy. Delivery recovery, idempotency, and failure handling still need end-to-end validation.

06 / DEVELOPMENT ROADMAP

What's next for Omega.

A look at the project's evolution and upcoming milestones.

  1. Dashboard & Module Workspaces

    Planned

    Build the business pages behind the existing navigation, add module interfaces, and continue frontend/backend integration. These remain future work in the frontend implementation report.

  2. Backend Modernization & Security

    Planned

    A planned modernization cycle covering an updated Java LTS and Spring Boot, dependency maintenance, backend refactoring, security hardening, tenant isolation tests, and observability.