dsh-plugin-github-radar
Manifest validGitHub 雷达:DSH 面板,看趋势仓库、收藏、标星、一键浅克隆,README 可机翻成中文。
GitHub 雷达 · dsh-plugin-github-radar
在 DSH 里刷 GitHub 趋势:看今天什么在涨,收藏、读 README(一键中文)、把仓库拉下来。

装好后左栏多一个「GitHub 雷达」入口,点开就是趋势榜。它不是独立网页,是 DSH 自己的面板,亮色 / 暗色主题跟着 DSH 走。
2026-11-06 统一视觉后:日版暖纸 + 红铜,夜版满铺 DSH bg-base(#151517)+ 珊瑚;刊头改衬线。规范见 ~/Code/dsh-panel-kit/plugin-design-system/,最新真机截图见 plugin-design-system/shots/live-radar-*.png。
安装
git clone https://github.com/1578361862-art/dsh-plugin-github-radar.git
cd dsh-plugin-github-radar
dsh plugin --profile desktop add file:$PWD
重启 DSH 即可。
还没发布到 npm。也可以走索引源安装:把仓库里的 index.json 放到任意 https 地址,在「插件 → 发现 → 添加索引源」里填 URL。
卸载:
dsh plugin --profile desktop remove dsh-plugin-github-radar
file: 方式安装的,再删掉 ~/.dsh/profiles/desktop/node_modules/dsh-plugin-github-radar 这个软链。
能做什么
- 刷榜:今日 / 本周 / 本月,17 种语言,按仓库名和描述过滤
- 收藏:觉得有用先收着,存在本地
collection.json,不依赖账号、不需要登录 - 读 README:点开就在面板里渲染,不用跳页面
- 一键中文:正文翻成中文,代码块保持原样
- 克隆:浅克隆到
~/Code,拉下来就能开工
一次典型用法
- 打开面板,选「今日」和 TypeScript
- 点某个仓库看 README,拿不准就切「中文」
- 值得留:点收藏(本地记账,记下名字、描述、语言、星数、收录时间);值得试:点克隆
README 中文
弹层右上角「原文 / 中文」:
- 只翻正文,代码块原样保留
- 长 README 分批翻,点「继续翻译」接着来
- 翻过的部分存在本地,下次打开直接看
- 翻得不好可以「重新翻译」
翻译引擎在弹层左下角选:
| 引擎 | 说明 |
|---|---|
| DSH 已配置的模型 | 默认,不额外要 key |
| Google 翻译 | 质量稳,需要 Cloud Translation API key,按字符计费 |
| MyMemory | 免费机翻,限额很死,翻两篇就可能触发限流 |
配 Google 翻译
- GCP 控制台启用 Cloud Translation API
- 创建 API key,建议限制为只允许 Translation API
- 面板里切到「Google 翻译」,粘 key 保存
每月 50 万字符免费,超出约 $20 / 百万字符。你手上没有 GCP 额度的话,用 DSH 模型更划算。
登录 GitHub
登录只为了克隆私有仓库和抬高接口额度(60 → 5000 次/小时)。刷榜、读 README、收藏、克隆公开仓库都不需要登录,收藏本身就是纯本地的。
右上角「登录 GitHub」,两种方式:
- 粘贴 Personal Access Token(classic 要
repo范围,fine-grained 要有仓库读权限) - 留空,终端里先跑
gh auth login,插件会自动复用
token 只存在本机 ~/Data/github-radar/auth.json(权限 600),不会写进仓库或 .git/config。
数据在哪
~/Data/github-radar/ # 收藏、登录、设置、译文缓存
~/Code/<owner>__<repo>/ # 克隆下来的仓库
克隆目录带 owner__ 前缀,避免和 ~/Code 下已有的同名目录撞车。两个位置都能用 GITHUB_RADAR_HOME / GITHUB_RADAR_CODE 改。
常见问题
榜单空的,显示「这次没扫到」? GitHub 的 trending 页面解析失败或限流。未登录只有 15 条;等一会儿重试,或看看是不是 GitHub 改版了。
装完看不到面板? 重启 DSH。
翻译只翻了一半? 长 README 分批,点「继续翻译」。
提示没有挂载模型? 当前 profile 没配模型,或者改用 Google / MyMemory。
私有仓库克隆失败? 先登录,确认 token 对那个仓库有读权限。
已知限制
- 未登录时榜单只有 15 条
- GitHub 一改版,抓取就可能失灵(当天缓存还能看)
- 克隆是
--depth 1,要完整历史进目录git fetch --unshallow - README 用轻量渲染器,
<details>之类会被摊平
想改代码
宿主 / 客户端分工、接口列表、缓存与翻译实现见 docs/ARCHITECTURE.md;发布与分发见 docs/PUBLISHING.md。
许可
MIT © Yee
Comments
Loading…
Similar plugins
by kx121
到点叫醒 DSH 会话,翻你关注的 GitHub 仓库和主题,挑出值得跟的变化,写日报、记判重表。只读。
★ 2
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add dsh-github-digestby VCPr0j3k7
Discover and install DSH plugins from the GitHub topic dsh-plugin — browse, read READMEs with optional Chinese translation, install in one click
★ 0
MIT
JavaScript
Sep 25, 2026
dsh plugin --profile web add dsh-plugin-marketby Liaominduyh
github-dsh插件市场:DSH 插件市场(双源聚合 2830+ 插件浏览、官方一键安装、自动翻译、git 订阅管理)
★ 0
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsw-workshop-pluginby loker66fan
DeepSeek Harness 插件商城:启动页入口 + GitHub topic:dsh-plugin 实时搜索、一键安装/重启 · In-harness plugin market with real-time GitHub search
★ 2
NOASSERTION
TypeScript
Aug 16, 2026
dsh plugin --profile web add dsh-market-githubby morehao
Schedules a daily, weekly or monthly GitHub Trending digest, has a local trendradar core write Chinese summaries and period recaps, commits them to your own repo and opens the pull request, and shows
★ 16
↓ 4.2k/wk
MIT
TypeScript
Nov 20, 2026
dsh plugin --profile web add @morehao/dsh-github-trendingby ai798-Lab
DSH Wiki 情报面板:在 dsh 侧边栏直接查看 DeepSeek Harness 插件精选、排行榜与大事记(数据来自 dshwiki.com)
★ 0
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dshwiki-plugin