Skip to content

Architecture

The Django API is the control plane for tenancy, configuration, billing, imports, and dashboard routes. Each instance gets a dedicated Discord runtime container. Celery workers handle rendering, imports, and deployment operations. Redis coordinates queues and Postgres stores shared control-plane data plus isolated tenant data.

The runtime fetches a signed instance payload, loads enabled modules, builds database-driven slash commands, and hot-reloads configuration. Internal runtime requests use a per-instance X-Internal-Token.