Pular para o conteúdo principal
S

dsh-ui-registry-aggregator

stolyarovmn/dsh-ui-registry-aggregator

Federated plugin registry aggregator for DeepSeek Harness — combine npm, GitHub, and JSON catalogs into one searchable index.

Instalar

dsh plugin --profile web add github:stolyarovmn/dsh-ui-registry-aggregator

README

Registry Aggregator for DeepSeek Harness

Registry Aggregator is a federated plugin-discovery UI for DeepSeek Harness. It combines trusted plugin registries, GitHub repositories, and compatible JSON catalogs into one normalized index while leaving installation and plugin lifecycle management to the native DSH Plugin Manager.

Screenshots

Connected sources

Built-in npm and GitHub sources are health-checked, counted, and managed from the Sources view.

Registry Aggregator — connected sources

Search across connected sources, filter results, inspect evidence, and install a verified DSH bundle without leaving DeepSeek Harness.

Registry Aggregator — Browse search

Highlights

  • Federated Sources — combine npm, GitHub, and compatible JSON catalogs.
  • Browse — search all enabled sources as one deduplicated index.
  • Verified DSH bundles — npm/GitHub candidates are checked for a root dsh.bundle.patch before they are exposed as installable results.
  • Evidence — display release channel, GitHub stars, npm 30-day downloads, freshness, source metadata, and declared DSH compatibility when available.
  • Filters — stable releases, age, category, and DSH metadata.
  • Multi-sort — compose Stars, Downloads, Freshness, and Name; each criterion can be ascending or descending.
  • Pagination — 20, 50, or 100 items per page with navigation above and below results.
  • Native install — one-click installation through the DSH Plugin Manager Host API.
  • Fallback command — installable results also expose their dsh plugin add … command.
  • Responsive popularity metadata — missing GitHub star counts are hydrated after Browse renders, so GitHub metadata cannot block the initial search result.

What's new in 0.4.15

0.4.15 focuses on reliability and native DSH integration while preserving the existing Browse evidence path.

  • lightweight source health checks are separated from verified DSH bundle counts;
  • npm and GitHub counts load independently with native DSH progress indicators;
  • GitHub requests retry transient failures, while health no longer consumes Search API quota;
  • installed bundles are detected through the native Plugin Manager and duplicate installs are disabled;
  • newer discovered versions are shown as advisory Update available notices;
  • active installs can be cancelled through the native Plugin Manager request id;
  • npm results can be enriched with exact GitHub provenance without broad GitHub pagination;
  • search relevance is presentation-only, so GitHub stars, downloads, evidence, pagination, and explicit sorting keep their existing behavior.

Tested with DSH 0.1.7-rc.2.

Architecture

Plugins → Installed → @stolyarovmn/dsh-ui-registry-aggregator
  ├─ Sources / Browse UI
  ├─ ctx.configForms → source configuration
  ├─ authenticated Connection RPC (/api/plugin-sources/*)
  │    └─ Host adapters
  │         └─ normalize → deduplicate → verify → filter → sort → paginate
  └─ ctx.remote.pluginManager
       ├─ inspect(spec)
       └─ installBundle(spec)

The browser does not fetch arbitrary catalog URLs directly. External source access happens on the Host side through the authenticated DSH Connection RPC boundary.

GitHub star enrichment is intentionally separate from the Browse critical path:

Browse request
  → discover / verify / filter / sort / paginate
  → render cards
  → request missing GitHub stars for visible repositories
  → update cards in place

Install

npm

dsh plugin --profile web add @stolyarovmn/dsh-ui-registry-aggregator

If you run DSH through pnpm dlx:

pnpm dlx @deepseek-ai/dsh@0.1.7-rc.1 plugin --profile web add @stolyarovmn/dsh-ui-registry-aggregator

GitHub

pnpm dlx @deepseek-ai/dsh@0.1.7-rc.1 plugin --profile web add "git+https://github.com/Stolyarovmn/dsh-ui-registry-aggregator.git"

Enable the installed bundle, then open:

Plugins → Installed → @stolyarovmn/dsh-ui-registry-aggregator

npm and GitHub sources are added automatically on first use.

Source types

TypeBehavior
npmnpm registry discovery using DSH-related package metadata and keywords.
githubGitHub repository discovery using DeepSeek-Harness-specific topic intersections.
dsh-plugin-shopJSON catalog adapter for a compatible source endpoint.
dshplugin-appJSON catalog adapter for a dshplugin.app-compatible endpoint.
custom-jsonPublic JSON catalog.
corporateJSON catalog with Host-controlled private-network and credential permissions.

A JSON source may return a bare array or an object containing plugins, items, or results.

Example:

{
  "plugins": [
    {
      "id": "pdf-tools",
      "name": "PDF Tools",
      "description": "Extract and merge PDF documents.",
      "version": "1.2.0",
      "package": "@example/dsh-plugin-pdf",
      "repository": "https://github.com/example/dsh-plugin-pdf",
      "install": {
        "type": "npm",
        "spec": "@example/dsh-plugin-pdf@1.2.0"
      }
    }
  ]
}

Identity precedence is npm package, canonical repository URL, then source-specific id. Duplicate records preserve source attribution, versions, and normalized category tags.

Discovery quality

Registry Aggregator treats registry search hits as candidates, not automatically as installable DSH plugins.

  • npm candidates are verified against their published package metadata.
  • Exact npm package names can be resolved from the registry packument instead of relying only on the eventually-consistent search index.
  • Short and partial queries combine cached discovery with query-specific npm/GitHub discovery.
  • GitHub discovery uses DeepSeek-Harness-specific topic intersections instead of the broad dsh-plugin topic alone.
  • npm/GitHub candidates must declare a root dsh.bundle.patch before the UI exposes Install or the fallback command.
  • Candidates that are not valid DSH bundles are removed before totals, sorting, pagination, and rendering.
  • npm/GitHub source counters represent verified installable bundle candidates rather than raw keyword/topic cardinality.

Popularity evidence

  • npm download counts come from npm package/download metadata.
  • GitHub stars are taken from GitHub discovery when the result already contains them.
  • If a visible npm-discovered plugin has a GitHub repository but no star count, the client requests the missing repository statistics after the Browse result is rendered.
  • Async star lookup is cached and limited to visible results; failures are ignored rather than failing Browse.

Sorting

Sorting criteria are independent and composable:

  • Stars
  • Downloads
  • Freshness
  • Name

Clicking a criterion cycles:

off → descending → ascending → off

The order in which criteria are enabled defines priority.

Compatibility

  • DSH: >=0.1.7-rc.1 <0.2.0
  • Tested with DSH 0.1.7-rc.2

Exact package compatibility is read from package metadata when a publisher declares it. Installation is validated again by the native DSH Plugin Manager.

Security

Browser-editable source settings never contain credentials.

Host protections include:

  • HTTP(S)-only source URLs;
  • rejection of URL-embedded credentials;
  • blocking of loopback, link-local, private, multicast, reserved, and other non-global-unicast destinations by default;
  • DNS pinning and redirect destination revalidation;
  • source, response-size, result-count, concurrency, and RPC-size limits;
  • Host-controlled allowlists for private sources and environment-based bearer tokens;
  • install-spec validation before a command is exposed or sent to the Plugin Manager.

The Install action executes third-party code through the native DSH Plugin Manager. Review the source and package before installation.

Host configuration

- id: registry-aggregator
  name: '@stolyarovmn/dsh-ui-registry-aggregator'
  config:
    timeoutMs: 10000
    maxResponseBytes: 2097152
    maxPlugins: 2000
    maxSources: 20
    maxTotalPlugins: 5000
    maxRpcBytes: 4194304
    concurrency: 4
    privateSourceIds:
      - corporate
    auth:
      - sourceId: corporate
        tokenEnv: DSH_CORPORATE_REGISTRY_TOKEN

Development

npm install
npm test
npm run test:pack

License

MIT

Plugins relacionados