dsh-plugin-shop README

项目的 README,来自 github.com/LivXue/dsh-plugin-shop。合并为一个 markdown 文件:README.md。

dsh-plugin-shop

The plugin shop for DeepSeek Harness — browse, install, enable, disable, and update dsh plugins, with every catalog change tracked in Git.

npm plugins filtered license plugin CI catalog

English | 中文


📦 Install the shop

Install the shop manually, or have an agent follow the automated steps below.

🧑 Manual installation

Prerequisite: Node.js. You can run DeepSeek Harness without a global installation using the command in its official documentation: npx -y @deepseek-ai/dsh web. Plugin management uses dsh plugin, which invokes both dsh and pnpm. Install these tools with npm install -g @deepseek-ai/dsh pnpm, then check that both are available with dsh --version and pnpm --version.

# With dsh installed globally, run the following command.
# Specify the version: pnpm 11 restricts newly published releases by default,
# so omitting the version may install an older release. The current version
# is shown below; check for updates with `npm view dsh-plugin-shop version`.
dsh plugin --profile web add [email protected]
# Alternatively, run the installation command through npx:
npx -y @deepseek-ai/dsh plugin --profile web add [email protected]

Replace web with your profile name if you use a different one. Restart dsh after installation to load the new plugin, then open:

Plugin shop in the left sidebar

🤖 Installation with an agent

An agent can run these steps without interaction. The --profile option is required. If it is omitted, dsh plugin exits with this error: error: required option '--profile <name>' not specified.

# 1. List available profiles ($DSH_HOME defaults to ~/.dsh; exclude node_modules).
ls -1 "${DSH_HOME:-$HOME/.dsh}/profiles" | grep -v '^node_modules$'

# 2. Specify the version to bypass pnpm's release cooldown and ensure
#    that the expected version is installed.
dsh plugin --profile <profile> add [email protected]

# 3. Verify the installation; exit code 0 above only means pnpm resolved the package.
dsh plugin --profile <profile> list --depth 0   # The output should include dsh-plugin-shop.

# 4. Restart the profile to load the new plugin.
dsh --profile <profile>

You can also verify step 3 by checking that dsh.profile.bundles in $DSH_HOME/profiles/<profile>/package.json includes the plugin. For troubleshooting, see the package README.

🖼️ Screenshots

The plugin shop's own page in the dsh sidebar
A plugin your dsh would refuse to install says why on its card The plugin shop in dark mode
A plugin your dsh would refuse to install says why on its card The plugin shop in dark mode

✨ Highlights

🗺️ How it works

The catalog is built daily in this repository. The build code lives in registry/.

flowchart TB
  subgraph HARVEST["1 · Discover — collect plugins from public sources daily"]
    direction LR
    NPM(["npm packages<br/>keyword dsh-plugin<br/>keyword deepseek-harness"])
    GH(["GitHub repositories<br/>with the same keywords<br/>as topics"])
  end

  subgraph GATE["2 · Screen — check every candidate on each build"]
    direction LR
    G1["Is it a loadable plugin?<br/><br/>Has a valid<br/>dsh.bundle"]
    G2["Can it be reviewed?<br/><br/>Has a license and<br/>an accessible source repository"]
    G3["Can it be installed?<br/><br/>Not deprecated on npm;<br/>repository listings also require<br/>no build scripts or<br/>workspace: dependencies"]
    G4["Is the package information credible?<br/><br/>Check integrity, publication time,<br/>and potentially misleading names"]
    G5["Is there information to display?<br/><br/>Has a valid dsh.catalog<br/>or an npm description"]
  end

  subgraph SHELVE["3 · List — record plugin details"]
    direction LR
    CAT["One of seven categories"]
    PEER["Required peer dependency names,<br/>without version ranges"]
  end

  NPM --> G1
  GH --> G1
  G1 -.-> REJ
  G2 -.-> REJ
  G3 -.-> REJ
  G4 -.-> REJ
  G5 -.-> REJ
  REJ[["Rejected — record the plugin name and explain why"]]
  G5 ==>|"All five checks pass"| CAT
  PEER ==> PUB[["4 · Publish — name JSON files by content hash, commit to Git, and publish to GitHub Pages and npm"]]

The shop runs locally as an npm package. Its code lives in packages/dsh-plugin-shop/. The catalog build and the local shop share a data schema; their code is independent.

