Introduction

In the plugin workflow of DSH, web capabilities can be extended through plugins. DeepSeek has adjusted API pricing based on peak and valley periods, with peak times being 09:00–12:00 and 14:00–18:00, and the rest being off-peak. For developers using the DeepSeek API in the DSH web interface, two things are often needed: identifying which period is currently active, and receiving alerts before or after the switch.

chicheng-peak addresses this scenario: it determines peak/off-peak periods based on DeepSeek’s official pricing schedule, renders orange or blue borders on the web edge, and can send alerts via message push channels or messaging platforms with a custom lead time. Below is an introduction to its features, installation, and configuration.

What is this

chicheng-peak is a DSH web plugin, maintained by 534119219, licensed under MIT, and the GitHub repository is at the end of the article. It is not an official DeepSeek application and relies on the local DSH environment, the chicheng-push push channel, or the messaging-core message platform to complete message sending.

The core problem it solves is: transforming DeepSeek’s peak and valley pricing periods into visual states on the page and sending custom title and content alerts before or exactly when peak/off-peak periods arrive.

Core Features

  • Automatically determine peak/off-peak periods based on DeepSeek’s official pricing schedule. Official periods (Beijing Time, effective from 2026-08-17): Peak 09:00–12:00, 14:00–18:00; the rest are off-peak (idle) periods, with API prices approximately half of peak.
  • Render breathing borders on the screen edge in the web interface: orange for peak, blue for off-peak; supports adjusting color, width, glow, opacity, breathing frequency, and comet effects.
  • Independent input box lighting effects: color, width, glow, breathing, comet, and direction can be set separately; automatically follows the input box during scrolling and IM popups.
  • Send alerts before or exactly when peak/off-peak periods arrive: use the chicheng-push channel (Server酱 / Bark / DingTalk / WeCom / Telegram / Lark / Webhook…) or the messaging-core message platform to send custom title and content.
  • Message push scheduling is executed on the server side; messages can be delivered even if the page is closed.
  • Supports browser local notifications (available when the page is open).
  • Peak periods can be added, deleted, modified; time zones can be selected; restore official defaults.
  • Status badges can choose corner positions separately on PC and mobile, and adjust horizontal/vertical offset.
  • Configuration changes take effect immediately without a restart.

Installation and Enablement

The installation command is provided below. D:\Harness\chicheng-peak in the command is an example path from the documentation; if the plugin directory is not at that location, you need to replace the path with your local chicheng-peak directory.

dsh plugin --profile web add D:\Harness\chicheng-peak

After installation, confirm the following files and configuration items:

C:\Users\TJ\.dsh\profiles\web\package.json
dsh.profile.bundles
"chicheng-peak"

This confirms that dsh.profile.bundles in C:\Users\TJ\.dsh\profiles\web\package.json includes "chicheng-peak".

Next, choose the activation method based on the scope of changes:

  1. If changed manually, restart the dsh web service to apply changes.
  2. If only the client side is changed, refresh the page.
  3. If local file: plugin source code is changed, run the script below first, ensuring node_modules points to the source code:
D:\Harness\relink-plugins.ps1

After the above steps, chicheng-peak will be loaded under the web profile and appear in DSH settings and page prompts.

Typical Usage

  1. Open Settings → Peak Valley Alerts for partition configuration.
  2. Configure border appearance, input box effects, status badges, local notifications, and message push alerts according to needs.
  3. Use template variables in alert content:
{phase}
{phaseEn}
{start}
{end}
{time}
{date}
{hour}
{minute}
  1. Configuration is stored in the following path:
$DSH_HOME/peakvalley/config.json
C:\Users\TJ\.dsh\peakvalley\config.json

Modifications take effect immediately without a restart.

All exposed APIs of the plugin are in the following call format, accessible only to same-origin / loopback / trusted hosts:

POST /peakvalley/api/<method>

When developing, modify lib/index.js and restart; modify lib/client.js and refresh the page.

The documentation also lists the following test commands:

node test/engine.test.mjs
node test/host.smoke.mjs
node test/client.load.mjs
node test/client.runtime.mjs

Applicable Scenarios and Notes

Suitable for use in the DSH web environment with the DeepSeek API, and requires:

  • Quickly identifying the current peak/valley stage on the page edge;
  • Receiving push or local notifications before peak/off-peak switches;
  • Using existing chicheng-push channels or messaging-core message platforms to send custom alerts.

Notes:

  • The plugin will be loaded and run with the dsh process; runtime permissions depend on the current dsh process and profile environment. It is recommended to check the source code, license, and local path before installation to confirm the plugin source is trustworthy.
  • Message push relies on existing chicheng-push channel or messaging-core message platform configuration; browser local notifications are only available when the page is open.
  • Setting navigation icons depends on the official shell navIcon(id) branch; after upgrading dsh, patching needs to be redone.
  • The documentation has not confirmed the directory page URL; if you need to view the source code, use the GitHub repository.

Conclusion

The value of chicheng-peak is to make DeepSeek peak and valley periods visual states in DSH pages and configurable alerts. For DSH users who need to trigger actions before and after peak/off-peak, it can be integrated into the existing DSH web environment as a third-party plugin.

GitHub Address: https://github.com/534119219/chicheng-peak