U1s1-king/dsh-live2d-mygo 预览 preview

U1s1-king/dsh-live2d-mygo

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

MyGO!!!!! Live2D 桌宠插件 for DeepSeek Harness(本地模型同源加载,零外部依赖)

Project Overview项目介绍

This is a Live2D desktop pet plugin built specifically for the DeepSeek Harness Web GUI. It adds a draggable MyGO!!!!! character widget to the DSH web interface, including all five core members of the band MyGO!!!!!, with 74 total outfits spanning casual wear, school uniforms, performance costumes, collaboration designs, and birthday versions. All model assets are stored locally within the plugin package, and are loaded from the same origin so no external network requests are needed at runtime. It injects pure DOM elements directly into the web page and has no dependency on the React framework.

To install the plugin, you run the dsh plugin --profile web add command via the DSH CLI, pointing to your local clone of the repository. After adding the plugin, you need to either restart the DSH web server or use DSH’s hot load feature for client bundles, then hard refresh your browser page to activate the widget. The widget supports features like free dragging, persistent position storage, character switching, outfit selection, mouse tracking, click interactions, random speech bubbles, screenshot downloads, and hide/show toggles. It is intended for DSH users who are fans of the MyGO!!!!! band and want a fun decorative widget on their DSH web interface.

All Live2D model assets are unpacked from the official BanG Dream! mobile game, and are intended for personal study and research use only, not for any commercial purposes. When you uninstall the plugin, all injected DOM nodes, event listeners, timers, and rendering objects are fully cleaned up automatically, so no leftover junk remains in the DSH interface. The full plugin package is approximately 87MB in size, and to develop or modify the plugin you need to have pnpm installed to manage dependencies and build the output bundles. It follows DSH’s native plugin distribution standard for direct installation.

这是一个专为 DeepSeek Harness Web GUI 开发的原生 DSH 插件,为平台添加可拖拽的 MyGO!!!!! Live2D 桌宠看板娘功能。插件收录了 BanG Dream! 企划中 MyGO!!!!! 全员五名成员的模型,包含常服、校服、演出服、联动、生日等多套换装,合计共 74 套资源。所有模型都存储在本地,采用同源加载方案,运行时无需额外发起网络请求。

安装需要通过 DSH CLI 执行插件添加命令,添加完成后需要重启 DSH Web 服务,也可以选择热加载客户端包,最后硬刷新浏览器页面即可启用。插件支持拖拽自由移动桌宠位置,位置会持久化存储到浏览器 localStorage,还提供角色切换、换装面板,支持视线跟随鼠标、点击互动、随机台词气泡、拍照下载等功能。适合喜爱 MyGO!!!!! 同时使用 DSH 的用户安装体验。

插件模型资源来自 BanG Dream! 手游解包,仅供个人学习研究使用,不得用于商业用途。整体采用纯 DOM 注入方案,没有 React 依赖,卸载时会完整清理所有注入的监听、定时器、渲染器和 DOM 节点。整个插件打包后约 87MB,开发需要安装 pnpm 依赖,构建后生成双产物包,符合 DSH 插件分发规范。

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

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

READMEREADME

dsh-live2d-mygo

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

收录 MyGO!!!!! 五位成员的 Live2D 桌宠:高松燈(主唱)、千早愛音(吉他)、 要楽奈(吉他)、長崎そよ(贝斯)、椎名立希(鼓手),每角色多套换装 (常服 / 校服 / 演出 / 联动 / 生日等),合计 74 套;模型本地存储、同源加载,零网络请求。

功能

  • 右下角 Live2D 看板娘(5 角色:高松燈 / 千早愛音 / 要楽奈 / 長崎そよ / 椎名立希)
  • 拖拽自由移动(位置持久化到 localStorage)
  • 角色切换 + 换装面板(74 套换装,缩略图或文字标签)
  • 视线跟随鼠标、空闲随机动作/台词气泡、点击互动
  • 拍照(下载 PNG 截图)
  • 隐藏(右下角 Live2D 悬浮钮恢复)
  • 纯 DOM 注入,无 React 依赖;卸载时完整清理(监听/定时器/渲染器/DOM)

安装

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

然后重启 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,注册 /pet-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/               角色与换装缩略图(82 张)
  model/                模型资源(5 角色 × 74 套,Cubism 2,约 87MB)

开发

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), 不越过平台模块表,无跨插件值导入。
  • 分发采用「lib 产物提交进 Git」策略(与 dsh-gbc-ui 一致):无 prepare 脚本, dsh plugin add github:... 免 allowBuilds 直装。

说明

  • 模型为邦邦(BanG Dream!)手游解包资源,仅供个人学习研究使用。
  • 渲染栈:pixi-live2d-display(Cubism 2)× PIXI 6.5.2,与自研 widget 一致。 Cubism 2.1 链只需 live2d.min.js(框架)+ cubism2 版 display,无需 Cubism Core。
← 上一个 Prev dsh-comfyui-canvas 下一个 Next dsh-bilibili →