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

moltbot-wecom

v2.0.0

Published

企业微信机器人插件 - 让 AI 助手接入企业微信智能机器人 | WeCom Smart Bot channel plugin for Moltbot

Readme

Moltbot WeCom Channel

WeCom (企业微信) 智能机器人的 Moltbot 插件。

架构

企微用户 → 企微云 → wecom-proxy (解密/加密) ←WebSocket→ plugin (Moltbot)
                  ↑                                         ↓
                  ← 加密被动回复 ←─────────────────────── 回复消息
  • wecom-proxy: 处理企微消息加解密,支持被动回复
  • plugin: 作为 Moltbot 的 channel 插件,处理消息逻辑

安装

clawdbot plugins install moltbot-wecom-channel
# 或
npm link  # 本地开发

配置

moltbot.json(或 clawdbot.json)的 channels 中添加:

{
  "channels": {
    "wecom": {
      "enabled": true,
      "proxyUrl": "wss://your-wecom-proxy.com",
      "proxyToken": "your-secret-token",
      "pingInterval": 30000
    }
  }
}

功能特性

  • ✅ 通过 WebSocket 连接 wecom-proxy,支持心跳保活
  • ✅ 消息去重(防止重复响应)
  • ✅ 被动回复机制(5秒内响应)
  • ✅ 自动重连

被动回复流程

  1. wecom-proxy 接收企微加密消息并解密
  2. 通过 WebSocket 转发给 plugin(带 msgId)
  3. plugin 调用 Moltbot 处理消息
  4. plugin 将回复发回 wecom-proxy(带相同 msgId)
  5. wecom-proxy 加密回复并返回给企微
  6. 企微将回复投递给用户

注意: 企微要求 5 秒内响应。如果 AI 处理时间较长,可能需要实现主动回复 API。

参考

本实现参考了 Feishu Moltbot Bridge 的健壮性模式(去重、重连、心跳、群聊逻辑)。