omdsh-dev/dsh-pet-corner

Plugin插件 Native原生 ⭐ 2 BSD-3-Clause Pets & Fun桌宠与娱乐Vision & Media视觉与多媒体

DSH宠物角:一个浮动宠物、免按键宠物图片代理、收藏夹,以及插件自有设置API

Project Overview项目介绍

DSH Pet Corner is a lightweight desktop plugin for the DSH web profile, centered on a draggable cat widget in the bottom-right corner with source toggles, favorites, and auto-refresh; the panel opens cat, dog, and fox images plus cat facts. It targets DSH rc.3 on Node.js 22.19+ and uses the webServer route name. Caveat: upstream pet services are not prewarmed until the panel opens, and non-2xx responses are converted to HTTP 200 with bundled fallbacks.

DSH 宠物角是面向 web 桌面的轻量摸鱼插件,核心是右下角可拖动的猫咪挂件,附图源开关、收藏与自动换图;点击进入面板浏览猫狗狐图片与猫知识。适用于 DSH rc.3、Node 22.19+ 环境,需要 webServer 路由名。注意:未开启图片面板时不预热上游,非成功响应会被代理转为 HTTP 200 兼容回退。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 @deepseek-ai/dsh-pet-corner@0.0.1-rc.3

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

READMEREADME

@deepseek-ai/dsh-pet-corner

Author / Maintainer: @Zacklinkk

DSH 的轻量摸鱼角:右下角是一只可拖动的小猫,点击后可浏览猫、狗和狐狸图片、 猫咪知识与收藏。所有第三方请求都先经过宿主白名单代理,浏览器不会直接访问外站。

安装

# 已登录私有 npm registry
dsh plugin --profile web add @deepseek-ai/dsh-pet-corner@0.0.1-rc.3

# 本地开发 checkout
dsh plugin --profile web add link:/path/to/dsh-pet-corner

包内已经声明 dsh.bundle.patch;dsh plugin add 会自动维护 Profile Bundle。 不要手工修改 profile manifest,也不要重复插入 pet-corner loader row,否则会得到 duplicate loader entry id。

功能与网络边界

  • 小猫挂件、来源开关、默认狗狗品种和自动换图周期;
  • 收藏仅保存在当前浏览器的 localStorage;
  • 图片面板打开后才会通过宿主白名单代理访问 Cataas、Dog CEO、RandomFox、 TheCatAPI 和 Cat Facts;仅加载页面不会预热这些上游;
  • 设置通过插件自有的 /plugins/dsh-pet-corner/api/settings 读写,不依赖 DSH rc.3 配置面的 namespace allowlist;该端点仅接受 loopback 同源请求;
  • 插件不需要 API Key。上游不可用或返回非成功状态时,代理会以 HTTP 200 返回 包内图片或兼容 JSON,避免把预期的第三方故障暴露成浏览器 4xx/5xx;图片面板仍可重试。

兼容性

组件 支持范围
DSH >=0.1.0-rc.3 <0.2.0
Node.js >=22.19.0
Profile web

宿主路由使用 rc.3 的 webServer 服务名;本版本不兼容 rc.1 的 httpServer 名称。 设置页使用现存的 settings.section slot,但持久化不经过通用 settings API。

开发

npm install --legacy-peer-deps
DSH_NODE_MODULES=/path/to/dsh-runtime/node_modules npm run setup:dsh-workspace
npm run typecheck
npm test
npm run build
npm pack

构建产出 lib/index.js(宿主)和 lib/client.js(浏览器 ModuleLoader 包)。测试和 smoke 不访问真实宠物上游;代理行为用本地替身验证。

License

BSD-3-Clause

← 上一个 Prev dsh-auto-chess 下一个 Next dsh-switch →