dsh-live2d-pet
Live2D companion for DeepSeek Harness: render a Cubism model (e.g. the official Haru sample) in the web UI with state-driven expressions and mouse tracking. · DSH 桌宠的 Live2D 渲染插件
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ankesu/dsh-live2d-pet说明文档
阅读完整 README ↗Configuration / 配置
cordis.patch.yml (in the plugin package):
- insert:
- id: live2d-pet
name: dsh-live2d-pet
config:
model: haru/haru_greeter_t03.model3.json # path under assets/live2d/
size: 320 # canvas size, px
right: 24 # distance from right edge, px
bottom: 100 # distance from bottom edge, px
offsetX: 0 # extra horizontal shift, px
offsetY: 0 # extra vertical shift, px
| Key | Meaning / 含义 | Default / 默认 |
|---|---|---|
model | Path to the .model3.json under assets/live2d/ | haru/haru_greeter_t03.model3.json |
size | Canvas size in px (the model is scaled to fit by height) | 320 |
right | Distance from the right edge when not anchored | 24 |
bottom | Distance from the bottom edge when not anchored | 20 |
offsetX / offsetY | Extra shift applied on top of the anchor position (for fine-tuning) | 0 |
The pet anchors to the chat composer (
[data-composer-seat]) every frame and follows internal chat scrolling;right/bottomare only used as fallbacks.offsetX/offsetYare the knobs for final fine-tuning.
宠物每帧锚定到聊天输入框(
[data-composer-seat])并跟随内部滚动;right/bottom只是兜底位置。微调用offsetX/offsetY。