lhh010/dsh-minigames 预览 preview

lhh010/dsh-minigames

Plugin插件 Native原生 ⭐ 34 BSD-3-Clause Pets & Fun桌宠与娱乐

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版本选择对应标签的插件版本,否则可能出现启动错误。安装完成后需要强制刷新浏览器才能正常加载,当前支持第三方开发者按照预留接口添加新游戏,存在少量已知功能限制,比如关卡进度不跨会话保存。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 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 绘制):
    1. 🦖 恐龙跳一跳 —— Chrome 经典小恐龙(昼夜/雨天);
    2. 🧱 俄罗斯方块 —— 经典下落消除;
    3. 🛡️ 坦克大战(带 AI) —— 2D 坦克对战,敌军追踪 + 视线开火,共 3 波;
    4. 💎 消消乐 —— 点击消除四连通同色块,目标分过关、逐关递增;
    5. 🔢 华容道 —— 16 格数字华容道(15-puzzle),滑动方块按序排列,用时越短分越高;
    6. 🐍 贪吃蛇 —— 经典贪吃蛇,穿越边界会从对侧出现(环面地图);
    7. 🔢 2048 —— 方向键滑动合并数字,合成 2048 即达成;
    8. 💣 扫雷 —— 左键翻开、右键标旗、双击数字自动展开周围;
    9. 🃏 记忆翻牌 —— 翻开两张配对,步数越少分越高;
    10. ⚫ 五子棋 vs AI —— 15×15,AI 会进攻也会堵你;
    11. 🦘 跳一跳 —— 按住蓄力、松开起跳,落点越准加分越多;
    12. 🧱 打砖块 —— 移动挡板反弹小球,清完进入下一关、球速递增;
    13. 🔨 打地鼠 —— 30 秒限时点击打地鼠,命中 +1、打空 -1;
    14. ⚫ 黑白棋 vs AI —— 8×8 奥赛罗,角最重要,无棋可下自动让位;
    15. 🐦 Flappy —— 点击/空格振翅穿过柱子缝隙,越远分越高;
    16. 🧩 数独 —— 9×9 标准数独,D 键切换难度,填满无冲突即胜;
    17. 🟡 吃豆人 —— 经典迷宫吃豆,力量豆可反吃幽灵;
    18. 🎯 跟枪练习 —— 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 →

← 上一个 Prev deepseek-harness-workbench-plugin 下一个 Next Vibe-Mathematics →