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

v0.1.1

Published

DeepSeek peak/off-peak pricing badge for DSH: light green in off-peak hours, light orange in peak hours (Beijing time), draggable. / DeepSeek 峰谷计价状态角标:北京时间高峰时段(09:00–12:00、14:00–18:00)浅橘,优惠时段浅绿,可拖动。

Readme

dsh-peak-badge

DeepSeek Harness(DSH)web 界面的峰谷计价状态角标:一眼看出当前 DeepSeek token 是按高峰价还是优惠价计费——以北京时间为准,零配置。

🟢 优惠时段 —— 浅绿胶囊:「优惠时段 · 半价」 🟠 高峰时段(北京时间 09:00–12:00、14:00–18:00)—— 浅橘胶囊:「高峰时段 · 单价×2」

为什么需要它

DeepSeek 自 2026-08-17 起实行峰谷计费:高峰窗口(北京时间 09:00–12:0014:00–18:00)的 token 单价为优惠时段的 2 倍。本插件把这一状态全天候摆在眼前,让你决定是继续聊,还是把费钱的活儿挪到优惠时段。

特性

  • 实时准确 —— 每 30 秒用 Intl.DateTimeFormat('Asia/Shanghai') 刷新,无需手动设置时区
  • 随意拖动 —— 拖到任何位置,位置记忆在 localStorage,且不会拖出屏幕
  • 点击看详情 —— 详情卡显示当前北京时间、高峰/优惠窗口、V4-Flash / V4-Pro 参考价
  • 零 host 风险 —— 纯浏览器插件,host 半是 no-op
  • 与仓库级 AGENTS.md 里的「峰谷计价提醒」文字规则互补:规则管提问时机,角标管全天候可见

安装

dsh plugin --profile web add dsh-peak-badge

重启 dsh web,硬刷新浏览器(macOS:Cmd+Shift+R;其他:Ctrl+Shift+R)。角标默认出现在左下角,拖到哪都行。

用法

  • 看状态:绿 = 优惠,橘 = 高峰;胶囊上同时显示当前北京时间
  • 拖动:按住移动,松开即固定;位置跨刷新保持
  • 详情:原地点击(不拖动)展开/收起信息卡

参考价(2026-08-17 起生效,元/百万 tokens)

| 模型 | 高峰 输入/输出 | 优惠 输入/输出 | | --- | --- | --- | | V4-Flash | ¥3.0 / ¥9.0 | ¥1.5 / ¥4.5 | | V4-Pro | ¥9.0 / ¥27.0 | ¥4.5 / ¥13.5 |

缓存命中按输入价减半计费。以官方定价页为准:https://api-docs.deepseek.com/quick_start/pricing

结构

  • lib/index.js —— host 半(no-op,浏览器插件)
  • lib/client.js —— 浏览器半:window.__ModuleLoader__.load() + shell.overlay 插槽
  • cordis.patch.yml —— bundle patch(insert peak-badge 行)

开发

npm run check      # 语法检查 host + client
dsh plugin --profile web add "link:$PWD"   # 从源码本地安装

卸载

dsh plugin --profile web remove dsh-peak-badge

许可证

MIT © 2026 Sue YoungZen