U1s1-king/dsh-live2d-roselia

Plugin插件 Native原生 ⭐ 2 Pets & Fun桌宠与娱乐

Project Overview项目介绍

This is a native web plugin built exclusively for DeepSeek Harness, designed to add an interactive draggable Live2D desktop pet to the DSH Web GUI. It includes all five members of the band Roselia from the mobile game BanG Dream!, with a total of 436 different costumes ranging from casual wear to event limited, birthday, and collaboration outfits. All model resources are stored locally and loaded from the same origin, so the plugin does not require any external network requests after installation.

The plugin supports free dragging and moving of the desktop pet, and the last position of the pet is automatically saved to the browser's localStorage. It comes with a built-in panel for switching characters and changing costumes, which displays character avatars and Chinese names for each costume. Additional features include mouse following eye movement, random idle animations and dialogue bubbles, click interactions, one-click screenshot downloading of PNG images, and a toggle to hide the pet with a quick restore button in the lower right corner.

To install the plugin, run the dsh plugin add command via DSH CLI, then restart the DSH web service and hard refresh the browser page to activate it. The plugin uses pure DOM injection and has no dependency on React, and all resources including event listeners, timers and rendered DOM are fully cleaned up when the plugin is uninstalled. The model resources are unpacked from the original BanG Dream! game, are for personal study and research only, and total around 660MB in size, so you need enough free local storage to install it.

这是一款专为DeepSeek Harness Web GUI开发的原生插件,可为DSH网页端添加可拖拽交互的Live2D桌宠看板娘。插件收录了BanG Dream!中Roselia乐队的五位成员,合计提供436套不同换装,换装资源取自邦多利独立版的全量游戏数据。所有模型均本地存储、同源加载,运行过程中不会发起额外的网络请求。

插件支持桌宠自由拖拽移动,位置会持久化保存到浏览器本地存储中。自带角色切换和换装面板,支持显示角色头像和换装中文名,还包含视线跟随鼠标、空闲随机动作和台词气泡、点击互动等功能。用户可以一键拍照下载PNG截图,也可以隐藏桌宠,隐藏后可通过右下角悬浮按钮恢复显示。

该插件采用纯DOM注入实现,不依赖React,卸载时可以完整清理所有监听事件、定时器和渲染DOM,不会残留冗余内容。可通过DSH的CLI命令完成安装,安装后重启DSH Web并硬刷新页面即可使用。模型资源为游戏解包内容,仅供个人学习研究使用,总大小约660MB,需要预留足够的本地存储空间。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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:U1s1-king/dsh-live2d-roselia

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

READMEREADME

dsh-live2d-roselia

Roselia Live2D 桌宠插件 —— 为 DeepSeek Harness Web GUI 添加可拖拽的 Live2D 看板娘。

收录 Roselia 五位成员的 Live2D 桌宠:湊友希那(主唱)、氷川紗夜(吉他)、 今井リサ(贝斯)、宇田川亜子(鼓手)、白金燐子(键盘),合计 436 套换装 (常服 / 校服 / 演出 / 活动 / 生日 / 联动等,取自 BANDORI 独立版全量数据); 模型本地存储、同源加载,零网络请求。

功能

  • 右下角 Live2D 看板娘(5 角色:友希那 / 紗夜 / リサ / 亜子 / 燐子)
  • 拖拽自由移动(位置持久化到 localStorage)
  • 角色切换 + 换装面板(436 套换装,中文名显示:常服2023 / 活动41 SR / 泳装2023 / 生日2022 等;角色选择面板显示角色头像)
  • 视线跟随鼠标、空闲随机动作/台词气泡、点击互动
  • 拍照(下载 PNG 截图)
  • 隐藏(右下角 Live2D 悬浮钮恢复)
  • 纯 DOM 注入,无 React 依赖;卸载时完整清理(监听/定时器/渲染器/DOM)

安装

dsh plugin --profile web add D:\dsh\dsh-live2d-roselia

然后重启 dsh web(或热加载 client bundle),硬刷新页面。

结构

package.json            dsh.bundle.patch / dsh.client(platform: web) / exports["./client"]
cordis.patch.yml        补丁层:insert 一行 host 插件
build/
  tsdown.client.ts      client bundle 构建预设(镜像官方 tsdown.client.ts 协议)
  web-platform.ts       平台模块表(与 shell seed 一致)
src/
  index.ts              host 半区:导出 name/apply,注册 /ro-assets/* 同源静态路由
  routes.ts             静态路由(vendor / waifu.css / 角色图标 / 模型),路径防越界
  client/
    index.ts            浏览器半区:ctx.effect 持有启动/清理,注入样式 + 按序加载运行时
    waifu/              widget 源码(改造:vendor 全局惰性解析、生命周期可清理)
assets/
  vendor/               pixi.min.js (PIXI 6.5.2) / live2d.min.js (Cubism 2.1 框架) /
                        live2d-display.cubism2.min.js (pixi-live2d-display 0.4.0 cubism2 版)
  waifu.css             桌宠样式(注入时叠加高 z-index 覆盖)
  assets/               角色头像(chara_icon_47/36/16/1/32.png = 友希那/紗夜/リサ/亜子/燐子)
  model/                模型资源(5 角色 × 436 套,Cubism 2,约 660MB)

开发

pnpm install
pnpm build        # tsdown 双产物:lib/index.js (host) + lib/client.js (browser)

改代码后:pnpm build → 重启 dsh web → 硬刷新页面。 (若 bundle 内容无变化仍未生效,完全重启 dsh web。)

规范说明

  • host 半区为函数插件四要素的子集:导出 name 与 apply(无用户可配置项,故省略 Config);webServer 为必需服务,经 ctx.inject(['webServer'], cb) 声明后使用, 路由注册的 disposer 包进 ctx.effect,卸载/HMR 自动清理。
  • client 半区全部副作用(DOM、监听、定时器、PIXI 渲染器)随 fiber dispose: apply 内整体注册为 ctx.effect,返回 disposer 全量回收。
  • 浏览器半区只 import 自身模块与类型(@deepseek-ai/cordis 仅 type-only), 不越过平台模块表,无跨插件值导入。
  • 静态路由前缀使用 /ro-assets(与 dsh-live2d-mygo 的 /pet-assets 区分, 两插件可同时安装互不冲突)。
  • 分发采用「lib 产物提交进 Git」策略(与 dsh-gbc-ui 一致):无 prepare 脚本, dsh plugin add github:... 免 allowBuilds 直装。

说明

  • 模型为邦邦(BanG Dream!)手游解包资源(源自 D:\za\GitHub\Live2D 自包含版 model-data,编号 001/016/032/036/047),仅供个人学习研究使用。
  • 台词包按 5 角色人设撰写(友希那 冷艳高音 · 舞台女王 / 紗夜 认真严谨 · 反差萌 / リサ 温柔大姐姐 · 队内粘合剂 / 亜子 中二病 · 自称魔女 / 燐子 胆小害羞 · 绝对音感)。
  • 渲染栈:pixi-live2d-display(Cubism 2)× PIXI 6.5.2,与自研 widget 一致。 Cubism 2.1 链只需 live2d.min.js(框架)+ cubism2 版 display,无需 Cubism Core。
← 上一个 Prev dsh-dolphindb 下一个 Next awesome-skills →