Developers
Self-hosting
Run the bot, API and website yourself.
Demon is a TypeScript monorepo: apps/bot, apps/api, apps/web and shared packages/core and packages/db.
npm install cp .env.example .env # fill in your Discord app values npm run commands:deploy # register slash commands npm run dev # API + bot + website
Without DATABASE_URL, an embedded PostgreSQL (PGlite) stores data in .data/. For production, use PostgreSQL and run the bot and API as separate processes. See DEPLOYMENT.md in the repository.
Add {PUBLIC_WEB_URL}/api/auth/callback as an OAuth2 redirect in the Developer Portal.