Library / SDK
koishijs/koishi avatar
koishijs/koishi

Koishi: a cross-platform chatbot framework for TypeScript developers

Cross-platform chatbot framework made with love

6,354 stars366 forksTypeScriptMIT

At a glance

What is it?
Koishi is an MIT-licensed TypeScript chatbot framework built as a Yarn monorepo whose workspaces separate core packages, plugins, adapters and database integrations, with documentation at koishi.chat.
Who is it for?
Adopt Koishi if you want one TypeScript codebase driving several chat platforms and you are willing to work inside its plugin and adapter model. Do not adopt it if you need a single-platform bot with no console, or if you expect the repository README to be your onboarding document: the documentation lives at koishi.chat instead.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 45 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • koishijs/koishi6,354 ★ · +134
Star history
Repository2026-09-232026-11-22
koishijs/koishi6.2k6.4k

134 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem Koishi solves: one bot, many chat platforms

A bot that has to live on QQ, Telegram, Discord and Lark usually becomes four bots. Each platform has its own SDK, its own event shapes, its own way of expressing a message with an image and a button. Koishi's answer is to put an adapter layer underneath a single framework, so the bot logic you write does not care which platform delivered the event.

The target user is not someone who wants a hosted bot service. It is a developer, or a technically comfortable operator, who wants to run the process themselves and extend it. The root package.json also has a console workspace (@root/console), alongside docs, dialogue, minato, satori and yakumo workspace shortcuts.

How the framework is put together

The repository is a Yarn 4 monorepo. The root package.json declares workspaces covering docs, external/*, external/*/external/*, external/*/packages/*, external/upstream/adapter/*, external/upstream/database/*, external/upstream/server/*, packages/*, plugins/*, plugins/common/* and plugins/database/*. That layout tells you where the boundaries are: adapters, databases and server components are separate workspace groups from the core packages and the plugins. A platform integration is a package, not a branch inside the core.

The build and test tooling is also visible at the root. The scripts run through yakumo, with compile mapped to yakumo esbuild and build to yakumo esbuild && yakumo tsc. Tests run through yakumo mocha with esbuild-register and yml-register loaded, and coverage is produced by c8 in json, html or text form.

TypeScript is not a wrapper here. TypeScript is the repository's primary language, and the full build runs yakumo tsc for type checking.

Installing Koishi and getting a first bot running

The project's homepage and documentation are at koishi.chat. The repository itself is a private workspace root: package.json sets "private": true and names the root package @root/koishi, so cloning it and running the root scripts is how you build the framework, not how you install a bot.

If you are working on the framework itself rather than a bot, the root scripts are the entry point. This installs dependencies and compiles the packages:

bash
yarn install
yarn compile

The compile script maps to yakumo esbuild, and the full build adds type checking:

bash
yarn build

To run the test suite the way the repository defines it:

bash
yarn test

That runs yakumo mocha with esbuild-register and yml-register and exits afterwards. For a real bot rather than a framework build, start from the documentation at koishi.chat.

The plugin market is the ecosystem bet

Plugins are first-class in the repository layout: plugins/*, plugins/common/* and plugins/database/* are workspace groups of their own, separate from the core packages, and the root package.json carries a console workspace (@root/console). Which plugins exist, and how they are installed, is documented at koishi.chat rather than in this repository's root files.

Where Koishi is the wrong choice

If your bot targets exactly one platform and will never target a second, the adapter abstraction is overhead you pay for nothing. A thin wrapper over that platform's own SDK will be smaller, easier to debug when the platform changes its API, and will not require you to learn Koishi's event and session model first.

There is also a documentation boundary worth naming. The root README is only a pointer to packages/koishi/readme.md, and the project's documentation lives at koishi.chat, so operational guidance has to come from there rather than from the monorepo scripts.

Alternatives and how they differ

The obvious comparison is a general bot framework built around a single platform's SDK, or a chat-ops library that treats each platform as a separate integration you wire up yourself. The difference is where the abstraction sits. Those tools typically give you a platform client and let you write handlers against that platform's native event objects. Koishi inserts an adapter layer and a session model between the platform and your handler, so the same handler can serve QQ and Discord, and a plugin written for one platform's adapter can be reused with another.

That trade is real in both directions. You gain portability and a shared plugin ecosystem. You lose direct access to platform-specific features unless the adapter exposes them, and you take on the framework's release cycle as your own. If a platform ships a new capability, you wait for the adapter rather than calling it yourself. For a bot that needs one unusual platform feature, a direct SDK integration will get there faster.

Maintenance, upgrades and the MIT licence

The repository is not archived, and the last push was on 2026-10-08, which is recent enough that the project is being worked on. The most recent releases listed are 4.18.11 on 2026-03-09, 4.18.10 on 2026-03-08 and 4.18.9 on 2026-03-08. The gap between the March releases and the October push suggests active development between releases rather than a steady release cadence.

Upgrade cost is concentrated in the plugin ecosystem. Core packages move together in a monorepo with a shared version bump script, but community plugins version independently. Before upgrading a production bot, check which plugins you depend on and whether they have moved.

The licence is MIT, stated in the repository metadata and the root package.json, and a LICENSE file sits at the root. MIT is permissive: you can use, modify and redistribute the code, including commercially, provided the licence and copyright notice are preserved. That is the extent of what the repository states; it is not legal advice, and if you are embedding Koishi in a product with its own licensing constraints, have counsel read the LICENSE file rather than this paragraph.

Editorial conclusion

Adopt Koishi if you want one TypeScript codebase driving several chat platforms and you are willing to work inside its plugin and adapter model. Do not adopt it if you need a single-platform bot with no console, or if you expect the repository README to be your onboarding document: the documentation lives at koishi.chat instead. Before committing, read that documentation, confirm an adapter for your target platform exists, and check the release history on npm for the cadence you are buying into.

Frequently asked questions

What is Koishi and who is it for?

Koishi is a cross-platform chatbot framework written in TypeScript and released under the MIT licence. It targets developers and technically comfortable operators who want one bot running across chat platforms, with core packages, plugins and adapters kept in separate workspaces of one monorepo.

How do I install Koishi?

The project's documentation lives at koishi.chat. The repository itself is a private Yarn workspace root, so yarn install followed by yarn compile builds the framework from source rather than installing a bot.

Which chat platforms does Koishi support?

The repository describes Koishi as a cross-platform chatbot framework and keeps adapters in their own workspace group (external/upstream/adapter/*); the list of available adapters is documented at koishi.chat.

Is Koishi still maintained?

The repository is not archived and the last push was on 2026-10-08. The most recent releases listed are 4.18.11 on 2026-03-09, 4.18.10 and 4.18.9 on 2026-03-08.

Official sources

  1. koishijs/koishi on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/koishijs-koishi.svg)](https://hysenlabs.com/projects/koishijs-koishi)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/koishijs-koishi.svg)](https://hysenlabs.com/projects/koishijs-koishi)

Was this useful?