Introduction

The plugin mechanism of DeepSeek Harness (DSH) allows developers to extend the capabilities of the Web UI. water2004/dsh-liang-transformer-vote is a Web plugin that integrates with the “sliding variator” voting system. It solves the need to directly view voting status, cast votes, and review historical trends within the DSH interface.

What It Is

This is an online utility plugin developed by user water2004. It synchronizes the status of an external voting website to the DSH Web UI, providing voting controls and trend chart viewing.

Core Features

The plugin primarily provides the following capabilities:

  1. Status synchronization: Synchronizes today’s voting status with the original web page https://liang.gbwater.icu.
  2. Voting operations: Adds a “Liang Value” control to the bottom bar of the DSH input box, displaying five fixed tiers (Liang God 100, Liang Saint 75, Liang Child 50, Confined Liang 25, Liang ÷ 0).
  3. Data unlocking: Before voting, only “No vote today” is shown; after voting, today’s score, Liang Value distribution, and the 30-day trend curve are unlocked.
  4. Automatic refresh: Refreshes results from the CDN every 30 seconds.
  5. API throttling: The voting status API is accessed only at startup, when the panel is opened, or when the date changes, avoiding frequent requests.

Installation and Activation

Install it using DSH’s plugin management command:

npx @deepseek-ai/dsh plugin --profile web add github:water2004/dsh-liang-transformer-vote

After installation is complete, restart dsh web. After refreshing the browser, the “Liang Value” control will be visible in the bottom bar of the input box.

Usage

After installing and restarting, locate the “Liang Value” control in the bottom bar of the DSH Web session input box. Click the control and select a tier to cast a vote. After voting, you can view the unlocked today’s score, distribution, and 30-day trend curve.

Prerequisites and Notes

Using this plugin requires the following environment or configuration:

  1. Source site deployment: The target voting website must be deployed with the corresponding version and provide the following APIs:
    • GET /api/status: Returns today’s date and tier.
    • POST /api/vote: Supports credentialed CORS and writes a Cookie.
    • GET /results.json: Allows public CORS.
  2. Browser settings: The browser must allow source-site Cookies to synchronize today’s status with the original web page.
  3. Runtime environment:
    • DSH runs by default at http://127.0.0.1:3080.
    • Node.js >= 22 is required.
    • pnpm@11.16.0 is used.

Conclusion

Through DSH’s plugin mechanism, this plugin brings the interactive capabilities of an external web application into the local development environment. It is suitable for developers who need to frequently review voting trends or perform voting operations. The related source code and directory can be viewed at the links below.