How wasgto3/arklum works
Arklum is a self-hosted Discord bot dashboard: a browser uses the Node.js application to manage a bot and receive results through Socket.IO. The main workflow spans dashboard messaging and server-management requests, backend feature handlers, and Discord operations; separate branches cover direct messages, voice, bot settings, utilities, webhook and standalone-chat surfaces, and plugins. The README documents the overall browser/backend/Discord arrangement, while the source excerpts show specific module registration and calls. Some frontend wiring and unsampled feature internals are represented only at subsystem level.
Main entry points: bot.js Node application · session.js Socket session · shell.js Dashboard shell · chat.js Messages and voice
Components 31
Application Runtime
- Node application
bot.js
Browser Dashboard
- Dashboard shell
static/shell/shell.js - Socket session
static/core/session.js - Page router
static/core/router.js - Chat page
static/pages/chat.js - DM page
static/pages/dms.js - Management pages
static/pages/management.js - Bot settings
static/pages/bot.js - User settings
static/pages/settings.js - Utility page
static/pages/utility.js - Plugins page
static/pages/plugins.js - Voice controls
static/shell/voice.js
Discord Features
- Messages and voice
modules/chat.js - Direct messages
modules/dms.js - Guild operations
modules/commands/guild.js - Channel operations
modules/commands/channels.js - Bot presence
modules/status.js - Developer settings
modules/devportal.js - Bot utilities
modules/utility.js - Meme tools
modules/memes.js - Update controls
modules/updater.js
Extensions and Sites
- Plugin loader
plugins/loader.js - Plugin API v1
plugins/api.js - Plugin API v2
plugins/api_v2.js - Plugin marketplace
plugins/marketplace.js - Standalone chat site
modules/chatsite.js - Webhook studio
modules/webhooks_site.js
Other components
- Dashboard user
- Browser
- Discord
- Site visitor
Connections 48
- Dashboard user → Browser: uses
- Browser → Node application: HTTP dashboard
- Node application → Browser: Socket.IO
- Node application → Discord: bot integration
- Node application → Messages and voice: loads
bot.js - Node application → Direct messages: loads
bot.js - Node application → Guild operations: loads
bot.js - Node application → Channel operations: loads
bot.js - Node application → Bot presence: loads
bot.js - Node application → Developer settings: loads
bot.js - Node application → Bot utilities: loads
bot.js - Node application → Meme tools: loads
bot.js - Node application → Update controls: loads
bot.js - Node application → Plugin API v1: loads
bot.js - Node application → Plugin marketplace: loads
bot.js - Node application → Standalone chat site: loads
bot.js - Node application → Webhook studio: loads
bot.js - Browser → Dashboard shell: renders
- Dashboard shell → Page router: routes pages
- Dashboard shell → Socket session: communicates
- Socket session → Node application: Socket.IO requests
- Chat page → Socket session: requests data
- DM page → Socket session: requests data
- Management pages → Socket session: requests data
- Bot settings → Socket session: requests data
- User settings → Socket session: requests data
- Utility page → Socket session: requests data
- Plugins page → Socket session: requests data
- Voice controls → Socket session: voice controls
- Node application → Messages and voice: handles commands
modules/chat.js - Node application → Guild operations: dispatches commands
modules/commands/guild.js - Node application → Channel operations: dispatches commands
modules/commands/channels.js - Messages and voice → Discord: messages and voice
modules/chat.js - Direct messages → Discord: manages DMs
- Guild operations → Discord: manages guilds
modules/commands/guild.js - Channel operations → Discord: manages channels
modules/commands/channels.js - Developer settings → Discord: calls app API
modules/devportal.js - Bot utilities → Discord: performs utilities
- Bot presence → Discord: sets presence
- Meme tools → Discord: uses bot
- Update controls → Discord: bot updates
- Plugin marketplace → Plugin loader: loads installed plugins
plugins/marketplace.js - Plugin loader → Plugin API v1: uses API
plugins/loader.js - Plugin API v2 → Plugin API v1: bridges calls
plugins/api_v2.js - Site visitor → Standalone chat site: visits
- Site visitor → Webhook studio: visits
- Standalone chat site → Node application: uses bot services
modules/chatsite.js - Webhook studio → Node application: uses bot services
modules/webhooks_site.js