JustGenius-s/DSH-Plugs--plugins-dsh-whale-girl ↗★ 8

@just-genius/dsh-whale-girl

提供网页端及桌面端悬浮窗桌宠 适合想要在 DSH 界面或系统桌面上添加互动桌宠伴侣的用户。

包名
@just-genius/dsh-whale-girl
兼容性
待验证
版本
0.1.0
最近更新
2026年9月24日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JustGenius-s/DSH-Plugs#e9fbcb429ec881cf068c94bab8e4e43409af1cd5&path:plugins/dsh-whale-girl

@just-genius/dsh-whale-girl

Desktop pet (whale-girl) for DSH. In a plain browser it is an in-page floating companion; in DSH-Desktop it opens a transparent always-on-top overlay via window.dshDesktop.overlays, so the pet sits on the OS desktop — no separate Tauri/Electron companion app to package.

Assets and the state machine come from whale-girl (MIT; character design by ZipZipPipe).

Features

  • Two runtimes, one plugin — the client probes dshDesktop.overlays; when present it opens the overlay window at /whale-girl/overlay, otherwise it falls back to the in-page pet.
  • Presence heartbeats — while the overlay is online it POSTs to /whale-girl/presence, and the in-page pet hides itself (companionOnline) so the two never appear at once.
  • Persistent ledger — XP, titles, and memories are kept host-side (/whale-girl/state|events|interact).
  • Settings card — Settings → Plugins gets a 桌面宠物 card (visibility, roaming, size, opacity, napping), next to the update plugin's entry.

Design

HalfRole
host src/index.tsLedger + routes: state / events / interact / presence / config / assets / overlay
client src/client/**Overlay detection, in-page pet, settings card

The host serves the overlay page and the pet assets, so the transparent desktop window is just another browser view of the same plugin — state stays in one place.

Develop

pnpm install
pnpm typecheck
pnpm build

Install

dsh plugin --profile web add ./plugins/dsh-whale-girl

Restart DSH web. In DSH-Desktop the pet appears on the OS desktop; in a plain browser it stays in the bottom-right corner of the page.