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

dsh-im-feishu

v1.0.5

Published

飞书渠道适配器(dsh-im 插件家族,experimental):WebSocket 长连接免公网 + 审批卡片按钮。需要真实飞书自建应用凭据,未经 CI 实测。

Readme

dsh-im-feishu(飞书适配器)

飞书渠道适配器:官方 SDK @larksuiteoapi/node-sdk 长连接接收事件(免公网)+ 交互卡片审批按钮 + 文件消息。

✅ 状态:已在真实飞书自建应用上跑通(长连接 ready、文本收发、审批卡片)。 配置步骤见 docs/feishu-setup.md(含 card.action.trigger 回调配置的准确位置)。

  • 依赖:inject: ['im'](需 dsh-im 核心)
  • 密钥:appId: 'env:FEISHU_APP_ID'、appSecret: 'env:FEISHU_APP_SECRET'(§9:密钥不落明文)
  • 联调脚本:node demo/feishu-real.mjs --trust-first
  • 测试:npm run test:feishu(stub 官方 SDK,验证事件→ImMessage/回调→出站接线)

实现说明

  • 事件订阅(长连接):
    • im.message.receive_v1(接收消息)→ 统一 ImMessage → ctx.im.dispatchInbound
    • card.action.trigger(卡片回传交互,在开放平台「回调配置」页签添加)→ ctx.im.handleCallback
  • 出站:
    • 文本消息 im.message.create(receive_id_type 按入站学习 + id 前缀启发:ou_=open_id / oc_=chat_id)
    • 审批卡片:msg_type: interactive,按钮 value 携带 {action, id, answer} 回传
    • 文件(/log 全量交付):im.file.create 上传 → msg_type: file
  • 断线重连/心跳:由官方 WSClient(autoReconnect: true)内置(FR-1.5)