Developer builds open-source CLI scaffold tool for Discord.js bots powered by Bun

A developer has released djstoolkit, an open-source command-line scaffolding tool designed to eliminate repetitive setup work when building Discord bots with Discord.js. The tool runs on Bun and offers an interactive prompt that lets developers opt into infrastructure components such as Prisma with PostgreSQL and BullMQ with Redis, without adding unwanted code. A key feature is a stateful prefix router that replaces error-prone customId string handling, automatically extracting session variables when users interact with buttons or modals. The toolkit also ships with zero-config TypeScript and Biome for formatting and linting, and includes an in-memory store with TTL support to manage session data safely. The developer positioned djstoolkit as a Bun-native alternative to existing frameworks like CommandKit and Sapphire, emphasising a lower learning curve through file-based handler definitions instead of class-heavy patterns.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in