Galgame generator: give it a script document plus character/background/BGM/animation assets in the workspace (img_human/, img_bg/, audio/, img_cg/) and it builds a playable visual-novel web page with configurable save slots (`[存档 N]`, default 9), speaker-following sprites with multi-pose variant switching (`[表情]`), opening/ending/CG animations (`[op]`/`[ed]`/`[cg]`), BGM play/stop/volume control, and if-line branching.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:baisama-cloud/dsh-galgame-generator
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Version: 0.4.1
A Galgame (visual novel) generator for DeepSeek Harness (DSH). Give it a script document plus character/background/BGM assets and it builds a playable visual-novel web page.
Features
- Script parser: characters / backgrounds / dialogue / narration / choices / jumps / endings / variables & if-lines (
[if 好感度 >= 1] … [else] … [endif]) - Speaker-following sprites: the current speaker's portrait shows, narration hides everyone, 0.35s fade (no flicker);
[show name]/[hide name]lock explicitly - Multi-pose characters:
名字·表情: 文件.pngdefines variant sprites;[表情 名字 表情名]switches them in-script (saved with the save data) - BGM control:
[bgm file.mp3]play (loop),[bgm off]/[bgm stop]stop,[bgm file.mp3 0.5]volume - Animations & CG:
[op]opening,[ed]ending,[cg]CG illustration animations (img_cg/, gif / svg / mp4 / webm / avi) - Configurable save slots:
[存档 N]sets the count (1–20, default 9); progress, sprites, expressions, background, BGM and variables are saved - Player: typewriter, auto/skip, backlog, endings; also exports a self-contained
<title>.galgame.htmlthat runs by double-click - Custom title screen: optional
## 开始界面section in the script (bg/music/show-characters/layoutspriteoravatar); leaving it out keeps the default title look - Model tools:
galgame_scan(scan assets) andgalgame_build(parse & build)
Asset convention (workspace root)
| What | Where |
|---|---|
| Script document | workspace root, any .md / .txt (e.g. 夏日回忆.md) |
| Character sprites | img_human/ |
| Background images | img_bg/ |
| BGM audio | audio/ |
| Opening/ending/CG animation | img_cg/ |
| Title-screen art (title bg / title music) | img_ui/ (optional, e.g. img_ui/title.png) |
See README.zh.md for the script format quick reference and installation steps.
🎬 Galgame Generation Mode
After install and a page refresh, the plugin also registers a 「Galgame 生成模式」 agent preset in DSH. Pick it in the new-session preset chip (or set it as default under Settings → Agent Presets). Sessions in this mode get an injected persona that tells the model to auto-run galgame_scan then galgame_build when you simply say "generate", so you only need to place the assets and say 生成. The preset is a full copy of standard with the generation-guidance persona added; you can tweak ~/.dsh/.agent-presets/galgame/ to customize it.
Install
pnpm pack
# copy dsh-galgame-generator-*.tgz into your web profile, e.g. under ~/.dsh/profiles/web:
# pnpm add ../path/to/dsh-galgame-generator-0.4.1.tgz
# then restart `dsh web`.
License
MIT
Links
More in this category
PC2005-cloud/dsh-pet#dsh-pet★ 6380
Desktop pet for the DSH Web UI on Windows, macOS and Linux: 106 transparent animations in the browser overlay or a transparent always-on-top desktop window, throw-and-bounce drag physics with squash and particle scoring, a work-status bubble driven by live session events, self-talk and chat with persistent memory, balance display, meme-image bubbles, multiple pets on screen, and drop-in custom animations and pet packs.
flizzywine/dsh-tavern#dsh-tavern★ 1639
An agent-powered tavern for DeepSeek Harness with SillyTavern compatibility, character card imports, support for multiple models, and mobile play. Install the tavern from Settings → Tavern Launcher on desktop. A launcher derived from 2NF/dsh-profile-bridge (MIT): it downloads the tavern into a separate DSH profile and switches profiles on restart. Install this launcher or the upstream plugin, not both — they claim the same /profile-bridge channel.
Alterssss/dsh-bili-whale★ 1063
A Bilibili companion that keeps its own schedule. A 60-second tick in the plugin host wakes a dedicated agent session at a random moment inside the configured time windows (opting out of a day is a configurable chance), then hands it a bundled CLI of 38 subcommands — feed, subtitles, danmaku, comments, ffmpeg frame grabs, and two diaries. Shares at most N items a day by commenting on them and @-mentioning the owner (default 3, enforced from a written quota log, and it stops on rate-limit or captcha signals). Also polls comment replies, direct messages and live-room danmaku; replies to anyone but the owner are queued for approval in Settings. Settings → 养鱼 writes ~/.dsh/bili-whale.config.json; cookies live separately in ~/.bili-ai/credentials.json and are never echoed back. The HTTP routes are loopback-only behind DSH's trust fence. Needs Node 18+ and ffmpeg on PATH for frame extraction.
Nagi-ovo/dsh-ads★ 729
Parody ads in 2005-Chinese-web style: sidebar banners, in-chat feeds, corner popups, and a close button whose hit area is smaller than it looks. All fictional.
yyh-001/dsh-meme★ 581
Chat meme stickers: text-only send, mood auto-send, QQ/WeChat-style picker, auto-learn, custom packs.
vlln/whale-girl★ 410
Desktop pet (QQ-pet style): floats in the corner, draggable, feedable, playable.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.