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

openclaw-napcat-plugin-plus

v1.0.2

Published

QQ 聊天通道插件 for OpenClaw,基于 NapCat (OneBot 11)

Readme

OpenClaw NapCat Plugin

OpenClaw Plugin

QQ 聊天通道插件 for OpenClaw,基于 NapCat (OneBot 11) 实现。部署完毕后,可通过 QQ 与 OpenClaw 对话、下达指令。

功能介绍

  • 消息收发:接收私聊与群组消息,支持文本、图片等媒体收发,群聊可配置「仅 @ 时回复」或全量处理。
  • 会话路由:群聊/私聊 sessionKey 路由,可配置接收用户白名单(allowUsers),与 OpenClaw 消息路由无缝对接。
  • NapCat Action:通过 action:<接口名> 调用 NapCat 接口,涵盖好友列表/申请/备注、群列表/成员/禁言/踢人/群名片、文件上传下载、流式文件、群申请/邀请审批、状态/版本/OCR 等。
  • 入站媒体:入站图片/语音/视频解析为多模态上下文(如 MediaPathImageContexts),供模型使用;支持媒体代理与语音发送(WAV)。
  • 日志与审计:好友申请、群申请/邀请、Notice 事件可写日志,便于审批与风控。

完整说明见 docs/usage.mddocs/actions.md

安装

从 npm 安装(推荐):

openclaw plugins install openclaw-napcat-plugin-plus

或从 GitHub Releases 下载 tgz 后执行 openclaw plugins install ./openclaw-napcat-plugin-plus-1.0.1.tgz

详细步骤见 docs/install.md

配置与使用方法

openclaw.json 中配置 channels.napcatplugins.entries.napcat。传输方式二选一:HTTP(推荐)或 WebSocket

HTTP(推荐)

发消息每次对 NapCat 的 HTTP 端口发起请求,不依赖长连接,定时任务(cron)触发时投递稳定

OpenClaw 配置示例:

{
  "channels": {
    "napcat": {
      "enabled": true,
      "transport": "http",
      "url": "http://127.0.0.1:3000",
      "token": "napcat"
    }
  },
  "plugins": { "entries": { "napcat": { "enabled": true } } }
}

NapCat 侧:启用「Http 服务器」(如 Host 0.0.0.0、Port 3000)和「Http 客户端」(Url 填 http://<OpenClaw 地址>/napcat,消息格式 String)。详见 docs/napcat-setup.md

WebSocket

  • ws-client:OpenClaw 主动连 NapCat 的 WebSocket 服务器(NapCat 开「Websocket 服务器」,OpenClaw 配 transport: "ws-client"wsUrlwsToken)。
  • ws-server:OpenClaw 开 WebSocket 服务,NapCat 用「Websocket 客户端」反向连接(OpenClaw 配 transport: "ws-server"wsHostwsPortwsToken)。

注意:WebSocket 与 cron 定时任务的兼容问题

  • 使用 WebSocketws-clientws-server)时,发消息依赖与 NapCat 的 WS 长连接。网关的 health-monitor 在连接异常时会重启 napcat 通道,若 cron 定时任务恰好在重启窗口或 WS 未就绪时执行,可能报错或投递失败
  • 若你有通过 cron 触发的定时发消息/巡检等需求,请优先使用 HTTP 传输,并在 NapCat 侧同时启用 HTTP 服务器与指向 OpenClaw /napcat 的 HTTP 客户端,以保证定时任务稳定执行。

完整配置项与传输模式说明见 docs/configuration.md,NapCat 侧 HTTP/WebSocket 设置见 docs/napcat-setup.md

许可证

MIT License

致谢