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-balance-peak

v1.0.1

Published

DeepSeek Harness 输入框上方右上角:DeepSeek 账户余额 + 高峰/低谷时段徽章(可微调位置)。余额经服务端代理(复用 DEEPSEEK_API_KEY)读取,key 不出服务端。

Downloads

1,219

Readme

dsh-balance-peak

在 DeepSeek Harness 输入框上方右上角显示 DeepSeek 账户余额 + 高峰/低谷时段 徽章,支持在「设置 → 插件」里微调位置。

  • 🟠 忙时:按官方 V4 峰谷计价(北京时间)实时显示当前高峰窗口。
  • 🟢 谷时:显示下一高峰窗口,提醒何时便宜。
  • 💰 DeepSeek 余额:服务端代理读取,CNY xx.xx 形式展示,API key 永不出服务端

特性

  • 悬浮胶囊定位在输入框卡片上方右上角,不遮挡输入内容。
  • 位置、显示项、刷新间隔均可在「设置 → 插件 → 余额峰谷」里配置(方向按钮可微调)。
  • 余额经 DSH 凭据通道复用 DEEPSEEK_API_KEY,无需在浏览器填写任何 key。
  • 支持一键刷新余额(胶囊右侧 ↻ 按钮)。

截图

截图区:请替换为下面两张真实截图。

输入框右上角胶囊:

screenshot

设置 → 插件 → 余额峰谷:

screenshot

峰谷规则

高峰(贵):09:00–12:0014:00–18:00(北京时间 Asia/Shanghai)。 低谷(便宜):其余时间。

安装

方式一:GitHub(推荐,DSH 插件标准方式)

dsh plugin --profile web add https://github.com/Kumar1337/dsh-balance-peak

或手动 clone:

git clone https://github.com/Kumar1337/dsh-balance-peak.git

方式二:npm(若已发布)

npm install -g dsh-balance-peak

方式三:手动 link 到 web profile

把本包加入 ~/.dsh/profiles/web/package.jsondsh.profile.bundles,并确保它作为依赖可解析(link: 到本目录),然后重启 DSH Web。

配置

余额复用 DSH 已配置的 DEEPSEEK_API_KEY~/.dsh/.credentials.yaml 或环境变量);若未配置,徽章显示「读取失败」。

设置 → 插件 → 余额峰谷 卡片里可调整:

| 字段 | 说明 | |---|---| | showPeak / showBalance | 显示/隐藏忙时、余额胶囊 | | refreshSeconds | 余额刷新间隔(秒,5–3600) | | offsetX / offsetY | 胶囊相对输入卡片的位置微调(距卡片右缘 px / 距卡片上方 px,可负数) |

隐私

浏览器看不到任何 API key;/api/balance 只返回余额读数本身。

License

MIT


© 2026 Kumar1337 · 报告问题