omdsh-dev/7d7d

Project Overview项目介绍

7d7d is a native game portal plugin built exclusively for DeepSeek Harness (DSH), modeled after the classic mini-game portal design of 7k7k and 4399. It adds a dedicated 7D7D tab to the DSH Web UI’s session bar right after the existing chat and Trajectory tabs, and clicking the tab opens the full game portal directly within the conversation column. The plugin hosts the game library on the same origin as DSH’s main server, automatically scans the game directory to generate a portal list whenever new games are added by users or models, and works with any DSH access method including loopback, LAN, and reverse proxy.

It includes a built-in community game sync feature that automatically pulls community-submitted games from the plugin’s repository to the user’s local portal on first launch. Users can also manually trigger a sync via the portal UI to get new games added after the initial installation, and developers can contribute their own original games by submitting a pull request to the repository. It also ships with a dedicated skill that lets DSH models generate new conformant single-file HTML5 mini-games, and supports Flash game playback via a fixed, checksum-verified self-hosted Ruffle emulator.

The plugin requires Node.js 22 or newer and pnpm as the package manager, and must be installed on a DSH Web Profile that includes the matching version of @deepseek-ai/dsh-web-app@0.1.0-rc.6. Installation can be done by merging the content of cordis.patch.yml to your profile or adding an entry to dsh.plugin.json, then restarting the DSH web service to activate the plugin. All games run in a sandbox iframe without the allow-same-origin permission to protect DSH’s core API from unauthorized access, and the full project is open-sourced under the MIT license.

7d7d是专为DeepSeek Harness(DSH)打造的原生游戏门户插件,参考7k7k/4399的小游戏门户形态,会在DSH Web UI的会话标签栏新增7D7D入口,点击即可在对话列内打开游戏门户。它支持同源托管游戏库,模型或用户添加游戏后会实时扫描生成门户清单,无需额外注册流程,任何GUI访问方式都能正常游玩。

它自带社区游戏同步功能,插件启动时会自动同步本仓库内的社区游戏到本地门户,用户也可手动触发同步操作,其他开发者可通过提交PR向公共社区投稿游戏。同时自带游戏生成技能,DeepSeek模型可按规范生成单文件HTML5小游戏,也支持上传和播放Flash游戏,使用固定版本、经过摘要校验的同源Ruffle模拟器。

项目依赖Node.js≥22和pnpm,需要安装在包含对应版本DSH Web应用的Web Profile上,可通过修改cordis.patch.yml或添加dsh.plugin.json清单完成安装。首次运行会自动复制9款示例种子游戏,所有游戏运行在隔离iframe中保证DSH核心API安全,项目开源遵循MIT许可。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 github:omdsh-dev/7d7d

把 omdsh-dev/7d7d 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

7d7d —— 7k7k 风格的 DSH 游戏门户

让 DeepSeek Harness 变成一个游戏机:模型生成/上传 HTML5 与 Flash 小游戏, 在 DSH Web UI 里直接打开门户游玩。Flash 使用固定版本、摘要校验的同源 Ruffle。

这是什么

7d7d 是 DeepSeek Harness 的外部插件,参考 7k7k/4399 的门户形态:

  • 前端原生入口:会话标签栏 chat / Trajectory 之后出现 7D7D 标签,点击即在对话列内打开游戏门户;
  • 游戏库托管:DSH 主服务器 /7d7d 前缀同源托管,实时扫描 games/ 目录生成门户清单——模型或用户往库里丢一个文件夹,门户立刻上架,零注册流程;任何 GUI 访问方式(loopback / LAN / 代理)都能玩;
  • 社区游戏:别人通过 PR 提交到仓库 community-games/ 的游戏,启动时自动同步进你的门户(也可手动「⇅ 社区同步」),带「社区」徽标;
  • Flash 播放页:.swf 游戏只允许同源自托管的 Ruffle,不在运行时加载第三方脚本;
  • 游戏生成:自带 skills/7d7d 技能,模型按规范批量产出单文件 H5 游戏;
  • 安全边界:游戏与 GUI 同源,但跑在不含 allow-same-origin 的 sandbox iframe(不透明 origin)里——游戏触不到 DSH 的 /api 桥接(同源 fetch 被 CORS 拦,带 trust fence 的 /api 也拒绝跨站请求)。

快速开始

前置:Node ≥ 22、pnpm。开发依赖使用 npm 上与 DSH next 通道匹配的精确版本; 运行时仍由宿主提供相同兼容范围内的 peer dependencies。

# 1. 克隆仓库
git clone https://github.com/omdsh-dev/7d7d.git
cd 7d7d

# 2. 从公共 npm registry 安装锁定依赖;不读取本机 npm 凭据
NPM_CONFIG_USERCONFIG=/dev/null pnpm install --frozen-lockfile --ignore-scripts

# 3. 构建(产出 lib/index.js + lib/client.js)
pnpm build

# 4. (可选)安装固定版本、自托管的 Ruffle(仅 Flash 游戏需要)
pnpm fetch:ruffle

仓库不复制 DSH 实现源码,也不依赖固定的本机目录。开发依赖从公共 npm registry 匿名读取,CI 不需要 GitHub 或 npm 认证。类型检查直接使用精确 RC.6 包校验真实接口;运行时实现由宿主注入。本项目保留 private: true,发布物通过 Git source 安装,不承诺将本插件发布为公共 npm 包。

装进 DSH

7d7d 是 Web UI 扩展,必须装在包含精确 @deepseek-ai/dsh-web-app@0.1.0-rc.6 的 Web Profile 上;裸 Profile 不提供它依赖的 webServer 和客户端插槽服务。把 cordis.patch.yml 的内容并入该 Web Profile 层,或使用 dsh.plugin.json 清单安装:

- insert:
    - id: 7d7d
      name: '@mattheliu/7d7d'

重启 dsh web 后,打开任意会话,标签栏出现 7D7D 标签(chat / Trajectory 之后)。首次运行会把 seed-games/ 里的 9 款示例游戏拷进 ~/.dsh/7d7d/games/,并自动从社区目录同步游戏。

让模型造游戏

把 skills/7d7d/SKILL.md 放进 DSH 的 skills 目录(或按你的技能管理方式启用),然后:

用 7d7d 做一款「太空射击」小游戏

模型会按规范写出 ~/.dsh/7d7d/games/<slug>/(game.json + index.html),打开门户即可玩。想批量产出(K399 式游戏节),用 DSH 的 workflow/子代理扇出即可——每个子代理写一款,写完即上架。

游戏目录规范

~/.dsh/7d7d/games/
└── <slug>/            # 目录名 = 稳定标识
    ├── game.json      # 元数据(必填)
    ├── index.html     # html5 游戏入口(缺省)
    ├── game.swf       # flash 游戏(type: "flash" 时)
    ├── cover.png      # 可选封面
    └── …              # 其他资源(相对路径引用)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-client-ui-trajectory-categories 下一个 Next dsh-session-export →