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

@ferby/moltbot-plugin-dingtalk-wecom

v0.1.3

Published

Moltbot plugin for DingTalk (Stream Mode) and WeCom (Webhook)

Readme

Clawdbot DingTalk & WeCom Plugin

This plugin adds support for DingTalk (钉钉) and WeCom (企业微信) channels to Clawdbot.

Features

  • DingTalk: Uses Stream Mode (WebSocket). No public IP or webhook configuration required inside DingTalk.
  • WeCom: Uses Webhook Mode. Requires a publicly accessible URL (or reverse proxy) to receive messages.

Installation

  1. Clone the repository.
  2. Install dependencies:
npm install

Note: If you encounter permission errors, try running sudo chown -R $(whoami) ~/.npm or use sudo (not recommended).

Configuration

This plugin is configured via your Clawdbot configuration file (e.g., clawdbot.config.yaml).

1. DingTalk (Stream Mode)

Prerequisites:

  1. Go to DingTalk Open Platform.
  2. Create an Internal Enterprise Robot (应用开发 -> 企业内部开发 -> 机器人).
  3. In the app settings, go to Rights Management (权限管理) or Development Configuration (开发配置).
  4. Find Stream Mode (Stream 模式) and enable it.
  5. Ensure the "Bot Message Callback" topic is subscribed.
  6. Publish the application.
  7. Copy AppKey and AppSecret.

Config:

channels:
  dingtalk:
    enabled: true
    appKey: "YOUR_DINGTALK_APP_KEY"
    appSecret: "YOUR_DINGTALK_APP_SECRET"
    # Policies (Optional)
    # dmPolicy: "open" # "open", "pairing", or "allowlist"
    # groupPolicy: "open"

2. WeCom (Webhook)

Prerequisites:

  1. Go to WeCom Admin Console.
  2. Create a Self-built Application (应用管理 -> 自建).
  3. Copy AgentId and Secret.
  4. Copy CorpId (My Enterprise -> Enterprise Info).
  5. In the app settings, go to Receive API (接收消息).
    • URL: http://YOUR_SERVER_IP:3001/wecom/webhook
    • Token: Generate a random string.
    • EncodingAESKey: Generate a random key.
  6. Important: Click "Save" in WeCom after starting Clawdbot. WeCom validates the URL immediately.

Config:

channels:
  wecom:
    enabled: true
    corpId: "YOUR_CORP_ID"
    agentId: "YOUR_AGENT_ID"
    secret: "YOUR_WECOM_SECRET"
    token: "YOUR_WECOM_TOKEN" 
    encodingAESKey: "YOUR_WECOM_AES_KEY"
    # Optional
    # webhookPath: "/wecom/webhook" # Default

Running

  1. Start Clawdbot as usual.
  2. DingTalk: You should see a log message dingtalk: stream client connected.
  3. WeCom: Ensure port 3001 is open and accessible from the internet. When you click "Save" in WeCom admin, it will hit this port.

Usage

  • DingTalk: Send a message to the robot in a DM or mention it in a group.
  • WeCom: Send a message to the application in WeCom.

Troubleshooting

  • DingTalk Disconnects: Check if AppKey/Secret are correct and if the app is published.
  • WeCom Url Validation Failed:
    • Ensure Clawdbot is running and port 3001 is reachable.
    • Ensure token and encodingAESKey in config match WeCom exactly.
    • Check logs for signature verification errors.