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-plugin-telegram-bridge

v0.1.1

Published

DeepSeek Harness 插件:Telegram 桥接 —— 在自己的 Telegram 中与 Harness 对话、控制电脑。支持 npx 一键安装。

Readme

dsh-plugin-telegram-bridge

DeepSeek Harness 插件:Telegram 桥接 —— 在自己的 Telegram 里与 Harness 对话、控制电脑, 随时随地,无需同一局域网。桌面版侧边栏的「Telegram 接入」入口即来自本插件。

功能

  • 侧边栏「Telegram 接入」:引导创建 Bot(@BotFather)、粘贴 Token、显示 t.me 二维码
  • 消息桥接:Telegram 消息 → Harness agent(独立会话)→ 回复发回 Telegram
  • 多会话管理(Telegram 指令):

| 指令 | 功能 | |---|---| | /help /start | 查看全部指令 | | /new | 新建对话(独立上下文) | | /list | 查看对话列表(含标题) | | /use N | 切换到第 N 个对话 | | /info | 查看当前对话信息(标题/工作目录/最近消息) |

  • 代理支持:自动检测系统代理(Windows 注册表 / macOS scutil / 环境变量),也可手动填写
  • 回复合并发送(一轮输出一条消息);黑白主题、中英文自动适配

安装(npx 一键)

npx dsh-plugin-telegram-bridge
# 自定义 DSH_HOME:
npx dsh-plugin-telegram-bridge --dsh-home D:/my-dsh

安装器会:

  1. 把插件复制到 $DSH_HOME/profiles/web/node_modules/@dsh-desktop/telegram-bridge
  2. 生成注入 patch:$DSH_HOME/telegram-bridge.patch.yml

然后启动:

dsh web --patch $HOME/.dsh/telegram-bridge.patch.yml --port 3080

配置:Harness 侧边栏「Telegram 接入」→ 粘贴 @BotFather 创建的 Token → 保存并连接。

网络需能访问 Telegram;国内环境建议配置本地代理(面板会自动检测系统代理,或手动填写)。

手动安装(不通过 npx)

npm install -g dsh-plugin-telegram-bridge
# 或从源码:
git clone https://github.com/yansenlei/dsh-plugin-telegram-bridge
cd dsh-plugin-telegram-bridge && npm install && npm run build
# 复制 lib/ 到 profile 的 node_modules 并注入 patch(同上)

工作原理

  • 纯 HTTP 实现 Telegram Bot API(getUpdates 长轮询 + sendMessage + getMe), 零第三方依赖、无需 webhook / 公网 IP。
  • 消息经 createUserMessage + agent.followup() 注入独立会话;重启后从磁盘历史恢复。
  • 回复通过 session/eventassistant/message 事件转发。
  • 配置(Token/代理/会话列表)持久化在 $DSH_HOME/telegram.config.json

开发

npm install
npm run build     # 产出 lib/client.js

许可

MIT