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-cost-panel

v1.6.1

Published

DeepSeek 双轨计费面板(DSH 静态插件,单包):会话头部实时计费、历史/定价表/总量统计(所有会话实时轮询,内联 Typert remote 挂载)、分叉会话从 0 计起、DeepSeek API 余额展示。随 dsh profile 启动自动加载,无需批准。可用 `dsh plugin --profile <name> add dsh-cost-panel` 一键安装。

Readme

计费面板 · 静态版(profile 挂载)

cost-panel/(动态版)功能等价,但以静态插件挂载:随 dsh web 启动自动加载, 进程重启、浏览器刷新都不需要任何操作,无需批准。

架构差异(相对动态版)

| 维度 | 动态版 cost-panel/ | 静态版 cost-panel-static/ | |---|---|---| | 数据通道 | Host harness.handle RPC + 客户端 1.5s 轮询 | sessionProjections 投影:Host 折叠事件,客户端 useProjection('costSnapshot') 订阅推送(无 RPC、无轮询) | | 持久化 | 自管账本 ~/.dsh/dsh-cost-ledger.json | 投影检查点($DSH_HOME/storages/session_projcache.json),重启后从会话日志整体重放 | | 分叉归零 | 按 seedLength 归零 + 分叉徽章 | 投影 apply 看不到 header,按全量计费、不显示分叉徽章(已知差异) | | 安装 | cordis_define + 批准 | 复制包 + patch 行 + 重启 |

安装 / 更新

  1. 把本目录(含 package.jsonlib/)复制到 $DSH_HOME/profiles/web/node_modules/dsh-cost-panel/$DSH_HOME 默认 ~/.dsh)。

  2. profiles/web/cordis.patch.yml 确保有:

    - insert:
        - id: cost-panel
          name: dsh-cost-panel
  3. 重启 dsh webclient.js 改动刷新浏览器即可(rev 按文件哈希);host.js/patch 改动必须重启。

回滚(回到动态版)

  1. 删除 profiles/web/cordis.patch.yml 中的 cost-panel insert 块(或恢复 cordis.patch.yml.bak-dynamic)。
  2. 删除 profiles/web/node_modules/dsh-cost-panel/
  3. 重启 dsh web,再用 cost-panel/ 的源码走动态版(cordis_define + run)流程。

预检(不必重启即可跑)

node --check lib/host.js ; node --check lib/client.js
dsh --profile web --dump-config   # 确认组合树含 cost-panel 行