flowchart LR
  CAT[["Plugin catalog<br/>index.json + plugins.sha256.json"]]
  CAT ==> HOST["5 · Host<br/>Request multiple sources concurrently<br/>Verify sha256 and cache the result"]
  HOST ==> DEP{"6 · Check dependencies<br/>Look for each peer dependency<br/>in your profile or web client"}
  DEP -->|"Missing dependencies"| BAD["Incompatible<br/>The card lists<br/>missing dependencies"]
  DEP -->|"All dependencies found"| GOOD["Ready to install"]
  BAD --> CLIENT["Client — the plugin shop page<br/>Calls nine shop/* methods on the host<br/>No network or filesystem access"]
  GOOD --> CLIENT
  CLIENT ==>|"dsh plugin add"| PROF[("your dsh profile")]

Two details are useful to understand:

✅ Project principles

Open to the community Publish to npm with the dsh-plugin or deepseek-harness keyword to make your plugin discoverable. No separate submission to this project is needed.
Traceable changes Catalog updates are committed to Git daily, so you can inspect each change and its history.
Explicit trust levels A human review applies only to the exact version reviewed. Other versions cannot inherit that status, preventing an author from using an earlier review to endorse a malicious release. Currently, registry/verified.yml is empty: no catalog entries have been reviewed by a human, and all plugins are in the community tier. Automated screening cannot replace a review of the plugin's code.
Restricted UI permissions The browser interface has no network or filesystem access. Compromising it does not grant runtime privileges.

🚫 Permissions and limitations

The shop does not provide sandbox isolation. Once loaded, a dsh plugin has access to the full ctx, including your filesystem, shell, and requests sent to the model. Installing a plugin means trusting it with these permissions. The shop does not restrict what a running plugin can do.

The shop does not display download counts, ratings, or reviews, and it will not offer installation from arbitrary URLs. For that, use dsh plugin add and decide whether to allow build scripts or pin a specific commit.

📚 Plugin catalog

The catalog is built daily and published as static JSON through the dsh-plugin-shop-catalog npm package and GitHub Pages. The shop requests it from multiple sources: your configured npm registry, npmmirror, npmjs, and GitHub Pages. It uses the first valid response to avoid delays from a slow connection to any one source. Each source serves identical data, which is checked against the sha256 hash in the index before use. Set DSH_SHOP_CATALOG_URL to use only a specific source.

File Purpose
/v1/index.json The index: schemaVersion, builtAt, the count of listed plugins, the rejected total, and content hashes. The badges above read these totals live. The file is small enough for regular polling.
/v1/plugins.<sha256>.json Plugin data, named by its content hash and safe to cache indefinitely.
/v1/stars.<sha256>.json GitHub star counts for each plugin, keyed by package name, when the daily build can retrieve them.
/v1/icons.<sha256>.json Plugin icons, each stored once as a data URL under the sha256 of its bytes. A plugin's icon field in the plugin data is its key here. Only icons that passed the daily build's checks are included, and the file is absent when there are none.

Each workflow run includes a rejection report listing every rejected plugin and the reason it was excluded, with details to help authors troubleshoot.

When catalog content changes, the data filenames change with their content hashes, and the old files are removed. However, index.json is cached for ten minutes, so it may temporarily reference files that no longer exist. If you fetch data directly from /v1/ and a data URL returns 404, fetch index.json again. Alternatively, read the same data from the dsh-plugin-shop-catalog npm package, which always bundles the index with its matching data files.

🏷️ Listing a plugin

Add dsh-plugin or deepseek-harness to the keywords in your package.json and publish to npm. The daily build will discover your plugin and list it once it passes the checks. If you do not publish to npm, your plugin can be listed from its GitHub repository: add either keyword as a repository topic and include name and dsh.bundle in the root package.json. The catalog pins a specific commit from the default branch as the plugin's version.

The optional dsh.catalog section lets you specify the category, summary, and capabilities. Without it, the catalog generates a listing from your npm description.

{
  "name": "dsh-hello-plugin",
  "keywords": ["dsh-plugin"],
  "dsh": {
    "bundle":  { "patch": "./cordis.patch.yml" },
    "catalog": {
      "category": "tool",
      "summary": { "en": "...", "zh": "..." },
      "capabilities": ["fs", "shell"]
    }
  }
}

See docs/schema.md for the full field reference.

Common reasons for exclusion:

🌾 Which packages are discovered?

