npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-live2d-pets

v0.3.0

Published

Live2D pet plugin for DeepSeek Harness: a characterful agent companion — follows session state, switchable personas, bring-your-own models

Readme

dsh-live2d-pets 🐾

English | 简体中文

npm License: MIT Node.js GitHub release dsh-plugin

给 DeepSeek Harness 请了个看板娘:你思考它歪头,你完成它撒花,还能摸头!

特性

  • 模型加载:内置 5 条策展模型(Hiyori / Haru / Mao / Mark / Natori)+ 自定义条目;可用任意 .model3.json 的 https / http URL,或填写本机绝对路径(如 C:/models/foo/foo.model3.json,由插件 Host 转成同源 HTTP 加载);自定义模型可配置动画映射,把模型原生动作组挂到状态/互动部位
  • 状态镜像:宠物实时反映 agent 思考 / 空闲 / 出错 / 完成 / 交付 / 等审批(动画 + 气泡,SSE 推送)
  • 人设台词:内置六种人设(傲娇 / 元气 / 天然呆 / 三无 / 温柔治愈 / 病娇),可在插件独有 JSONC 中自定义并热切换
  • 互动陪伴:分部位触摸反应 / 鼠标跟随(头、眼、身体看向鼠标)/ 拖动停靠,任务完成庆祝;HitArea 不足时按包围盒五矩形空间回退分档
  • 桌宠配置设置面板:DSH 设置 →「桌宠配置」,开关 / 尺寸 / 渲染帧率 / 人设 / 模型列表 / 开发者选项;标量设置写入 ~/.dsh/settings.yaml,自定义人设与自定义模型存于 ~/.dsh/live2d-pet/ 插件私有 JSONC 文件,即时生效
  • 不打扰:默认右下角、小尺寸、可拖动、可隐藏、标签页隐藏暂停渲染、限帧渲染、低配降级静态头像

快速开始

方式一:复制提示词让 agent 安装(推荐)

把下面这段提示词复制给你的 DSH agent(在 Web GUI 对话中直接粘贴即可),它会自己安装并验证:

请帮我安装 dsh-live2d-pets 插件(DSH 的 Live2D 桌宠插件):
1. 执行 dsh plugin --profile web add dsh-live2d-pets 安装
2. 执行 dsh plugin --profile web list,确认 dsh-live2d-pets 出现在已安装列表中
3. 告诉我安装结果;如果失败,请附上错误信息

方式二:手动安装

在终端执行(web profile 首次使用时自动初始化):

dsh plugin --profile web add dsh-live2d-pets

安装后插件默认启用。启动 DSH:

dsh web

浏览器打开后,右下角会出现默认宠物(尺寸 160px)。当前默认模型为 Hiyori(Live2D 官方示例模型),首次加载需联网。

互动

  • 鼠标跟随:默认开启。鼠标在页面任意位置移动时,宠物的头、眼睛、身体会平滑看向鼠标;鼠标移出页面后复位正视前方。拖拽中不跟随,隐藏或页面失焦时自动暂停。
  • 触摸互动:摸头 / 摸腿 / 摸手 / 摸身体各有专属台词与动作;模型 HitArea 不足时按包围盒空间分区回退。
  • 拖动:按住宠物拖动到任意位置,松手后停靠并持久化。

自定义模型:打开设置 →「桌宠配置」→「我的模型」,填写名称与 .model3.json 地址(外网 CDN、自建静态站、本机 HTTP 服务,或本机绝对路径如 C:/models/foo/foo.model3.json 均可;本地路径由插件 Host 通过 /pet-local-models/... 同源路由加载)。可展开 「空间分区覆盖」 按字段微调五矩形(头/身/腿居中列 + 左右臂;0–1,留空用默认),或展开 「动画映射」 实时解析模型动作组,为状态/互动部位选择动作组;建议配合开发者选项「显示点击分区」对照色块。内置 Hiyori 已带居中分区预设。

配置设置

打开 DSH 设置 →「桌宠配置」,改完立刻生效,无需重启。

  • 显示:开关宠物
  • 尺寸:40–400px(默认 160)
  • 渲染帧率:30 / 60 / 不限制(默认 30)
  • 人设台词:切换内置或自定义人设;「自定义人设 ↗」编辑 $DSH_HOME/live2d-pet/personas.jsonc,改完点「↻ 重新读取」
  • 模型:选内置策展模型,或在「我的模型」添加名称 + .model3.json URL(可选空间分区覆盖 / 动画映射);自定义模型存于 $DSH_HOME/live2d-pet/custom-models.jsonc
  • 开发者选项:总开关(默认关);开启后可显示调试面板(含模型原生动画列表预览)、显示点击分区色块

卸载

dsh plugin --profile web remove dsh-live2d-pets

文档

| 需求 | 文档 | | --------- | ---------------------------------------------------------------------- | | 英文 README | [README.en.md](README.en.md) | | 产品意图 | [docs/intent/live2d-pet-plugin.md](docs/intent/live2d-pet-plugin.md) | | 行为规格 | [docs/spec/live2d-pet-v01.md](docs/spec/live2d-pet-v01.md) | | 架构决策 | [docs/adr/](docs/adr/)(渲染栈见 ADR-003) | | 调研记录 | [docs/research/](docs/research/)(设置面板接入机制见 settings-tab.md) |

技术栈

  • pixi-live2d-display 0.4.0 + PixiJS 6.5.10 + Cubism Core 4(ADR-003)
  • 客户端渲染于 DSH Web GUI 的 shell.overlay 悬浮层(视觉层 Popover 顶层,ADR-005),设置页注册于 settings.section(ADR-002)
  • 状态推送:Host 订阅 agent/* 事件 → 同源 SSE /api/live2d-pet/events(ADR-006);标签页隐藏 / 失焦暂停渲染
  • 设置持久化:标量设置走 Host ctx.settings(~/.dsh/settings.yaml 用户层覆盖 base);自定义人设 ~/.dsh/live2d-pet/personas.jsonc、自定义模型 ~/.dsh/live2d-pet/custom-models.jsonc 由插件直接读写;传输走插件自身 API /api/live2d-pet/settings(settingsScope wire 白名单限制,见 research 3.4/3.5)

许可

  • 插件代码:MIT
  • 模型清单:模型一律 URL 直载、不随包分发;清单门槛为「许可可标注」——每条记录许可类型与链接,NC(禁止商用)模型标注"仅限非商用"(清单见 [src/presets/presets.jsonc](src/presets/presets.jsonc))
  • 内置模型 Hiyori / Haru / Mao / Mark / Natori:Live2D 官方示例模型,按示例模型条款使用(免费商用可,需标注著作权)
  • Live2D SDK:按 Live2D 官方条款(免费商用,需遵守版权声明等)