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

@iammralmost/usage-hud

v1.0.0

Published

Always-visible token, cache-hit, context and balance readout in the composer dock.

Readme

horizon

DeepSeek Harness 的用量与花费显示插件。

输入框上方常驻账户余额,点开能看今天的用量和花费,每条回答末尾也会标出这一轮花了多少钱。

显示什么

  • 输入框上方一行:⛁ 余额 ¥128.00
  • 每条回答的按钮行:⛁ 用量 7.5M tok ¥0.18 03:15,悬停可看输入、输出、缓存明细
  • 点余额展开面板:今日总量、24 小时柱状图(悬停显示那一小时的花费和忙/闲)、按模型拆分

安装

侧边栏 → 插件 → 添加插件 → 输入包名:

@iammralmost/usage-hud

安装源选「中国大陆镜像源」最快。刚发布的版本镜像要同步几分钟,这时候临时切到「npm 官方源」再切回来。

装完按 Ctrl+R 刷新;没变化就完整退出 DSH 再打开。

也可以直接用仓库地址安装:https://github.com/iammralmost/horizon。

价格

DSH 不存单价,所以费用是按 prices.json 算出来的估算值,不是平台账单。

内置了 deepseek-flash 和 deepseek-v4-pro 的官方价,单位是人民币元/百万 token,填的是高峰价,闲时按 offPeakDiscount 打折。高峰时段按官方规则:工作日 9:00–12:00 和 14:00–18:00,其余时间含周末都算闲时。

法定节假日要自己加到 peak.holidays(格式 2026-10-01)。不加的话,那天会被当成高峰计价,费用会高估一倍。

换模型就改 models 里对应那行,不用重新安装。

几点说明

  • 余额走平台接口,今日用量读本机会话日志,都不消耗 token
  • 只统计本机的会话,别的设备或网页版的用量不会算进来
  • 余额缓存 60 秒,今日用量缓存 90 秒,点面板里的「刷新」才会强制重算
  • 针对 DSH 0.2.1-rc.5 的界面结构写的。其中把花费排到「用量」和「时间」之间用了 CSS 重排,DSH 改版后位置可能会跑,但数字不会消失

License

MIT