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-feishu-bridge

v1.0.4

Published

Bridge Feishu (Lark) private chat (text + images with vision analysis) into DSH agent sessions: stable one-session mapping, explicit new-session command, cardkit typewriter streaming.

Readme

dsh-feishu-bridge

把飞书(Lark)私聊消息实时桥接进 DSH(DeepSeek Harness)agent 会话的 Cordis 插件,并通过飞书官方 cardkit 流式卡片实现打字机式输出。

能力

  • 监听飞书私聊文本消息(im.message.receive_v1,通过 lark-cli event consume 长连接)
  • 将消息作为用户消息注入当前 DSH agent 会话,由 agent 以完整工具能力(bash / fs / 飞书技能等)处理
  • 回复以流式卡片(streaming_mode)实时逐字上屏;卡片创建失败时自动降级为「文本确认 + markdown 完整回复」
  • 仅允许配置的 ownerOpenId 与机器人私聊

架构

飞书私聊 ──消息──▶ lark-cli 事件长连接(插件内子进程)
                        │ 注入
                        ▼
                DSH agent 会话(完整工具)
                        │ 增量文本(poll assistant/chunk)
                        ▼
                cardkit 卡片流式更新(打字机效果)

安装

npm install dsh-feishu-bridge

在 DSH 的 cordis.yml 中注册:

plugins:
  - name: dsh-feishu-bridge
    config:
      ownerOpenId: ou_xxxxxxxx        # 必填:唯一允许私聊的用户 open_id
      botOpenId: ou_yyyyyyyy          # 可选:机器人自身 open_id
      larkCliPath: /path/to/lark-cli  # 可选:lark-cli 绝对路径
      debugLog: feishu-bridge-debug.log

前置条件

  1. lark-cli 已安装并完成认证(bot 身份必需;agent 若调用日历/任务等需 user 身份)
  2. 飞书应用已开通权限:
    • im:message(或 im:message:send_as_bot)—— 收发消息
    • cardkit:card:write —— 流式卡片(可选,缺失时降级为非流式)
  3. 应用已订阅事件:im.message.receive_v1(长连接模式)

配置项

| 字段 | 必填 | 说明 | 默认 | |---|---|---|---| | ownerOpenId | ✅ | 唯一允许与机器人对话的用户 open_id | - | | botOpenId | | 机器人自身 open_id(忽略自身回声) | '' | | larkCliPath | | lark-cli 绝对路径 | PATH 解析 | | workspaceRoot | | 子进程工作目录 | 沙箱工作区根 | | updateIntervalMs | | 卡片更新节流 | 700 | | maxReplyLength | | 回复截断长度 | 3500 | | elementId | | cardkit 元素 ID | md_1 | | debugLog | | 调试日志文件名 | feishu-bridge-debug.log |

License

MIT