Discovery matches dsh-plugin and deepseek-harness in npm keywords or GitHub repository topics, regardless of the package name. The cordis-plugin keyword identifies the underlying framework, but does not establish that a package can be installed as a DSH plugin. Built-in plugins distributed with dsh declare no npm keywords, so this discovery process does not find them.

If your community plugin uses Cordis and integrates with DSH, add either keyword and declare dsh.bundle in the appropriate manifest:

A general-purpose Cordis library without dsh.bundle cannot be installed as a DSH plugin.

🗂️ Repository layout

Path Contents
registry/ The catalog pipeline. Core logic (gate, tier, emit, pipeline) uses pure functions; surrounding modules (npm-client, build) handle network requests, file access, and other side effects.
registry/verified.yml Human review records tied to specific versions.
registry/denied.yml The denylist, with a reason for each entry.
registry/snapshots/ Daily manifest.lock snapshots.
packages/dsh-plugin-shop/ The shop's npm package, containing the host and client components.
docs/design/ Design specifications that guide the implementation.

🛠️ Development

pnpm install
pnpm test        # vitest
pnpm typecheck

pnpm build:catalog collects live data from npm and GitHub, making thousands of network requests and taking several minutes. All policy decisions are covered by offline tests. Run the full build when you change data fetching or file output and need to verify the complete workflow.

Project status and remaining work: docs/plans/2026-08-18-remaining-work.md. Design specification: docs/design/2026-08-18-dsh-plugin-shop-design.md.

🤝 Contributing

Contributions are welcome. Here are three ways to help, starting with a small correction:

See the contribution guide for detailed instructions, and follow the Code of Conduct when taking part in discussions. Report vulnerabilities or malicious plugins privately through the security reporting process, not in a public issue.

📄 License

Apache-2.0 © LivXue

dsh-plugin-shop (LivXue/dsh-plugin-shop)

正在搜索数据库…

这是什么?这是 DeepSeek Harness(dsh)的一个可浏览、可用 git 审计的插件市场——一个用于发现、安装、启用和更新 dsh 插件的目录。
这是隔离插件的沙箱,还是只是一个目录界面?它只是目录和安装界面,不是沙箱。你安装的插件会获得完整的运行时上下文——你的文件系统、你的 shell 和模型请求——这个项目只是在你点击安装之前告诉你这一事实。
怎么在插件市场里浏览和安装插件?全局安装 dsh 和 pnpm,运行一次 dsh,然后在 dsh 界面中打开 Settings → Plugins → Plugin shop;添加 bundle 后要重启 dsh,因为它不会应用到正在运行的进程。代理(agent)则以非交互方式运行 dsh plugin,此时 --profile 是必填项。
试用之前需要 Node.js 和 pnpm 吗?需要——Node.js 是必需的,而且插件管理会同时调用 dsh CLI 和 pnpm,所以两者都要事先全局安装。
这些插件上架前真的有人审查过吗?还没有——人工审查文件目前是空的,所以每个上架的插件都属于社区级别,安装任何一个都需要明确确认风险,而不是暗示它已经过审核。
使用这个插件市场需要先安装 DeepSeek Harness(dsh)吗?需要——这是一个叠加在现有 dsh 安装之上的插件管理器;运行 harness 本身是单独一步,上游文档写的是 npx -y @deepseek-ai/dsh web。
目录多久刷新一次?它每天重建一次并把结果提交到 git,因此每个新插件、每次更改和每次移除都会以可审查的 diff 形式呈现,而不是悄悄更新数据库。
兼容性检查是怎么判定插件「不兼容」的?目录只记录每个插件的 peer 依赖名称,从不记录版本范围;你自己的安装会根据你的实际配置解析这些名称,所以只有当某个模块在你的机器上确实缺失时,卡片才会显示 Incompatible。
怎么让我自己的插件上架到插件市场?给你的 npm 包打上 dsh-plugin 或 deepseek-harness 关键字并发布,或者用同样的方式标记一个 GitHub 仓库,要求根目录的 package.json 包含 dsh.bundle——下一次每日构建会自动收录,无需提交申请。
为什么不显示下载量、评分或从 URL 安装的按钮?该项目有意省略了这些:它跟踪 GitHub 星数但不跟踪安装热度,并且永远不会提供任意 URL 安装,把这种风险更高的能力限制在显式的 dsh plugin add 命令中。
作者
LivXue
大小
93.9 MB
星标
666
时长
3个月
提交 · 90 天