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-tool-graphic-chain

v0.1.1

Published

可视化图形调用链:把 Think 与连续工具调用压成一条横向胶囊链,模型说话才截断。纯净,不做多余的事。

Readme

dsh-tool-graphic-chain

English | 中文

license dsh npm repo

把会话里一行一个的工具调用,压成一条从左往右的胶囊工具链:思考与连续调用串在同一条链上,模型中途说话才截断。

安装

dsh plugin --profile <你的profile名> add dsh-tool-graphic-chain

装好后重启 dsh web 即可生效(浏览器需要刷新一次)。

效果

› 读清楚三处插入点才动手                    · 3 次调用
[Think] → [Grep] → [Grep] → [Read] → [Read]
  • 一条链 = 一段连续动作:思考(Think)与会话里连续发生的工具调用按发生顺序串成同一条链,不再一行一个占满屏幕。
  • 模型说话就截断:中间输出正文(比如「重大发现:原来……」「三处插入点都读到了」)时当前链收尾,正文以正常 Markdown 显示,之后继续开新链。
  • 状态一目了然:运行中呼吸灯、成功绿点、失败红点(胶囊边框同步变红)、中断黄点。
  • 紧凑横排:每行 7 颗胶囊自动换行,胶囊之间用 → 连接,间距紧凑;链头一行可点击折叠/展开整条链。
  • 点开看细节:点击胶囊弹出该次调用的入参/结果。

顺带修掉的老问题

DSH 会为每个会话节点渲染一个 flowItem 外壳;被本插件合并进链的 tool-call 节点内容为空,外壳仍占一个 16px 的 flex 间距,长会话底部会堆出大片空白。插件用 :has() 只隐藏「内容确实为空」的外壳,空白随之消失,正常的消息节点不受影响。

纯净

只接管 assistant-step 与 tool-call 两个节点的渲染,不注册新工具、不改模型、不改数据,user / turn-tail / compaction 等节点一切照旧。

开发

npm install
npm run verify   # jsdom 行为验证:链组装、箭头、状态灯、截断分组、空外壳隐藏

License

MIT