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

@const_j/chatbi-plugin

v1.0.1

Published

将 LuciBI ChatBI 作为 OpenClaw 插件发布,提供:

Downloads

29

Readme

LuciBI ChatBI OpenClaw Plugin

将 LuciBI ChatBI 作为 OpenClaw 插件发布,提供:

  • 一个纯 JS 的 chatbi_query tool
  • 一个插件内置的 lucibi_chatbi_assistant skill
  • 基于 requesterSenderId 的发送者绑定和会话续聊

不再依赖 config.yamlhandler.pyrequestspyyaml

安装

在安装了 OpenClaw 的机器上,直接从本地路径安装插件:

openclaw plugins install /absolute/path/to/openclaw_chatbi_plugin

然后在 ~/.openclaw/openclaw.json 中启用并配置插件:

{
  plugins: {
    entries: {
      "lucibi-chatbi": {
        enabled: true,
        config: {
          baseUrl: "http://127.0.0.1:9000",
          timeoutMs: 120000,
          conversationIdleTimeoutMs: 1800000,
        },
      },
    },
  },
}

配置说明:

  • baseUrl: LuciBI 实例地址
  • timeoutMs: ChatBI HTTP 请求超时
  • conversationIdleTimeoutMs: ChatBI 会话空闲多久后自动开启新会话,默认 30 分钟

修改配置后重启 Gateway:

openclaw gateway restart

发布到 npm

仓库根目录提供了一键发布脚本:

OPENCLAW_CHATBI_NPM_TOKEN=<your-token>
./scripts/publish_openclaw_chatbi_plugin.sh

可选环境变量:

  • OPENCLAW_CHATBI_NPM_REGISTRY: 默认 https://registry.npmjs.org/
  • OPENCLAW_CHATBI_NPM_TAG: npm dist-tag,默认 latest
  • OPENCLAW_CHATBI_NPM_OTP: npm 账号开启发布 2FA 时使用的 6 位验证码

发布成功后,其他用户只需要让本机 npm 指向同一个 registry,然后直接安装:

openclaw plugins install @const_j/chatbi-plugin@<version>

使用

插件会提供 chatbi_query tool,并通过内置 lucibi_chatbi_assistant skill 指导模型调用它。

常见用法:

/chatbi:auth cbak_user_xxxxxxxxxx
/chatbi_auth cbak_user_xxxxxxxxxx
/chatbi auth cbak_user_xxxxxxxxxx
/chatbi 最近 30 天销售趋势
/chatbi:new 重新按新问题看一下本月销售额
/chatbi new 重新按新问题看一下本月销售额
/chat_new 重新按新问题看一下本月销售额
/chatbi:reset
/chatbi_reset
/chatbi:unauth
/chatbi_unauth
/chatbi unauth

也可以直接自然语言触发:

本月销售额是多少?
最近 30 天销售趋势是怎样的?
帮我解绑 ChatBI

绑定说明:

  • /chatbi:auth <auth_key>/chatbi:new <问题>/chatbi:reset/chatbi:unauth 是插件直接处理的快捷命令,不依赖 skill 命令名匹配
  • /chatbi <问题> 现在也优先走插件原生命令,这样 Telegram slash 查询会显示 typing indicator
  • Telegram 原生命令菜单只支持字母、数字和下划线,所以菜单里会显示 /chatbi_auth/chat_new/chatbi_reset/chatbi_unauth,不会显示带冒号的别名
  • 内置 skill 故意不再命名为 chatbi,避免和 Telegram 的 /chatbi 插件命令冲突
  • /chatbi auth <auth_key> 绑定的是当前 OpenClaw 发送者对应的 LuciBI 用户授权
  • 绑定成功后会像企业微信接入一样长期保持,不再依赖插件侧 access token / refresh token
  • 插件会自动使用当前发送者的 requesterSenderId 作为 external_subject
  • 查询时默认会按发送者维持 conversation_id/chatbi ... 和普通自然语言会共享同一个 ChatBI 会话
  • /chatbi:new <问题>/chat_new <问题>/chatbi new <问题> 或用户明确要求“重新开始/换个问题/忽略前文”时,会优先新建 ChatBI 会话
  • /chatbi:reset/chatbi_reset 会清空当前发送者绑定的 ChatBI 会话,但不会立即发起查询
  • 如果会话空闲超过 conversationIdleTimeoutMs,插件会自动开启新的 ChatBI 会话