npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-adapter-nextchat

v0.4.6

Published

NextChat 适配器 - 通过 NextChat 界面与 Koishi 对话。支持 OpenAI API 格式。

Downloads

1,255

Readme

koishi-plugin-adapter-nextchat

npm

NextChat 适配器 - 通过 NextChat 界面与 Koishi 对话

使用说明

模型配置说明

插件默认提供三种模型:

  • 支持所有消息类型(文本、图片、音频、视频、文件)
  • 仅支持文本消息
  • 支持文本和图片消息

你可以根据需要自定义模型配置,控制不同模型渲染的消息类型。

Session 设置

  • 机器人 ID:默认为 nextchat
  • 机器人昵称:默认为 nextchat
  • 用户和机器人的头像:设置头像 URL,用户和机器人都将使用此头像

3. 访问 NextChat

启用插件后,有两种方式访问 NextChat:

方式一:通过控制台入口(推荐)

在 Koishi 控制台侧边栏找到 NextChat 页面,点击即可打开配置好的 NextChat 界面。

方式二:手动配置

在 NextChat 中手动配置以下信息:

  1. 接口地址http://你的服务器地址:端口/nextchat/v1/chat/completions

    • 例如:http://127.0.0.1:5140/nextchat/v1/chat/completions
  2. API Key:使用配置中的任意一个 API Key

    • 例如:sk-fXzPq8rGjK5tLwMhN7bVcFdE2uIaYxS1oQp0iUjH6yT3eW
  3. 模型名称:选择配置中的模型

4. 开始对话

配置完成后,在 NextChat 中发送消息,即可与 Koishi 机器人对话。

权限说明

  • 权限等级范围:0-5
  • 权限等级越高,用户在 Koishi 中的权限越高
  • 使用不同的 API Key 登录,会自动同步对应的权限等级

注意事项

  1. 确保 Koishi 服务器可以被 NextChat 访问
  2. 如果使用 HTTPS,需要配置有效的 SSL 证书
  3. API Key 请妥善保管,不要泄露给他人
  4. 建议为不同用户配置不同的 API Key 和权限等级

许可证

MIT License

相关链接