dsh-plugin-index: DSH plugin index validated by strict package.json checks

Preface

Installing third-party plugins in DSH typically involves browsing community directories, checking star counts or keywords, and then copying the installation command. Many directories use “popularity” as a substitute for “evidence”: in the README, the author once sampled and verified a top directory, and found that approximately 40% of entries marked as available under the default star-count sorting were not actually DSH plugins at all.

The official documentation also notes that package names and patch filenames are merely conventions, and filtering by name, star count, or keywords can produce systematic errors.

dsh-plugin-index (maintainer ymck-x) is a client-side DSH plugin: it lets you browse verified third-party plugins within the Harness and supports one-click installation. The criterion is simple — whether the declaration pointed to by dsh.bundle.patch exists in the package.json, consistent with the dsh.bundle.patch in the repository README and this plugin’s package.json.

What Is This

  • Positioning: A DSH plugin index; it indexes over 10,000 plugins that have passed the hard-verification check described above (the count grows as the crawl pipeline updates).
  • Category: Client-side (dsh.client injects the settings UI).
  • Data form: The manifest is generated by a server-side crawl pipeline; this repository only consumes it. There is also a web version at cj.codexve.cn, sharing the same data source as the panel.
  • License: MIT (README and package.json).

Core Features

Browse and Install Within DSH

Path: Settings → Plugins → Plugin Index.

  • Filter by functional category (15 categories) or by star count; sort by Evidence Strength, Star Count, or Last Updated.
  • Each entry displays the repository name, author, description, star count, forks, last-updated date, and category tags.
  • You can “Copy” the equivalent manual installation command, or click “Install” to let DSH handle it.

Verification and Manifest Sources (Read-Only Evidence)

Discovery and verification proceed in three steps (summary of the README table):

Step What It Does
Discovery GitHub topic shard enumeration + code-search marker files + npm keyword search, union of all three sources
Verification Reads only package.json, checks for the dsh.bundle declaration
Address Resolution Prioritizes npm version → tag → commit; does not use branch addresses

The default sort is by Evidence Strength (how many files were read, whether dependencies are complete), not using star count as a quality conclusion.

Data Loading Strategy

The full manifest is about 4 MB; pulling it via CDN from within China is prone to timeouts, so it is split into two layers:

Layer Content Purpose
Built-in snapshot First 500 entries, bundled into lib/client.js (approx. 180 KB) Fallback when remote fetch fails; reduces plugin package size
Remote index + shards index.json + p/<timestamp>-N.json (500 entries per shard) Fetch the index when the panel opens, then pull shards on demand

When the remote fetch fails, the panel explicitly indicates that the built-in snapshot is currently being used (older versions silently fell back, making it easy to mistakenly believe the data was up to date).

Installation and Activation

The installation command must use a full tarball URL with a tag (README original):

dsh plugin --profile desktop add https://github.com/ymck-x/dsh-plugin-index/archive/refs/tags/v0.1.4.tar.gz

Replace desktop with your profile directory name under ~/.dsh/profiles/. Restart dsh after installation.

Notes (emphasized in the README):

  • Do not use the github:owner/repo shorthand — pnpm may resolve it as SSH, and anonymous access to GitHub will be denied.
  • Do not use branch addresses like refs/heads/main.tar.gz — branch content changes, and pnpm remembers the install-time fingerprint; after the author pushes updates, installing other plugins may trigger ERR_PNPM_TARBALL_INTEGRITY.

This plugin runs with the permissions of the current DSH process; before installing any third-party plugin, you should still inspect the source code and license yourself.

Typical Usage

  1. Install via the command above and restart DSH.
  2. Open Settings → Plugins → Plugin Index, narrow the scope by category or star count, and use “Evidence Strength” sorting to see entries with more complete verification first.
  3. Select an entry and click “Install”, or click “Copy” to run the manual command in your terminal (suitable when you need to verify the URL).
  4. If you prefer browsing in a browser, open https://cj.codexve.cn/ — the layout is more spacious, and the data is identical to the panel.

Use Cases and Caveats

Who it’s for: Developers who frequently try community plugins in DSH and want the list to contain “real plugins” rather than misindexed repositories.

Star counts and maintenance signals: The README notes that approximately 34.6% of the 11,443 sampled entries have 0 stars; 0 stars does not mean unusable, and the panel still offers star-count filtering and sorting. More practical signals include Last Updated (pushed_at) and forks. “Address locked” means the URL was resolved successfully via tag/commit, but it does not guarantee the plugin can be installed or used on your current DSH version — runtime verification still requires your local DSH.

Classification and limitations: Functional categories are assigned by keyword rules matching descriptions, keywords, package names, and repository names — no model is involved; approximately 16% may fall into “Other”. Star counts serve as reference signals only.

Self-build (for maintainers/contributors): Requires data/plugins.json produced by the server (not committed to the repository). You can run python build-client.py, python build-site.py, or use refresh-snapshot.ps1 to refresh from the server before publishing. See the repository README for details.

Links

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

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

Xiaoye