Skip to content

deepseek-peak-valley

Verified

@wrfamily/deepseek-peak-valley · v1.0.0 · Web UI

Show the current DeepSeek peak/valley pricing period beside the composer when an official DeepSeek model is selected.

Install

dsh plugin add @wrfamily/deepseek-peak-valley

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Creators

Readme

DeepSeek Peak/Valley Pricing Indicator (DSh Plugin)

A DeepSeek Harness plugin that shows the current DeepSeek peak / valley pricing period as a themed pill above the composer, whenever the selected model uses an official DeepSeek route.

  • Official DeepSeek routes: deepseek-official (API key) and deepseek-account (account).
  • Peak pricing: Monday–Friday in Asia/Shanghai, excluding Chinese statutory holidays, 09:00–12:00 and 14:00–18:00 (start inclusive, end exclusive).
  • Valley pricing: every other time (weekends, holidays, and outside the peak windows), at up to 50% off.
  • Shows for both new (blank) and existing conversations, refreshing every 30 seconds.

Install

Install the bundle from this repository into a DSh profile:

dsh plugin install /path/to/this/dir

or via the plugin manager with the bundle target pointing at this directory.

Files

Path Purpose
package.json Package manifest and client bundle declaration.
client.js Browser module: period logic + themed pill.
index.js Host half (no host services required).
cordis.patch.yml Cordis patch inserting the plugin entry.
locale/zh.json Simplified Chinese copy.
locale/en.json English copy.
icon.svg Plugin icon (peak/valley clock).

Notes

  • The Chinese statutory holiday table is embedded for 2025–2026; update HOLIDAYS in client.js when the State Council publishes later schedules.
  • Colors use DSh theme tokens (warn = peak, success = valley), with a color-mix tinted background and a solid fallback.