jdnt/dsh-client-ui-peak-hours
dsh-client-ui-peak-hours injects a peak-hours status row under the New Session button in the DSH web sidebar: it shows whether Beijing peak pricing is in effect, counts down per second to the next boundary, and takes a configurable IANA timezone in settings.
dsh-client-ui-peak-hours puts DeepSeek's peak-pricing clock in the DSH web sidebar. The row sits directly under the New Session button and reads the fixed windows - 09:00-12:00 and 14:00-18:00, Monday to Friday, in a configurable IANA timezone that defaults to Asia/Shanghai (UTC+8, no DST) - with Saturday and Sunday off-peak all day. Outside a window it shows a green clock and a Chinese off-peak label while counting down to the next peak start, skipping the weekend; inside one it shows an amber icon and the peak label while counting down to the window end. The clock ticks every second, so both the state and the countdown roll over exactly at the boundary. The README also documents how the row coexists with the task-board and ssh rows that inject into the same location: each member positions itself relative to the same block, and a documented attribute lets peak-hours stay first across a concurrent React teardown.
Install
dsh plugin --profile web add github:jdnt/dsh-client-ui-peak-hoursCopied verbatim from the README's Install section. No npm package is documented, so the GitHub form is shipped; the README notes lib/ is committed, so there is no build step on install.
Compatibility
The README explains why the row is DOM rather than a React slot: the sidebar shell exposes no external registration point (sidebar.workspaces / sidebar.settings are single-occupant), so the status row is plain DOM inserted after the New Session button with a MutationObserver that re-inserts it when a React re-render displaces it - and because it is not a React tree it never disturbs the shell's reconciliation. The plugin depends only on the dsh platform and never on another dsh-web-ui plugin. Settings live in the peak-hours namespace (enabled, timezone), editable from Settings -> Plugins -> Plugin configuration or ~/.dsh/settings.yaml; if the deployment's WEB_SETTINGS_NAMESPACES allowlist omits the namespace the GUI card reports it as not exposed and the YAML route is the fallback.
Details
- Repo: jdnt/dsh-client-ui-peak-hours
- Category: Usage & Billing
- Stars: 0
- Version: GitHub repo jdnt/dsh-client-ui-peak-hours (0*); installed from GitHub (no npm package documented). No license is declared in the repo metadata as of 2026-10-16; TypeScript; created 2026-08-16. English README with a README.zh.md Chinese translation.
Alternatives
940842546/dsh-usage-billing · AlfredChaos/dsh-usage-panel · dingyi222666/dsh-wakatime