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-status

v1.0.5

Published

Peak-hour indicator for the DSH web GUI: a native header chip showing whether the current Beijing time is inside DeepSeek's API peak window (weekdays 09:00–12:00 / 14:00–18:00; weekends all-day valley price), with a live clock, countdown, and ×2/off-peak

Readme

dsh-peak-status

English | 中文

peak indicator 预览

DeepSeek Harness Web GUI 的高峰时段指示灯。在会话头部右上角显示一个融入界面的小胶囊,实时告诉你当前北京时间是否处于 DeepSeek API 的高峰时段,带秒级时钟、下一转折倒计时和价格提示。

高峰时段

DeepSeek 官方峰谷定价(2026-08-17 生效,2026-08-23 起周末调整):

| 状态 | 时段(北京时间) | 价格 | | :-- | :-- | :-- | | 🔴 高峰 | 工作日 09:00–12:00 和 14:00–18:00 | 高峰价(= 空闲 ×2) | | 🟢 空闲 | 其余时间——包括周六、周日全天 | 高峰的一半 |

周末(周六、周日)全天按谷价计费,不设高峰时段。

按 DeepSeek 峰谷时间说明,能有高峰窗口的只有"既非周六周日、也非法定节假日"的普通工作日:

| 日期 | 状态(北京时间) | | :-- | :-- | | 中国法定节假日 | 全天按空闲时段计费,与周末一致 | | 调休上班的周末 | 同样全天按空闲时段计费(调休不改计费,只影响标签) |

所以 10 月 1 日显示 🟢 国庆节、调休的周六显示 🟢 调休上班 · 谷价,两者都不进高峰。

功能

  • 状态圆点——红 = 高峰,绿 = 空闲,外加实时北京时钟(HH:MM:SS,时区 Asia/Shanghai,与本机时区无关)
  • 倒计时:高峰时显示 剩 3h 54m · 价格 ×2,空闲时显示 距高峰 3h 54m · 半价
  • 节假日感知:法定节假日直接显示节日名(如 国庆节),并倒计时到假期结束后的第一个高峰窗口;调休上班的周末显示全天谷价并标注该日
  • 点击胶囊展开详情卡:高峰窗口、下一转折(含 HH:MM:SS 倒计时)、当前阶段进度条
  • 全部使用 Web UI 原生 --dsw-alias-* 主题变量,与界面完全融合,没有悬浮贴片
  • 持久挂载:重启 dsh web 后依然存在

安装

dsh plugin --profile web add dsh-peak-status

也可以直接从 GitHub 安装:

dsh plugin --profile web add github:xiaoyi-xx/dsh-peak-status

然后重启 dsh web(或刷新页面),胶囊会出现在会话头部右上角。

使用

胶囊每秒自动更新。点击展开/收起详情卡,悬停有快捷提示。高峰/空闲状态严格按上面官方时刻表、以北京时间计算,并叠加中国官方工作日历。

如果 DeepSeek 以后调整高峰时段,我们会发布包含新时段的新版本——发现不一致欢迎在仓库提 Issue。

节假日表

节假日表(法定节假日 + 调休上班日)通过网络获取,共三层降级:

  1. host 同源路由 —— 插件 host 半提供 /dsh-peak-status/holiday/<year>。它先取 jiejiariapi、失败再取 apihubs,归一化两种返回结构并在内存缓存 6 小时,所有浏览器标签页共用一次拉取。
  2. 浏览器直连兜底 —— 路由不可用时,浏览器半改直连 api.apihubs.cn(该源允许跨域)。
  3. 纯周末规则 —— 完全拿不到日历时,胶囊行为与 1.0.3 完全一致:工作日窗口 + 周末全谷价。

归一化后的结果还会写入 localStorage 缓存 24 小时,所以重启或短暂断网时状态依旧正确;详情卡始终标注数据来源(已同步 · jiejiariapi / 未同步 · 暂按周末规则)。

计费口径按 DeepSeek 峰谷时间说明:调休上班的周末、中国法定节假日全天均按空闲时段计费。日历提供的就是这两个标注——调休不会带来高峰窗口。

许可证

MIT