huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Fr20210478/dsh-whale-chase-rice
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个住在 DeepSeek Harness Web UI 浮窗里的小鲸鱼娘跑酷,用来填满等 AI 回答的那几分钟:跳过生活里的糟心事,冲到大碗白米饭,回答好了会有提示。

| 胜利结算 | 失败结算 | 终点米饭 |
|---|---|---|
![]() |
![]() |
![]() |
回答好了 提示条;开着音效时会响提示音。正在跑的这一局不会被强行打断。localStorage。前提:已安装 DeepSeek Harness,并且带 Web UI(桌面版自带 Web UI;本项目在桌面版 0.2.1-rc.2 上开发验证)。
DSH 插件页的「添加插件」接受三种地址:npm 包名、GitHub 仓库地址、本地目录路径。本插件现在可以用后两种安装;npm 包名要等发布后才可用(见下)。
https://github.com/Fr20210478/dsh-whale-chase-rice「添加插件」的输入框也接受 npm 包名和本地目录路径。插件包名就是 npm 包名:形如
dsh-xxx或@作者/插件名,也就是社区插件 README 安装命令里dsh plugin add或pnpm add后面那一段(示例:dsh-plugin-whale-pet)。本插件目前只通过 GitHub 分发;计划使用的 npm 包名是
dsh-whale-chase-rice,但尚未发布到 npm,所以现在请填上面的 GitHub 地址。等发布到 npm 后,也可以直接填这个包名,由 DSH 按「安装源」下载。填 GitHub 地址或
.tgz直链时不经过安装源,需要本机能直接访问 GitHub;如果访问不了,可以改用本地目录安装。
dsh plugin --profile web add https://github.com/Fr20210478/dsh-whale-chase-rice
把 web 换成你要安装到的 profile(Web UI 一般是 web)。桌面版正在运行时不能对它执行 dsh plugin,请先用上面的界面安装。
克隆仓库后,用 Harness 的插件管理器 install_bundle 指向仓库根目录(package.json 所在目录),或在「添加插件」里直接填这个目录的绝对路径。重启 Harness 后生效。需要移除时,在插件页卸载,或对 dsh-whale-chase-rice 执行 remove_bundle。
升级:插件页里没有「更新」按钮的插件,需要先卸载再安装新版本。
没出现头像? 到「插件」页确认这个 bundle 已安装并启用,然后重启 DSH。
Esc 关闭,P 暂停。assets/ 下的 whale、victory、failure、rice 四个基名,支持 .png / .jpg / .jpeg / .webp;构建时取每个基名最新的文件,因此替换图片不需要改代码:
node scripts/build.mjs # 把最新图片内联进 client.js
# 或开发时保持监听:
npm run watch
只替换文件不会改变正在运行的插件:图片是在构建时内联进 client.js 的,必须先重新构建,再重新安装 / 重启 Harness(客户端热更新可用时会自动加载,否则需要重启)。建议尺寸:whale 512px 透明底、victory / failure 384px 透明底、rice 420px 透明底。详见 assets/README.md。
node scripts/build.mjs # src/ + assets/ -> client.js
node --test # 29 个测试:游戏规则、防沉迷、bundle、界面
npm pack --dry-run # 检查最终会发布到 npm 的文件列表
client.js 里的模块 id 和版本号都从 package.json 读取,改包名或版本号后重新构建即可。
| 路径 | 作用 |
|---|---|
index.js |
Host 半(空实现) |
src/core.js |
纯游戏 / 防沉迷规则 |
src/render.js |
Canvas 场景、文字障碍、Q 版动画 |
src/client.template.js |
React 浮窗、启动器、对话框、设置 |
scripts/build.mjs |
把所有源码拼成 client.js |
test/ |
node:test 测试 |
locale/ |
插件管理器展示元数据(中 / 英) |
cordis.patch.yml |
插件行声明(name 即 npm 包名) |
MIT。assets/ 里的鲸鱼娘插画是为本项目生成的;如果二次分发时想换形象,替换 assets/ 即可。
A tiny chibi whale-girl runner that lives in a floating window of the DeepSeek Harness Web UI. It fills the minutes you spend waiting for the AI: jump the burdens of work life, reach the bowl of rice, and get a nudge when the answer is ready.
| Victory | Failure | The goal |
|---|---|---|
![]() |
![]() |
![]() |
Answer ready strip above the play field plus an
optional chime. A run already in progress is not interrupted.localStorage.Requirements: DeepSeek Harness with the Web UI (the desktop app bundles one;
this project is developed and tested against the desktop app, 0.2.1-rc.2).
The plugin page's Add plugin field accepts three kinds of spec: an npm package name, a GitHub repository address, or a local directory path. For this plugin, use the last two for now; the npm package name becomes usable once it is published (see below).
https://github.com/Fr20210478/dsh-whale-chase-riceThe Add plugin field also accepts an npm package name and a local directory path. The plugin package name is the npm package name — like
dsh-xxxor@author/plugin. It is the part afterdsh plugin addorpnpm addin a community plugin's README install command (example:dsh-plugin-whale-pet).This plugin is currently distributed only through GitHub; the planned npm package name is
dsh-whale-chase-rice, but it is not published to npm yet, so use the GitHub address above for now. Once the npm package exists, entering that package name downloads it through the selected Registry.A GitHub address or
.tgzlink is fetched directly and does not go through the registry, so this machine must reach GitHub itself; if it cannot, install from a local directory instead.
dsh plugin --profile web add https://github.com/Fr20210478/dsh-whale-chase-rice
Replace web with the profile you want. The desktop app owns its profile and
must be fully quit before dsh plugin can modify it — while it is running, use
the UI route above.
Clone the repository, then point the harness plugin manager (install_bundle)
at the repository root (the directory containing package.json), or enter
that absolute path in Add plugin, and restart Harness. Remove it later by
uninstalling it on the Plugins page or by calling remove_bundle for
dsh-whale-chase-rice.
Upgrades: plugins with no Update button on the Plugins page must be uninstalled and reinstalled to move to a newer version.
No launcher? Check that the bundle is installed and enabled on the Plugins page, then restart DSH.
Esc closes it, P pauses.Replace any of whale, victory, failure, rice in assets/ with
.png / .jpg / .jpeg / .webp; the build picks the newest file per base name, so
no code changes are needed:
node scripts/build.mjs
# or keep it rebuilding while you iterate:
npm run watch
Replacing a file alone does not update the running plugin: art is inlined
into client.js at build time, so rebuild first and then reinstall / restart
Harness (a client hot reload may pick it up; otherwise restart). Suggested sizes: whale 512 px transparent,
victory / failure 384 px transparent, rice 420 px transparent. See
assets/README.md.
node scripts/build.mjs # src/ + assets/ -> client.js
node --test # 29 tests: game rules, anti-addiction, bundle, UI
npm pack --dry-run # inspect the exact files that would be published
The module id and version inside client.js are read from package.json;
rebuild after renaming the package or bumping the version.
| Path | Role |
|---|---|
index.js |
Host half (nothing to serve) |
src/core.js |
Pure game and anti-addiction rules |
src/render.js |
Canvas scene, text burdens, chibi animation |
src/client.template.js |
React overlay, launcher, dialogs, settings |
scripts/build.mjs |
Concatenates everything into client.js |
test/ |
node:test suites |
locale/ |
Plugin-manager display metadata (EN / zh) |
cordis.patch.yml |
Plugin row declaration (name is the npm package name) |
MIT. The whale-girl illustrations in assets/ were generated for
this project; replace them if you redistribute the game with different art.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: game。