Discord plugin framework for TypeScript and JavaScript.
Built on discord.js.
Installation · Quick start · Features · Documentation · Releases
DISON (Discord Integration and Service Orchestration Network) runs independent plugins on a single Discord bot. It provides an object-oriented SDK, lifecycle management, dependency resolution and runtime utilities while delegating Discord operations to discord.js.
Requires Node.js 22.12+ (22.x) with npm, and Git.
macOS / Linux · installer.sh
git clone https://github.com/aiden6791/dison.git
cd dison
./installer.sh
./dison.sh start --mockWindows (Command Prompt) · installer.cmd
git clone https://github.com/aiden6791/dison.git
cd dison
installer.cmd
dison.cmd start --mockThe installer builds the runtime with locked dependencies and initializes .runtime/. No global pnpm installation or Discord token is required for mock mode.
Download source · Installation guide
Source installation is available now. Public npm packages and a stable release are not yet published.
Create .runtime/plugins/Hello.ts:
/**
* @name Hello
* @version 1.0.0
* @api 1
* @permission discord.message.reply
*/
import { EmbedBuilder } from "discord.js";
import { Event, EventType, Listener, PluginBase } from "@dison/sdk";
import type { MessageCreateEvent } from "@dison/sdk";
class HelloListener extends Listener {
@Event({ type: EventType.MessageCreate })
public async onMessage(event: MessageCreateEvent): Promise<void> {
const message = event.getMessage();
if (message.getContent() === "!hello") {
await message.reply({
embeds: [new EmbedBuilder().setTitle("Hello from DISON")],
});
}
}
}
export default class Main extends PluginBase {
protected onEnable(): void {
this.getEventManager().registerListener(new HelloListener());
}
}Merge the requested permission into .runtime/dison.yml:
pluginGrants:
Hello:
- discord.message.replyConfigure DISCORD_TOKEN in .runtime/.env and enable the Guilds, GuildMessages and MessageContent intents in the runtime configuration. Enable the privileged Message Content intent in the Discord developer portal. Stop the mock runtime, then start without --mock and send !hello in the test guild. Live Discord verification remains pending; use a dedicated test bot.
Runtime commands
Run these with ./dison.sh on macOS/Linux or dison.cmd on Windows.
| Command | Description |
|---|---|
start |
Start the runtime in foreground |
status |
Inspect Core and plugin states |
plugin list |
List plugins |
plugin reload |
Reload the installed plugin set |
stop |
Stop the runtime |
- Native discord.js integration — use its builders, constants and types with the DISON SDK and scoped Discord adapter.
- Plugin API — lifecycle hooks, typed events, commands, slash options and interaction handlers.
- Plugin utilities — scheduler, nested JSON/YAML configuration, SQLite/PostgreSQL key-value storage with atomic conditional transactions, services and logging.
- Plugin distribution — single-file scripts, compiled directories and portable
.disonarchives. - Runtime management — independent workers, dependency ordering, reload, bounded recovery and explicit permissions.
SDK reference · Storage · Discord adapter · Native Discord example · Interactive panel example
flowchart TD
Discord["Discord"] <--> Core["DISON Core / discord.js"]
CLI["CLI"] --> Core
Core <-->|IPC| A["Plugin A"]
Core <-->|IPC| B["Plugin B"]
Core <-->|IPC| C["Plugin C"]
One Core owns the bot connection. Plugins run in separate workers and communicate through validated IPC. The adapter supports a defined subset of Discord operations, not unrestricted Client access. Process isolation is not a security sandbox; install only trusted plugins.
| Guide | Description |
|---|---|
| Installation | Setup and troubleshooting |
| SDK | Plugin development |
| Plugin formats | Metadata and packaging |
| CLI | Runtime and development commands |
| Architecture | Runtime design |
| Security | Capabilities and trust model |
| Roadmap | Development and release scope |
Contributing and building from source
pnpm install --frozen-lockfile
pnpm build
pnpm typecheck
pnpm lint
pnpm test
pnpm format:checkThe repository uses pnpm. Packed consumer installations are tested with both npm and pnpm. See development conventions and website source. The website includes a searchable API reference in English, Japanese, Korean, Russian and Spanish. Run pnpm website:dev and open the API reference from the navigation.
Developed by NEWLINES
