跨生态聚合数据层("聚合的聚合"):把 GitHub dsh-plugin 主题与 npm registry 归一化为开放 JSON 索引,供模型工具、CLI 与轻量 stdio MCP 服务查询。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:863683348/dsh-feed
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
不直接做 UI,做开放数据层:把 GitHub dsh-plugin topic 和 npm registry 归一化成一份开放 JSON 索引,交给任何 Agent / CLI / MCP / 未来 UI 消费。你的插件只做"同步 + 查询"——别人基于这份数据再建 UI。
为什么需要它
- 现有市场各自抓数据、各自维护,闭源且重复。
dsh-feed成为数据源:同步一次,全生态可查。 - 一个插件,三种消费面:
- 模型工具:
feed_sync/feed_search/feed_stats - CLI:
dsh-feed sync|search|stats|mcp - MCP server(实验性):任何 MCP 客户端(Cursor、Claude Desktop…)都能查
- 模型工具:
- 索引是开放 JSON 文件(默认
.dsh/dsh-feed.json),明文、可 diff、可被任何工具读。
安装
dsh plugin --profile <profile> add dsh-feed
# 或只用 CLI(npm 全局):npm i -g dsh-feed
用法
模型侧
| 工具 | 说明 |
|---|---|
feed_sync |
拉取 GitHub topic + npm → 写索引(需网络) |
feed_search |
自然语言查索引(英文词 + 中文 2-gram) |
feed_stats |
索引统计:总数、来源、热门 topic、npm 覆盖 |
CLI
dsh-feed sync # 同步(可选 GITHUB_TOKEN 提升限额)
dsh-feed search "移动端 远程" # 查询
dsh-feed stats
dsh-feed mcp # 极简 stdio MCP server(实验性)
MCP 配置示例(任意 MCP 客户端)
{ "mcpServers": { "dsh-feed": { "command": "dsh-feed", "args": ["mcp"] } } }
索引格式(开放数据层)
{
"updated": "2026-08-16T...",
"sources": { "github": 200, "npm": 180 },
"count": 380,
"plugins": [
{ "name": "owner/repo", "url": "...", "description": "...", "stars": 42, "topics": ["dsh-plugin", "notify"], "npmName": "dsh-xxx" }
]
}
设计
lib/sync.js— 抓取 + 归一化(GitHub search API + npm search API,可注入 token)。lib/query.js— 纯查询逻辑(分词/评分/统计),零依赖可单测。lib/index-store.js— 索引文件读写(相对路径 + 防逃逸校验)。bin/dsh-feed.js— CLI + 极简 stdio MCP server(JSON-RPC 2.0)。- 安全:索引只写会话工作区内的
.dsh/;网络请求仅发生在feed_sync(显式触发)。
Roadmap
- 每小时定时同步(
dsh-schedule接入)。 - Web API 只读端点 + 更完整的 MCP 工具(分页/过滤/详情)。
- 与 dsh-need-finder / dsh-recipe 共享同一数据层(去重复抓取)。
测试
node test/feed.test.mjs
License
MIT
链接
同类插件
dsh-market/dsh-market★ 654
(推荐)装在 DSH 里的插件市场:设置页内逛/搜全部社区插件,按分类筛选,确认后一键安装,已装插件一目了然。
bradeGithub/DSH-Plugins-Marketplace★ 99
面向 GitHub dsh-plugin 话题的插件与技能市场:设置页内逛自动收录的全量索引(CI 每 2 小时刷新),一键安装带类型识别、安装脚本与宿主依赖遮蔽安全检查、环境变量密钥管理,并附 STANDARD.md 识别层规范。
Sanqi-normal/dsh-webui-market-plugin★ 66
dsh Web GUI 内的社区插件市场:浏览 awesome-dsh-plugin.com 目录,从 设置 → 插件 → 插件市场 安装/卸载插件到 profile。
whyihaveyou/dsh-suite#plugin-manager★ 38
DSH Web UI 内置插件商店:浏览、搜索、一键安装、兼容性徽章。
Noob-stupid/dsh-plugin-hub★ 34
插件管理面板:已安装插件一键启用/停用,内置 GitHub dsh-plugin 插件市场,支持详情查看与一键安装。
yyyyukari/dsh-plugin-workshop★ 26
创意工坊式插件浏览器:侧栏常驻入口,搜索/最热/最新/近 7-90 天飙升榜、中文关键词映射、描述与 README 机翻、插件特征验证过滤、一键安装/更新。