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)

Ищем в базе…

Что это?Это обозримый и проверяемый через git магазин плагинов для DeepSeek Harness (dsh) — каталог, через который вы находите, устанавливаете, включаете и обновляете плагины dsh.
Это песочница, изолирующая плагины, или просто интерфейс каталога?Это просто каталог и интерфейс установки, а не песочница. Устанавливаемый плагин получает полный контекст выполнения — вашу файловую систему, вашу оболочку и запросы к модели, — этот проект лишь сообщает вам этот факт до того, как вы нажмёте «установить».
Как просматривать и устанавливать плагины из магазина?Установите dsh и pnpm глобально, запустите dsh один раз, затем откройте Settings → Plugins → Plugin shop в интерфейсе dsh; после добавления бандла перезапустите dsh, так как к работающему процессу он не применяется. Агенты же запускают dsh plugin в неинтерактивном режиме, где --profile обязателен.
Нужны ли Node.js и pnpm до того, как пробовать?Да — Node.js обязателен, а управление плагинами порождает и CLI dsh, и pnpm, так что обе вещи должны быть заранее установлены глобально.
Кто-нибудь вообще проверял эти плагины до публикации?Пока нет — файл человеческой проверки сейчас пуст, поэтому каждый плагин в каталоге относится к уровню community, и установка всегда требует явного подтверждения риска, а не намекает, что плагин проверен.
Нужно ли уже иметь установленный DeepSeek Harness (dsh), чтобы пользоваться магазином?Да — это менеджер плагинов поверх уже установленного dsh; запуск самого харнеса — отдельный шаг, в исходном проекте он описан как npx -y @deepseek-ai/dsh web.
Как часто обновляется каталог?Каталог пересобирается ежедневно, и результат коммитится в git, так что каждый новый плагин, каждое изменение и каждое удаление видны как проверяемый diff, а не как безмолвное обновление базы.
Как проверка совместимости решает, что плагин 'Incompatible'?Каталог хранит только имена 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 дней