Welcome to djs-core, a fully integrated documentation solution built for developers who want to build Discord bots with speed and type safety.

What is djs-core?

Djs-core is a framework for creating Discord bots with TypeScript. It uses a routing system inspired by frameworks like Nuxt or Next, leveraging a file system-based router to define your bot’s structure. Additionally, it automatically manages data flows that developers would otherwise need to handle manually.

Key Features

djs-core provides a comprehensive set of features designed to simplify Discord bot development:

  • File-based Routing System: Organize your bot structure using the file system, similar to modern frameworks like Nuxt or Next.js.
  • Automatic Handler Registration: Handlers are automatically discovered and registered based on your project structure.
  • Full TypeScript Support: Built with TypeScript for type-safe development and excellent IDE support.
  • Built on Discord.js: Leverages the power and reliability of the Discord.js library.
  • Multiple Interaction Types: Supports commands, events, buttons, modals, select menus, and context menus out of the box.
  • Auto Command Registration: Automatically registers slash commands on bot startup.
  • Type-Safe Interactions: Fully typed interactions with autocompletion for better developer experience.
  • Zero-Config Approach: Works out of the box with sensible defaults, no complex configuration required.
  • Native Database: Drizzle built in — db: config, client.db, and djs-core db CLI.
  • Plugin System: Third-party plugins via definePlugin; official DB plugins deprecated.

Next Steps

Ready to build your bot?

Get started

Follow our guide to get your bot up and running in minutes.