koishi-plugin-dataview is a plugin for the Koishi chatbot framework, providing a web-based console interface to view and interact with various database tables directly within the Koishi Console. It leverages Koishi's existing database connectivity to present data in a structured, browsable format, enhancing debugging and administrative capabilities. The current stable version is 2.7.8. Koishi plugins generally follow the release cadence of the Koishi core framework, with frequent updates to ensure compatibility and introduce new features. Its key differentiator is its seamless integration into the Koishi Console, offering a unified management experience for bot operations and underlying data, which is crucial for complex bot applications needing direct data inspection without external tools, simplifying bot administration and data inspection.
npm install koishi-plugin-dataviewVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up a minimal Koishi application, load the Koishi Console, and then integrate the DataView plugin to inspect database tables via the web interface. It uses an in-memory database for quick demonstration.
Ensure `koishi-plugin-dataview` version is compatible with your `koishi` and `@koishijs/plugin-console` versions. Refer to the plugin's `package.json` for peer dependency ranges.
Add `app.plugin(Console)` to your Koishi application initialization script before loading `DataViewPlugin` and ensure `@koishijs/plugin-console` is installed.
Configure Koishi with a persistent database protocol (e.g., `mysql`, `sqlite`, `mongo`) in your `App` configuration to view and manage your actual application data effectively.
Run `npm install @koishijs/plugin-console` or `yarn add @koishijs/plugin-console`.
Upgrade or downgrade your `koishi` package to a compatible version as specified in `koishi-plugin-dataview`'s `package.json` peer dependencies, or update the plugin.
Ensure `app.plugin(Console)` is called before `app.plugin(DataViewPlugin)` in your application entry file.