koishi-plugin-database-console is a Koishi plugin designed to extend the Koishi Console with a graphical user interface for managing data stored via Minato, Koishi's universal database abstraction layer. It enables bot administrators to view and potentially manipulate their bot's underlying data directly within the Koishi web interface, abstracting away the need for external database management tools. Currently at version 0.2.3, this plugin operates within the active Koishi ecosystem, which generally sees frequent minor updates and periodic major version releases. Its primary differentiator is the seamless integration into the existing Koishi Console, offering a centralized management experience for chatbot operations and data. This allows for easier debugging, data inspection, and simplified administration, especially for those less familiar with direct database interaction.
npm install koishi-plugin-database-consoleVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to apply the koishi-plugin-database-console within a Koishi application and shows basic interaction with Koishi's Minato database layer. It assumes an existing Koishi project with a database configured.
Refer to the Koishi official documentation and the plugin's GitHub repository for specific migration guides or updated versions. Ensure all peer dependencies match the required Koishi ecosystem versions.
Ensure `@koishijs/plugin-console` is installed and enabled in your Koishi configuration. Access the Koishi console through your browser, usually at `http://localhost:8080` by default.
Verify that your `minato` and database driver versions satisfy the peer dependency requirements of `koishi` and `koishi-plugin-database-console`. Update dependencies if necessary.
Update your `@koishijs/plugin-console` package to match the required version using `npm install @koishijs/plugin-console@^5.29.4` or `yarn add @koishijs/plugin-console@^5.29.4`.
Ensure the package is installed: `npm install koishi-plugin-database-console` or `yarn add koishi-plugin-database-console`. Verify the import statement is `import { apply } from 'koishi-plugin-database-console'`.Add `@koishijs/plugin-console` to your Koishi configuration file (e.g., `koishi.yml` or `koishi.config.ts`) and ensure it loads before `koishi-plugin-database-console` if there's an explicit ordering. Example in `koishi.config.ts`: `ctx.plugin(require('@koishijs/plugin-console'));`