ankesu/dsh-live2d-pet 预览 preview

ankesu/dsh-live2d-pet

Desktop桌面端 Native原生 ⭐ 3 NOASSERTION Pets & Fun桌宠与娱乐

DeepSeek Harness 的 Live2D 桌宠:在 Web UI 中渲染 Cubism 模型,支持状态驱动表情与鼠标追踪。· DSH 桌宠的 Live2D 渲染插件

Project Overview项目介绍

This is a native DSH plugin that adds a floating Live2D companion pet to the DeepSeek Harness web UI. It renders Cubism 4 models using pixi-live2d-display on a transparent floating canvas, and ships with pre-built sample models from Live2D Inc. To install, you can pull the main branch for the default Haru human model, or check out the feat/tororo or feat/hijiki branches for cat models, then run pnpm install to automatically build the client code. The bundled configuration already points to the correct model path, so no extra setup is needed after install.

The pet responds to DSH conversation session states, switching expressions automatically based on whether DSH is idle, thinking, running tools, or finished. It supports mouse tracking that makes the pet’s head and eyes follow your cursor, and you can drag the pet anywhere on the screen, with position saved automatically to local storage. A toggle button added to the DSH header lets you quickly show or hide the pet any time, and your toggle preference persists across page refreshes and app restarts. This plugin is ideal for DSH users who want a fun, interactive companion element added to their workflow interface.

The plugin is released under the MIT license, while the bundled sample models are copyrighted by Live2D Inc. and provided under their sample license for testing purposes. It includes a URL shim script to rewrite Node.js built-in imports to browser-safe modules during the build process, and handles common development pitfalls like off-screen drag offsets and broken state linkage after toggling. You can add your own personal custom Live2D model by updating the simple configuration to point to your model file, no full rebuild of the plugin source code is required for this change.

这是一个专为DeepSeek Harness(DSH)开发的原生桌面宠物插件,它基于pixi-live2d-display渲染Cubism 4格式的Live2D模型,在DSH的Web界面中生成一个浮动桌宠。插件支持状态联动表情切换、鼠标位置跟随、自由拖拽调整位置,还在DSH顶栏提供一键开关按钮,开关状态和拖拽位置会跨刷新、重启持久保存。默认附带Live2D官方的Haru人型样例模型,也可以切换分支获取黑白猫型模型。

用户安装后可根据喜好切换不同模型:默认主分支是人型Haru,切换到feat/tororo分支获得白猫Tororo,切换到feat/hijiki分支获得黑猫Hijiki,切换分支后重新执行构建命令就能使用新模型。用户也可以导入自己的自定义Live2D模型,只需修改配置文件指向模型路径即可,不需要重新编译项目源码。这个插件适合想要给DSH界面增加趣味陪伴元素的用户日常使用。

该插件采用MIT许可协议,附带的官方样例模型归Live2D Inc.所有,仅用于测试,生产使用建议替换为自有模型。安装过程中pnpm会自动执行构建脚本生成可用产物,配置文件已默认指向对应模型,无需额外配置。插件内置了URL垫片处理Node内置模块的浏览器兼容问题,同时修复了常见开发陷阱避免运行异常。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
  • Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
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-live2d-pet

把 ankesu/dsh-live2d-pet 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-live2d-pet

A Live2D companion pet for DeepSeek Harness — renders a Cubism model as a floating companion in the Web UI, with state-driven expressions, mouse tracking, drag repositioning, and a header toggle button.

DSH 桌宠 Live2D 插件:在 Web UI 里渲染一个 Cubism 模型作为浮动桌宠,支持状态联动表情、鼠标跟随、拖拽摆位、顶栏一键开关。

🐱 Haru/ 人型(默认分支)

preview

The bundled official Haru sample model (Live2D Inc.):

附带官方 Haru 示例模型(© Live2D Inc.):

haru sample

🐱 Tororo Cat pets / 白猫宠物(分支)

The official Tororo & Hijiki cat sample models (Live2D Inc.) run as pets on the feat/tororo branch — cats with ear/tail/paw parameters, parameter-snapshot expressions (no exp3 files needed), and the sample's Idle/Tap motions:

官方 Tororo & Hijiki 猫示例模型(© Live2D Inc.)在 feat/tororo 分支上作为宠物运行——猫有耳朵/尾巴/爪子参数、参数快照表情(无需 exp3 文件)、 以及自带 Idle/Tap 动作:

tororo cat pet

🐱 Hijiki Cat pets / 黑猫宠物(分支)

hijiki cat pet

Switch to a branch for cat pets: / 切到分支即可用猫宠物:

  • White cat Tororo: git checkout feat/tororo → pnpm build → configure model: tororo/tororo.model3.json
  • Black cat Hijiki: git checkout feat/hijiki → pnpm build → configure model: hijiki/hijiki.model3.json (both branches use the same parameter-snapshot client; only the model path differs)

Table of Contents / 目录


Features / 功能

English 中文
🐳 Real Live2D Powered by pixi-live2d-display (Cubism 4), rendered on a transparent floating canvas 基于 pixi-live2d-display(Cubism 4)渲染,透明浮动画布
👀 Mouse tracking Head turns and gaze follow your cursor (ParamAngleX/Y, ParamEyeBallX/Y); the iris is written every frame so expression snapshots can't clobber it 头部与视线跟随鼠标;瞳孔每帧写入,表情快照覆盖不了
😊 State-driven expressions The model's .exp3.json expressions map to harness activity states (idle/waiting/thinking/tool/done/failed/sleep/…) plus hover & drag 表情按 AI 活动状态切换(idle/waiting/thinking/tool/done/failed/sleep…)+ hover/拖拽反馈
🎬 Idle motion + fidgets The model's idle motion runs constantly; random tap motions play as idle micro-antics 常驻待机动作;空闲时随机播小动作(发呆/挠头)
🎛️ Config-driven geometry Size / position / offsets come from cordis.patch.yml — tweak without rebuilding 大小/位置/偏移全在 cordis.patch.yml 配置,改配置不用重编译
🖱️ Drag repositioning Drag the pet anywhere; the offset persists in localStorage (with a viewport sanity-clamp against off-screen bugs) 可拖拽到任意位置,偏移持久化(带防怼出屏幕的钳制)
💾 Toggle button & persistence A ✨ header button (next to the dsh-emoji-wallet 💰 button) shows/hides the pet instantly; state survives refreshes & restarts 顶栏 ✨ 按钮(dsh-emoji-wallet 钱包 💰 旁边)一键开关,状态跨刷新/重启保留
🔗 Session state linkage Watches the DSH conversation session — deep thinking / sleep / celebrate are time-driven 监听 DSH 会话——深思考 / 睡觉 / 庆祝等按时间驱动

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-pet 下一个 Next dsh-antigravity →