xiaoyi-xx/dsh-peak-status

dsh-peak-status adds a peak-hour chip to the DSH session header: a live Beijing clock, a countdown to the next peak/off-peak transition, a price hint, and statutory-holiday / make-up-workday awareness, themed with the web UI's own CSS variables and persisted across restarts.

dsh-peak-status puts a peak-hour chip in the DSH session header. A coloured dot - red for peak, green for off-peak - sits next to a live Beijing clock in HH:MM:SS, with a countdown that says how long is left at peak (剩 3h 54m · 价格 ×2) or how long until the next peak at half price. Clicking expands a detail card with the peak windows, the next transition with a second-level countdown and a progress bar for the current phase. The holiday layer is what distinguishes it from a plain clock: on a statutory holiday the chip names the festival and counts down to the first peak window after the break, and on a make-up workday it shows all-day valley - both reflecting DeepSeek's actual billing rules rather than a naive weekday test. Since pricing doubles during peak, the chip is a direct cost-control signal at the moment a request is about to be sent.

Usage & Billing ★ 1
View on GitHub ↗

Install

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

Copied verbatim from the README's Install block. npm package dsh-peak-status at 1.0.5 (registry check 2026-10-16; the registry repository field resolves back to this repo).

Compatibility

The README pins the tariff it models: DeepSeek's official peak/valley pricing effective 2026-08-17 with the weekend adjustment of 2026-08-23 - peak weekdays 09:00-12:00 and 14:00-18:00 Beijing time at peak price (off-peak x2), everything else including all of Saturday and Sunday at half price. It also encodes the exception the pricing note makes: statutory holidays are valley all day, and a weekend worked as 调休 is valley all day too, so the chip shows the festival name on 1 October and an all-day valley tag on a make-up Saturday. The chip uses the web UI's native --dsw-alias-* variables, mounts persistently across dsh web restarts, and reads the timezone as Asia/Shanghai independent of the machine's own.

Details

Alternatives

940842546/dsh-usage-billing · AlfredChaos/dsh-usage-panel · dingyi222666/dsh-wakatime

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins