dsh-plugin-page-tools: Adding Search and Pagination to the "Installed Plugins" Section of the DSH Plugin Page

Introduction

DeepSeek Harness (DSH) follows the “everything is a plugin” philosophy. The plugin directory page typically lists all installed plugins. When the number of plugins grows large, the list becomes very long, and scanning through it item by item to find a specific plugin is inefficient. Below is an introduction to a client-side plugin that targets only the “Installed Plugins” group, adding a search box and pagination controls to it.

What Is This

dsh-plugin-page-tools is a pure frontend DSH plugin maintained by user dhshu. It adds search and pagination functionality to the “Installed Plugins” group on the DSH plugin page. It does not modify the official page rendering logic and does not affect any other groups.

Core Features

Search

A search box appears below the “Installed Plugins” group heading. After typing, it matches against plugin titles, descriptions, and package names. The search rules are as follows:

  • Case-insensitive
  • Whitespace is collapsed and tokens are split by spaces
  • Every token must appear for a match
  • The hit count is displayed to the right of the search box, e.g. 9/25
  • When there are no results, a message reads: “No plugins match ‘…’.”

Pagination

A right-aligned page number control appears below the cards:

Items 1–10 of 22 · [10] per page · « ‹ 1 2 3 › »
  • Default items per page is 10; accepts values from 1 to 100
  • Changes take effect on Enter or blur; the value is persisted in local localStorage under the key dsh-plugin-page-tools.page-size
  • When the page size changes, the current card stays visible on screen; it does not jump back to page 1
  • When there is only one page, the page number buttons are hidden, leaving only the total count and items-per-page
  • When the page re-renders (enabling/disabling a plugin, refreshing, or switching tabs), the search term, page number, and page size are reapplied

Other Characteristics

  • The search term and page state are lost on page refresh; they only live within the current page session
  • No network requests are made and no data is uploaded
  • Official page actions such as enabling/disabling plugins, refreshing, or switching tabs do not disrupt the search and pagination state
  • Only the “Installed Plugins” group is affected; official built-in plugins and experimental plugins remain unchanged
  • UI strings are available in both Chinese and English, registered via ctx.locale with zh and en, following the DSH interface language

Installation & Activation

Prerequisites

  • DSH Desktop or Web GUI
  • The bundled dsh CLI tool
  • Node.js >= 22

The plugin is a pure frontend bundle with no build or packaging step.

Desktop:

dsh plugin --profile desktop add git+https://github.com/dhshu/dsh-plugin-page-tools.git

Web GUI:

dsh plugin --profile web add git+https://github.com/dhshu/dsh-plugin-page-tools.git

After installation, restart DSH or refresh the window (Ctrl+R) for the plugin to take effect.

On Windows, if dsh is not on the PATH, use dsh.cmd located in the DSH installation directory (<DSH install dir>\resources\runtime\cli\bin\dsh.cmd).

Install from a Local Directory (Development / Offline)

git clone https://github.com/dhshu/dsh-plugin-page-tools.git
cd dsh-plugin-page-tools
dsh plugin --profile desktop add .

Or create a symlink so that code changes take effect immediately:

dsh plugin --profile desktop add link:<absolute path to this repo>

Uninstall

dsh plugin --profile desktop remove dsh-plugin-page-tools

Typical Usage

  1. Open the “Plugins” page in DSH
  2. Switch to the “Installed Plugins” group
  3. Type a keyword in the search box below the group heading to view the filtered plugin list
  4. Use the pagination controls below to navigate pages or adjust the items per page

The search box supports clearing via Esc or clicking ×.

Use Cases & Notes

This plugin is well suited for DSH users who need to quickly locate a specific plugin among a large number of installed plugins.

Please review the source code and license before installing. The plugin runs with the permissions of the current DSH process; make sure to install it from a trusted source.

Conclusion

dsh-plugin-page-tools makes it more efficient to find a target plugin among a large collection by adding search and pagination to the “Installed Plugins” group. It is non-invasive to the official page rendering—filtered cards are simply hidden locally via display:none—maintaining full compatibility with official behavior.

  • Directory page: https://www.skillhub.cn/plugins/dhshu/dsh-plugin-page-tools
  • GitHub: https://github.com/dhshu/dsh-plugin-page-tools
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye