Back to home

xhvdhczd

dsh-plugin-marketplace

DeepSeek Harness (DSH) plugin: marketplace dashboard for the GitHub dsh-plugin topic - 2815 repos with stats, search and refresh

Stars
0
Language
JavaScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

dsh-plugin-marketplace

DeepSeek Harness (DSH) 插件:把 GitHub dsh-plugin topic 生态做成一个 Dashboard,集成在 DSH Web 的设置面板里。

topic dsh license

功能

  • 📊 统计卡片:仓库总数 / Star 总数 / 语言种类 / 今日更新数(基于全量 2815 个仓库)
  • 📈 语言分布:Top 6 语言条形图(GitHub 官方配色)
  • 🔍 搜索筛选:按名称/描述搜索 + 语言下拉筛选
  • 🗂️ 仓库卡片owner/repo、描述、语言、⭐Star、更新时间、标签、跳转 GitHub;每页 120 张,支持「加载更多」
  • 🔄 一键刷新:分段调用 GitHub Search API 抓取全部仓库(绕过单查询 1000 条深分页上限),带进度条与限流等待;失败时保留内置快照
  • 🌐 双语界面:跟随 DSH Web 语言(中文/English),自动适配深浅主题

内置数据

快照包含 2815 个 dsh-plugin topic 仓库(2026-08-15 抓取,总计约 28 万 Star、21 种语言),已嵌入 bundle,离线可用。

安装

# 在 DSH 环境安装(本地路径或 git 地址均可)
dsh plugin --profile web add <本仓库路径或 git 地址>
# 重启 web profile 生效;或编辑 profile 的 cordis.patch.yml(用户 patch 层)后由 boot HMR 热加载

安装后在 设置 → 插件市场 查看 Dashboard。

手动安装(用户 patch 层热加载,无需重启)

  1. 将本仓库复制到 ~/.dsh/profiles/node_modules/dsh-plugin-marketplace
  2. ~/.dsh/profiles/web/cordis.patch.yml 追加:
- insert:
    - id: plugin-dashboard
      name: dsh-plugin-marketplace

结构

├── package.json          # dsh.bundle + dsh.client 声明 + exports["./client"]
├── cordis.patch.yml      # bundle patch:把插件行插入 host 组合
├── lib/
│   ├── index.js          # host 入口(无 host 行为)
│   ├── client.js         # 浏览器 bundle(window.__ModuleLoader__.load CJS closure-factory)
│   └── types/            # TypeScript 类型声明
└── README.md

开发说明

  • lib/client.js 是手写的浏览器 bundle(CJS closure-factory),零构建依赖
  • 注册到 settings.section(id dashboard),字典命名空间 settings.pluginDashboard
  • 数据抓取逻辑:按 Star 分段查询 + 分页,绕过 GitHub Search API 深分页上限

License

MIT