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

@onebots/adapter-dingtalk

v1.0.0

Published

onebots 钉钉适配器

Readme

@onebots/adapter-dingtalk

onebots 钉钉适配器

安装

npm install @onebots/adapter-dingtalk
# 或
pnpm add @onebots/adapter-dingtalk

配置

企业内部应用模式

config.yaml 中配置:

dingtalk.your_bot_id:
  app_key: "YOUR_APP_KEY"
  app_secret: "YOUR_APP_SECRET"
  agent_id: "YOUR_AGENT_ID"  # 可选
  encrypt_key: "YOUR_ENCRYPT_KEY"  # 可选,事件加密密钥
  token: "YOUR_TOKEN"  # 可选,事件验证 Token

自定义机器人模式(Webhook)

config.yaml 中配置:

dingtalk.your_bot_id:
  webhook_url: "https://oapi.dingtalk.com/robot/send?access_token=YOUR_TOKEN"

使用

onebots -r dingtalk

功能

企业内部应用模式

  • ✅ 单聊消息收发
  • ✅ 群聊消息收发
  • ✅ 文本消息
  • ✅ Markdown 消息
  • ✅ 卡片消息(部分支持)
  • ✅ 事件订阅(Webhook)
  • ✅ 用户信息获取

自定义机器人模式(Webhook)

  • ✅ 群聊消息推送
  • ✅ 文本消息
  • ✅ Markdown 消息
  • ✅ @用户、@所有人
  • ✅ 卡片消息(部分支持)

获取应用凭证

企业内部应用

  1. 访问 钉钉开放平台
  2. 创建企业内部应用
  3. 获取 AppKeyAppSecret
  4. 获取 AgentId(可选)
  5. 配置事件订阅 URL(Webhook)
  6. 配置应用权限(消息收发、通讯录等)

自定义机器人

  1. 在钉钉群聊中,点击"群设置" -> "智能群助手" -> "添加机器人"
  2. 选择"自定义"机器人
  3. 获取 Webhook URL

相关链接