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-done-badge

v0.4.6

Published

Background task completion badge for DSH: native Windows taskbar counter while the window is away, auto-clears on return.

Readme

dsh-done-badge

DSH 任务完成角标插件(ChatGPT/Codex 风格):窗口最小化/离开期间,每完成一个顶层任务(一轮对话/任务完成),Windows 任务栏 DSH 图标右下角显示红色数字角标(1、2、3…实时累积);切回主界面后角标短暂保留 2 秒即消失清零。窗口内右上角 DOM 角标作为兜底(浏览器版/macOS 可用)。

平台:Windows(任务栏角标走 Windows 原生 ITaskbarList3::SetOverlayIcon);macOS 暂不支持原生角标,仅窗口内 DOM 角标。

特性

  • 离开期间任务完成 → 任务栏角标持续显示,数量实时累积;
  • 子代理会话不计入:一个任务启动多个子代理只 +1;
  • 切回主界面 → 角标保留 2 秒让人看清,然后消失,不再冒出;
  • 串行更新队列:角标不会因 PowerShell 完成乱序而留下旧值;
  • 零依赖:只使用系统自带 PowerShell,无需安装任何运行时。

install

# 本地源码安装(推荐开发用):
dsh plugin --profile web add link:<无空格路径>/dsh-done-badge
# 或 npm 发布后:
dsh plugin --profile web add dsh-done-badge

重启 dsh web / 桌面应用后生效。

usage

  1. 发消息 → 最小化/切走 DSH;
  2. 后台每完成一个任务,任务栏 DSH 图标出现红色数字角标(完成几个显示几,持续显示);
  3. 切回主界面 → 角标保留约 2 秒后消失、计数清零。

how it works

  • 服务端:监听 session/eventturn/end,只统计顶层会话(header.parentSession 存在即子代理,跳过);离开期间每完成一轮,经串行队列调用 assets/badge.ps1(PowerShell,零依赖)通过 ITaskbarList3::SetOverlayIcon 更新任务栏角标;
  • 客户端:blur/hidden → 进入角标模式(服务端状态迁移,重复事件不重复清零);focus/visible → 2 秒后清除 + 清零;
  • 窗口定位:按窗口标题 Deepseek Harness Desktop 枚举定位主窗口(最小化时 MainWindowHandle 会误选内部窗口,不能依赖);
  • 兜底:窗口内右上角 DOM 红色数字角标(1.2s 轮询),浏览器版 / macOS 同样可用。

诊断

任务栏角标未出现时,查看:

%TEMP%\dsh-done-badge-helper.log    # 助手调用记录(含成功/失败/窗口句柄)
%TEMP%\dsh-done-badge-events.log    # 事件链日志(away/epoch/sid/isSub/count*,自动轮转 1MB)

files

lib/index.js       # 服务端(事件监听 + 路由)+ 客户端(角标 UI)
assets/badge.ps1   # Windows 任务栏角标助手(ITaskbarList3)
cordis.patch.yml   # bundle 挂载声明