lhh010/dsh-minigames
DSH Web UI 右侧小游戏面板:18 款离线小游戏(恐龙跳一跳 / 俄罗斯方块 / 坦克大战 / 扫雷 / 2048 / 数独 / 吃豆人 / 跟枪练习等),可扩展游戏注册表,等待模型回复或修 bug 时的摸鱼神器
Project Overview项目介绍
dsh-minigames is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a floating mini-game window to the DSH Web UI. To install the plugin, you first need a working DSH build dated 20260808 or newer and the pnpm package manager properly installed on your system. You can install it via the DSH CLI by running dsh plugin --profile web add '@dsh-external/dsh-minigames@github:lhh010/dsh-minigames#v0.3.20' that matches your installed DSH version, or clone the official repo and build it locally before adding the local path to DSH.
After installation, you will see a visible small circular game button docked to the bottom right corner of your DSH interface by default. You can drag the button to freely reposition it anywhere on the screen, and it will remember your own personal preferred position between browser refreshes and full page reloads. Clicking the button opens the resizable floating game panel, where you can choose from 18 different popular fully offline mini-games, adjust the panel width, and snap it to any edge of your screen.
The plugin is open source under the permissive BSD-3-Clause license, and all 18 included games are fully offline with no external network or resource files required. It has a well-documented predefined extension interface that lets third-party developers easily add new mini-games by implementing a simple registration interface. There are a few minor known limitations documented in the README, including that keyboard controls only work when the game area is actively focused, and per-level progress does not persist across different browser sessions. After installation, you need to perform a hard refresh of your browser to load the plugin correctly.
这是一款专为DeepSeek Harness(DSH)开发的原生插件,为DSH网页端添加了可折叠的浮动小游戏窗口,供用户在等待模型回复或修复代码的间隙休闲使用。插件自带18款完全离线的小游戏,全部基于Canvas绘制,无需额外资源文件。折叠后仅保留可拖动的圆形游戏按钮,展开后可自由移动窗口,位置和状态会在刷新后自动恢复。
这款插件面向所有DSH用户,供用户在等待模型生成内容的间隙休闲使用。安装完成后,用户可在DSH界面右下角找到默认的圆形游戏按钮,单击即可展开游戏选择面板。拖动窗口左边缘可调整面板宽度,松开后靠近屏幕边缘会自动吸附停靠,选择想要游玩的游戏点击卡片即可开始游玩。
插件采用BSD-3-Clause许可证开源,需搭配20260808及以上版本的DSH快照和pnpm包管理器使用,用户需要根据自己的DSH版本选择对应标签的插件版本,否则可能出现启动错误。安装完成后需要强制刷新浏览器才能正常加载,当前支持第三方开发者按照预留接口添加新游戏,存在少量已知功能限制,比如关卡进度不跨会话保存。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-minigames(lhh010/dsh-minigames)
仓库:https://github.com/lhh010/dsh-minigames
本站详情页:https://www.yhbd.top/plugins/lhh010-dsh-minigames/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 BSD-3-Clause · ⭐ 34 · 最近提交 2026-10-03 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 34 stars - an early-stage project星标 34,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add '@dsh-external/dsh-minigames@github:lhh010/dsh-minigames#v0.3.27'
把 lhh010/dsh-minigames 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-minigames
简体中文 | English
DSH Web UI 浮动小游戏窗口:等待模型回复或修 bug 时的摸鱼神器。
- 折叠态:窗口隐藏后留下一个圆形浮动 🎮 按钮(默认右下角),可自由拖动并记住位置, 按住拖动(位移超过 5px)松手不会打开窗口;单击才重新打开面板。
- 展开态:浮动小游戏窗口,拖动标题栏可随意移动,松手靠近屏幕边缘自动吸附 (左右停靠/上下贴边),位置、停靠状态与宽度均持久化,刷新后自动恢复;默认宽度 min(50vw, 640px),可拖左缘调整 360px–80vw,面板内自由选择游戏。
- 游戏(全部离线、零资源文件、Canvas 绘制):
- 🦖 恐龙跳一跳 —— Chrome 经典小恐龙(昼夜/雨天);
- 🧱 俄罗斯方块 —— 经典下落消除;
- 🛡️ 坦克大战(带 AI) —— 2D 坦克对战,敌军追踪 + 视线开火,共 3 波;
- 💎 消消乐 —— 点击消除四连通同色块,目标分过关、逐关递增;
- 🔢 华容道 —— 16 格数字华容道(15-puzzle),滑动方块按序排列,用时越短分越高;
- 🐍 贪吃蛇 —— 经典贪吃蛇,穿越边界会从对侧出现(环面地图);
- 🔢 2048 —— 方向键滑动合并数字,合成 2048 即达成;
- 💣 扫雷 —— 左键翻开、右键标旗、双击数字自动展开周围;
- 🃏 记忆翻牌 —— 翻开两张配对,步数越少分越高;
- ⚫ 五子棋 vs AI —— 15×15,AI 会进攻也会堵你;
- 🦘 跳一跳 —— 按住蓄力、松开起跳,落点越准加分越多;
- 🧱 打砖块 —— 移动挡板反弹小球,清完进入下一关、球速递增;
- 🔨 打地鼠 —— 30 秒限时点击打地鼠,命中 +1、打空 -1;
- ⚫ 黑白棋 vs AI —— 8×8 奥赛罗,角最重要,无棋可下自动让位;
- 🐦 Flappy —— 点击/空格振翅穿过柱子缝隙,越远分越高;
- 🧩 数独 —— 9×9 标准数独,D 键切换难度,填满无冲突即胜;
- 🟡 吃豆人 —— 经典迷宫吃豆,力量豆可反吃幽灵;
- 🎯 跟枪练习 —— FPS 跟枪:锁定鼠标转视角压住三维漂移靶子,左键射击有后坐力。
- 预留扩展接口:游戏注册表(
registerGame),新增游戏只需实现一个接口。 - 体验细节:隐藏窗口/切换标签页时自动暂停游戏、恢复时继续;每局最高分存 localStorage;键盘输入只在点击游戏区域后生效,不会劫持聊天输入框。
- 尺寸自适应:游戏画布按面板真实可用空间自适应(工具条+画布+按键提示整体 始终完整展示,不出现滚动条;浏览器缩放/面板拖宽缩窄都会自动重排),宽高上限 960px。
你的 DSH 版本决定装哪个插件版本(装错会崩:常见症状
useConversation is not a function)
- DSH 0.1.2-alpha.1 ~ 0.2.1-alpha.1:装新版(下方默认命令;各 DSH 版本对应的插件 tag 见下方变更记录)
- 更旧的 DSH(0.1.1-rc.2 及以前):无可用版本
安装
前置:已构建的 DSH 20260808+ 快照、pnpm。
# 方式一:git 依赖固定 tag(公开镜像,推荐;也可用 github:lhh010/dsh-minigames)
dsh plugin --profile web add '@dsh-external/dsh-minigames@github:lhh010/dsh-minigames#v0.3.27'
# 方式二:本地安装
git clone https://github.com/lhh010/dsh-minigames.git # 或直接使用本目录
cd dsh-minigames
pnpm install
pnpm build
# 装入当前 web profile(自动写入依赖并加入 dsh.profile.bundles)
dsh plugin --profile web add /绝对路径/to/dsh-minigames
# 可选:确认组合配置只出现一个插件行
dsh --profile web --dump-config | grep dsh-minigames
安装提示:pnpm 11 首次安装可能拦截 node-pty 等构建脚本——在
~/.dsh/profiles/web下执行pnpm approve-builds --all放行后重跑安装命令;装完硬刷新浏览器(Ctrl/Cmd+Shift+R)。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
MemTensor/memmy-agent
OpenPetsHQ/openpets
PC2005-cloud/dsh-pet
zenstory-ai/oh-story-dsh
QCYTSN/dsh-dafeiyu
vlln/whale-girl
Ayase34/gal-view
ChisaAlter/WhaleIsle