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

clawdbot-dingtalk

v0.1.19

Published

DingTalk (钉钉) channel plugin for Clawdbot - enables AI agent messaging via DingTalk Stream API

Readme

clawdbot-dingtalk

DingTalk (钉钉) channel plugin for Clawdbot - enables AI agent messaging via DingTalk Stream API.

Installation

# Install Clawdbot globally
npm install -g clawdbot

# Install DingTalk plugin
npm install -g clawdbot-dingtalk

Plugin ID: clawdbot-dingtalk (used in plugins.allow / plugins.entries)
NPM package: clawdbot-dingtalk

Configuration

Edit ~/.clawdbot/clawdbot.json:

{
  "extensions": ["clawdbot-dingtalk"],
  "channels": {
    "clawdbot-dingtalk": {
      "enabled": true,
      "clientId": "your-dingtalk-client-id",
      "clientSecret": "your-dingtalk-client-secret"
    }
  },
  "models": {
    "providers": {
      "dashscope": {
        "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
        "apiKey": "sk-xxx",
        "api": "openai-completions",
        "models": [
          { "id": "qwen3-coder-plus", "contextWindow": 1000000, "maxTokens": 65536 }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": { "primary": "dashscope/qwen3-coder-plus" }
    }
  }
}

Start Gateway

clawdbot gateway

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | enabled | boolean | true | Enable/disable the channel | | clientId | string | - | DingTalk app Client ID (required) | | clientSecret | string | - | DingTalk app Client Secret (required) | | clientSecretFile | string | - | Path to file containing client secret | | replyMode | "text" | "markdown" | "text" | Message format | | maxChars | number | 1800 | Max characters per message chunk | | allowFrom | string[] | [] | Allowlist of sender IDs (empty = allow all) | | requirePrefix | string | - | Require messages to start with prefix | | responsePrefix | string | - | Prefix added to responses | | tableMode | "code" | "off" | "code" | Table rendering mode | | showToolStatus | boolean | false | Show tool execution status | | showToolResult | boolean | false | Show tool results | | thinking | string | "off" | Thinking mode (off/minimal/low/medium/high) |

Chat Commands

The following chat switches are supported in DingTalk:

  • /new - Reset session context
  • /think [off|minimal|low|medium|high] - Set thinking level
  • /model <provider/model> - Switch model
  • /models [provider] - List providers or models under a provider
  • /verbose on|off|full - Toggle non-final updates (tool/block)

Notes:

  • Commands respect allowFrom and requirePrefix (in group chats).
  • Inline usage is supported (e.g., "帮我看看 /model openai/gpt-4o").

Multi-account Configuration

{
  "channels": {
    "clawdbot-dingtalk": {
      "accounts": {
        "bot1": {
          "enabled": true,
          "clientId": "client-id-1",
          "clientSecret": "secret-1",
          "name": "Support Bot"
        },
        "bot2": {
          "enabled": true,
          "clientId": "client-id-2",
          "clientSecret": "secret-2",
          "name": "Dev Bot"
        }
      }
    }
  }
}

Message Coalescing

Control how streaming messages are batched before sending:

{
  "channels": {
    "clawdbot-dingtalk": {
      "coalesce": {
        "enabled": true,
        "minChars": 800,
        "maxChars": 1200,
        "idleMs": 1000
      }
    }
  }
}

Running as a Service

Using systemd (Linux)

Create /etc/systemd/system/clawdbot.service:

[Unit]
Description=Clawdbot Gateway
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/clawdbot gateway
Restart=always
RestartSec=10
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target
sudo systemctl enable clawdbot
sudo systemctl start clawdbot

Using PM2

npm install -g pm2
pm2 start "clawdbot gateway" --name clawdbot
pm2 save
pm2 startup

DingTalk Setup

  1. Go to DingTalk Open Platform
  2. Create an Enterprise Internal Application
  3. Enable "Robot" capability
  4. Get Client ID and Client Secret from "Credentials & Basic Info"
  5. Configure the robot's messaging subscription

License

MIT