Introduction

The Web platform of DeepSeek Harness (DSH) supports third-party client plugins. These plugins can hook functionality directly into the browser interface without modifying the web app build.

dsh-feng-gu is a fun DSH plugin: it displays the current pricing period (Peak or Valley) based on DeepSeek API peak-valley pricing, with a countdown timer until the next switch.

The repository is: https://github.com/KeqingMoe/dsh-feng-gu, licensed under MIT.

What is it

dsh-feng-gu is a third-party client plugin for the DSH Web platform. It declares dsh.bundle and dsh.client (with platform: web), eliminating the need to recompile the web app.

Its core function is to provide a real-time badge in the bottom right corner of the DSH Web UI, indicating whether the user is currently in a Peak or Valley period, along with a countdown to the next switch.

Core Features

Below are its verified capabilities:

  1. Real-time display in the bottom right corner of the DSH Web UI indicating whether it is currently Liang Wenfeng (Peak) or Liang Wengu (Valley).

  2. Time periods divided by Beijing Time:
    - Peak Periods: Daily 09:00–12:00, 14:00–18:00
    - Off-Peak Periods: The rest of the time, including nights, weekends, and holidays

  3. Refreshes the current Beijing Time every second and displays a HH:MM:SS countdown until the next switch.

  4. Clicking the badge expands a details card containing:
    - Peak/Valley period table
    - Pricing explanation
    - Origin of the meme

  5. Uses DSH theme tokens (--dsw-alias-*) to adapt to dark/light themes.

Installation and Usage

Install directly from GitHub using the following command:

dsh plugin --profile web add github:KeqingMoe/dsh-feng-gu#v0.1.0

Notes:
- --profile web corresponds to the profile where the user launches the Web interface.
- The #v0.1.0 in the install command is a pinned tag and will not silently change due to subsequent pushes.
- After successful installation, restart the Web UI; the badge will appear in the bottom right corner.

When running DSH from source, the command prefix is pnpm dsh. For example:

pnpm dsh plugin --profile web add github:KeqingMoe/dsh-feng-gu#v0.1.0

Launch Web UI:

pnpm dsh web

Uninstall command:

dsh plugin --profile web remove dsh-feng-gu

Local Debugging

If you have modified the plugin locally and want to install it to your own profile to see the effects, you can use a relative path:

dsh plugin --profile web add ./dsh-feng-gu
dsh web

How it Works

As a third-party client plugin for the DSH Web platform, dsh-feng-gu declares:
- dsh.bundle
- dsh.client, with platform: web

Therefore, it does not require recompiling the web app and can hook functionality into the DSH Web UI.

It uses DSH theme tokens for styling:

--dsw-alias-*

This allows for adaptation to dark/light themes.

Use Cases and Notes

This plugin is suitable for users who need to quickly check the current API Peak/Valley periods within the DSH Web UI.

Notes when using:
1. Time period determination is manually converted based on UTC+8 and is unrelated to browser timezone settings.
2. The Web UI needs to be restarted after successful installation.
3. --profile web corresponds to the profile where the user launches the Web interface; ensure the profile is consistent during installation.
4. The peerDependencies in package.json mark @deepseek-ai/cordis and react as optional.
5. Before installing any third-party plugin, it is recommended to check the source code and license; plugins run with the permissions of the current DSH process.

Related Links

  • GitHub: https://github.com/KeqingMoe/dsh-feng-gu

The verified information currently does not provide an independent directory page URL, so only the repository address is provided here.