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

@qing3a/dsh-tray

v0.1.0

Published

Windows 系统托盘插件:托盘图标 + 菜单(打开界面/状态/退出)+ 气泡通知,基于 trayicon(exe 宿主,无 native 编译)

Readme

dsh-tray

DeepSeek Harness Windows 系统托盘插件:托盘图标 + 菜单(打开界面 / 状态 / 退出)+ 气泡通知。

基于 [email protected](exe 宿主进程 + TCP + XML 协议,无 native 编译)。win32-only。 状态:✅ 已在本地 DSH 源码环境验证(web 单托盘进程 + headless 降级,2026-08-14)。

功能

  • 系统托盘图标(默认 default.ico,可配置 iconPath)
  • 菜单:打开界面(读 webServer.port 动态拼接 URL)/ 状态 / 退出
  • 气泡通知(info 风格)
  • headless 兼容:无 webServer 时自动降级(不崩、不阻塞加载)

安装

# 开发模式(需 Node >= 22 + pnpm)
git clone https://github.com/qing3a/dsh-tray.git
cd dsh-tray && pnpm install && pnpm build

cd <path-to-deepseek-harness>
pnpm dsh plugin --profile web add link:$(pwd)/dsh-tray
pnpm dsh --profile web
# Windows 任务栏应出现 DSH 托盘图标

卸载

pnpm dsh plugin --profile web remove @qing3a/dsh-tray

配置

| 键 | 默认 | 说明 | |---|---|---| | enabled | true | 总开关 | | title | DSH | 托盘标题(决定 temp 命名) | | iconPath | 空 | 自定义图标路径(.ico/.png Buffer);留空用 default.ico |

已知实现要点

  • 不用 trayicon 的 useTempDir:复制 exe 到 temp 后立即 spawn 在 Windows 会 spawn EBUSY(文件句柄未释放),直接 spawn 包内 exe 无此问题
  • 并发去重start() 幂等(pending promise 共享),避免 apply 与 inject 并发调用导致双托盘
  • 非 win32 平台自动跳过process.platform !== 'win32'
  • webServer 用 ctx.inject 动态注入(headless 无此服务不阻塞)

许可

MIT