dsh-pet-niumali: A Check-in Desktop Pet Floating Ball on the DSH Interface

Preface

When using DSH for conversations, coding, or running tasks for extended periods, the interface often consists solely of the workspace, lacking a lightweight, non-distracting “daily status” entry point. Splitting clock-ins, focus timers, and simple notes across other apps requires window switching and results in disjointed data.

Niumali (dsh-pet-niumali) is a DSH plugin released by the maintainer chenyuan1251, categorized as “Fun Dress-up” on SkillHub. It overlays a draggable desktop pet floating ball on the DSH interface. Upon expansion, it reveals features within the same page: clock-in/out, focus timers, todos, journaling, travel, and treasure hunts. All data is stored locally in the browser’s localStorage; the plugin itself carries no backend and makes no network requests. The following section describes how it integrates with DSH, how the floating ball and page function, and an optional standalone Electron window usage.

What is this

In short: dsh-pet-niumali is a resident desktop pet registered on the DSH shell.overlay. When expanded, it loads a complete page (“Niumali · Living for You”) via an iframe pointing to the plugin route /pet-niumali/.

The English summary on SkillHub describes it as: A desktop pet floating on the DSH interface that, when expanded, allows for daily check-ins, focus timing, and habit journaling; this is consistent with the feature descriptions in the README.

Core Features

Floating Ball and Overlay

The floating ball is attached to the DSH shell.overlay slot, sitting above the entire interface. It is draggable and collapsible; its position and expansion state are saved in localStorage. The ball’s badge reads from the same save file to display the current “Travel Fee”; after both the daily clock-in and clock-out are completed, it displays a ✓ and the outer ring turns green.

Page and Timing Continuity

Upon expansion, an iframe loads /pet-niumali/. The DOM is mounted only on the first expansion; subsequent collapsing merely hides it. The focus timer does not interrupt when the floating ball is collapsed.

Settings Entry

A “Niumali Desktop Pet” section is added to the settings.section slot, allowing users to toggle the floating ball or open the page independently.

Static Route

The server registers a static asset route for /pet-niumali/, which can be opened directly in a browser (or accessed in a new tab) and is identical to the page within the floating ball.

Data and Permission Boundaries

  • Save Key: niumali.v9 under localStorage
  • No file reading, no command execution, no network requests
  • Image assets are approximately 7 MB; the initial page load may be slightly slow, followed by cached loads
  • The floating window width is fixed at 400px, with height adapting between 420px and 660px; the page is designed with a portrait layout.

The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and MIT license before installation. The community directory is an independent site and has no official affiliation with DeepSeek or High-Flyer.

Installation and Activation

Search for “牛马力” or dsh-pet-niumali in the DSH Plugin Marketplace to install, then restart DSH.

Manual Installation

Add the dependency to the package.json of the profile you are using and write the package name into dsh.profile.bundles:

// ~/.dsh/profiles/desktop/package.json
{
  "dependencies": {
    "dsh-pet-niumali": "github:chenyuan1251/dsh-pet-niumali#main"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "dsh-pet-niumali"
      ]
    }
  }
}

Run pnpm install in the same directory, then restart DSH. When installing from Git, DSH may prompt for build authorization once, which is standard behavior when downloading the full repository source code.

Typical Usage

Daily Use within DSH

  1. After installing and restarting DSH, a small cow floating ball appears at the bottom right of the interface (or at a draggable position).
  2. Click to expand and perform clock-in/out, focus timing, todos, journaling, etc., within the iframe.
  3. Collapse the ball when focus is needed; the timer continues in the background.
  4. Find “Niumali Desktop Pet” in settings to disable the ball or open the full page separately.

You can also directly access the /pet-niumali/ path on the DSH service without using the floating ball.

Standalone Electron Desktop Pet (Optional)

When DSH is not open, the repository provides an Electron entry point. It operates independently of the DSH floating ball and uses a different localStorage (data is not shared):

cd dsh-pet-niumali
npm install
npm start          # Equivalent to npx electron electron/main.mjs

This opens a transparent, frameless, topmost small window of 420×720. Moving the mouse to the top reveals a control bar for dragging, pinning, minimizing, and closing. Running requires Node >=22 (see engines in package.json).

Applicable Scenarios and Notes

Suitable for users who wish to complete a lightweight “life loop” record within the DSH screen without installing additional check-in apps that require a backend. The “Fun Dress-up” category mainly reflects the desktop pet image and page interactions, but the core remains a tool page with local saves.

Please note:

  • Switching browsers, clearing site data, or switching profiles will result in the loss of localStorage saves. Please back up or export important records manually (the plugin does not provide cloud sync in the documentation).
  • The DSH floating ball and the Electron standalone window are two separate storage systems; progress cannot be mixed.
  • The initial load may be slow due to the large size of static assets, which is a limitation already noted in the README.

Conclusion

dsh-pet-niumali integrates a desktop pet floating ball, settings entry, and the /pet-niumali/ page into a backend-free DSH bundle, making it a fun-oriented life assistant within the DSH “everything is a plugin” ecosystem. Please refer to the repository README for installation and details.

  • Directory Page: https://www.skillhub.cn/plugins/chenyuan1251/dsh-pet-niumali
  • GitHub: https://github.com/chenyuan1251/dsh-pet-niumali
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye