dsh-plugin-market: Adding GitHub Plugin Discovery and One-click Installation to DSH Desktop

Introduction

The official DeepSeek Harness (DSH) desktop version comes with a plugin manager, but its capabilities are focused on the installation and uninstallation of “known package names or specifications”: you fill in a dependency, and it writes it into the profile for you. Usable third-party plugins in the community are often listed under the GitHub topic dsh-plugin, but there is no unified browsing entry provided officially. If you frequently need to extend capabilities within the harness but do not want to search repositories one by one, copy READMEs, and manually piece together installation commands, dsh-plugin-market consolidates discovery, preview, and installation into the current profile within a single interface.

The following section introduces the positioning, capabilities, and installation key points of this plugin. Facts are based on the README and package.json (version 0.1.0, MIT license) of the repository VCPr0j3k7/dsh-plugin-market.

What is this

dsh-plugin-market is published by the maintainer VCPr0j3k7 and is classified as a Network Tool in the DSH ecosystem. In one sentence: it supplements the discovery capability for third-party plugins for the official DSH desktop version (desktop profile)—fetching repository lists from the GitHub topic dsh-plugin, supporting browsing, previewing READMEs (optional DeepL Chinese translation and local keyword extraction), one-click installation into the current profile, and reading shared configurations such as GitHub acceleration proxies on the client side.

It does not replace the official plugin manager: installation, uninstallation, and enable/disable still follow profile semantics (rewriting dsh.profile.bundles); it simply places the entry point within the same UI. Lists and details rely entirely on the GitHub Public API and do not pass through intermediate aggregation services.

The plugin is installed into the profile as an independent bundle, containing both the host side (Node.js, Cordis plugin index.js) and the client side (browser client.js).

Core Features

Plugin Market Browsing and Installation

  • Lists repositories under the topic dsh-plugin via POST /market/list, with a disk cache of approximately 1 hour.
  • Expanding a card triggers POST /market/details to fetch the README, optional translations, and locally extracted Chinese keywords.
  • POST /market/install downloads and installs into the current profile; POST /market/cancel can cancel ongoing downloads. Installation progress is obtained by the client polling GET /events?since=<seq> every 300ms for deltas.

The sidebar slot sidebar.panellist provides the “Plugin Market” entry; the main area and the README preview drawer are registered in main and shell.overlay respectively.

README Preview and Translation

When expanding a card, the approximate order is:

  1. Prioritize matching author-provided Chinese README filenames (e.g., README.zh-CN.md); if matched, use the raw content directly.
  2. Otherwise, use the GitHub readme endpoint to fetch the body.
  3. Match local dictionary to extract Chinese keywords (without consuming external quotas).
  4. If DeepL is configured and the body’s CJK ratio is below ~8% with fewer than 30 Chinese characters, optional machine translation is available.

The drawer provides the full original text (Markdown rendered, limit ~400k characters), Chinese translation (plain text, single translation limit constrained by translate.maxCharacters etc.), and a Markdown source view. Rendering uses a self-written subset and HTML whitelist to prevent script injection from untrusted READMEs.

GitHub Acceleration Proxy and Token

Configuration is available in ~/.dsh/dsh-extras.json (shared with sibling desktop settings plugins):

  • githubProxy.enabled / githubProxy.baseUrl: Disabled by default; when enabled, paths for api.github.com, raw.githubusercontent.com, codeload.github.com are rewritten to a user-built reverse proxy, and 302 redirects are followed manually to avoid fetch jumping to unproxied domains.
  • githubToken: Left empty for anonymous API quota (README states ~60 times/hour); filled in for authenticated quota. If the proxy is plain HTTP, the token is sent via the proxy, requiring self-evaluation of link trustworthiness.

Relationship with Official CLI

Except for the one-click installation in the UI, behavior is consistent with the official profile. The plugin cannot restart the host process: POST /restart-host will prompt the user to manually exit and reopen the harness; after bundle changes, a user restart is still required.

Environment Requirements

Item Requirement
Node.js ^22.19.0 \|\| >=24
DeepSeek Harness Official desktop version, desktop profile
pnpm Use the pnpm bundled with the official desktop version, no separate installation needed
DeepL API Key Optional, only required for README machine translation

Installation and Activation

Choose one of the following to install dependencies:

# Install into profile using pnpm bundled with the official desktop version
pnpm add "file:<absolute path to plugin directory>"
# Or install directly from GitHub
pnpm add "github:VCPr0j3k7/dsh-plugin-market"

pnpm add only writes to the profile’s dependencies and does not automatically register the bundle. DSH assembles the plugin tree according to dsh.profile.bundles upon startup, so you must add the package name to the dsh.profile.bundles array in ~/.dsh/profiles/desktop/package.json, for example:

// ~/.dsh/profiles/desktop/package.json
{
  "dependencies": {
    "dsh-plugin-market": "file:/path/to/dsh-plugin-market"
  },
  "dsh": {
    "profile": {
      "bundles": [
        // …official bundles…
        "dsh-plugin-market"
      ]
    }
  }
}

Common phenomenon when registration is missed: dependencies are in node_modules, but the interface is blank with no clear errors in the log—the package was never loaded.

A more convenient way is to use the official CLI, which executes reconcilePlugins() after pnpm completes, automatically appending dependencies that declare dsh.bundle.patch to bundles:

dsh plugin --profile desktop add github:VCPr0j3k7/dsh-plugin-market

Regardless of the method, a restart of the harness is required after installation; running instances will not hot-update plugins.

Uninstallation:

pnpm remove dsh-plugin-market

If dsh.profile.bundles still contains dsh-plugin-market, manually delete the corresponding entry and then restart.

Activation conditions require both: the package is resolvable in dependencies, and the package name appears in dsh.profile.bundles.

Typical Usage

  1. After installation and restart, open “Plugin Market” in the sidebar.
  2. Wait for the list to load from the GitHub topic (if the network is slow or rate-limited, configure githubToken or githubProxy in settings).
  3. Click a repository card to expand details and read the README in the drawer; for Chinese, rely on the author’s Chinese README, local keywords, or use the DeepL translation view after configuring translate.apiKey.
  4. After confirming the repository and license, use the one-click installation in the interface to load it into the current profile; monitor installation progress events and cancel downloads if necessary.
  5. If the profile has bundle changes, manually restart the harness as prompted to activate the new plugin.

The “Test Connectivity” button in the settings page probes the GitHub proxy root path and a raw request; it is considered available only if both pass.

Use Cases and Notes

Who it is for: Agents or harness developers using the DSH official desktop version who want to systematically browse third-party plugins from the community topic dsh-plugin and preview descriptions within the same window before installing.

Important Notes:

  • The plugin and harness run with the current DSH process privileges; one-click installation rewrites profile dependencies and bundles. Before installation, read the target repository source code, license, and maintenance status; do not trust code solely based on README rendering results.
  • Discovery capabilities rely entirely on GitHub; anonymous API has rate limits. Domestic networks can build proxies, but they must be consistent with the path prefix mapping in the README, otherwise silent 404s may occur.
  • The official desktop version’s “Plugin Library” related switches may clean non-official bundles via sanitizeProfile(...); if the market plugin disappears after running for a while, first check if dsh.profile.bundles has been rewritten.
  • Community directory pages like SkillHub (plugins/VCPr0j3k7/dsh-plugin-market) facilitate retrieval but have no official affiliation with DeepSeek / High-Flyer and are not an official app store.

Conclusion

dsh-plugin-market turns the GitHub topic dsh-plugin into a workflow that is browsable, readable via README, and installable into the desktop profile with one click. With optional DeepL and GitHub proxy support, it fills the gap on the “discovery” side of the official manager. To learn more about implementation details, routing tables, and known limitations, see the GitHub repository VCPr0j3k7/dsh-plugin-market; for the plugin index page, see the SkillHub Directory.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye