Preface¶
Staring at conversations and tool outputs in DSH Web for long periods often results in a purely functional interface. Community “fun dress-up” plugins inject lightweight interactions into the host page without altering the core workflow, yet they can provide a draggable, playable desktop-level widget. Below is an introduction to dsh-ricewhale, published by maintainer syx2bzd: a “drag-rewrite edition” rebuilt from the old dsh-whale-charm assets, aimed at the web profile, using physics simulation and token scoring to add a configurable desktop pet gameplay layer to the Web interface.
What Is This¶
dsh-ricewhale is a “whale maid” physics widget plugin for the DSH Web interface. Press and drag to move, release to fling—the creature bounces off the four viewport edges, slowing down through friction upon landing. After remaining stationary for a while, it plays idle animations (breathing, jumping, waving, changing poses). Token coins (blue coins worth 1 point, yellow coins worth 3 points) are scattered across the screen; collision triggers collection, consecutive collections multiply the score, every 5-combo triggers a highlight moment, and accumulated scores persist. There is also an unremovable white rice system: every 500 tokens eaten cumulatively spawns a bowl of white rice, and collision with it halves both the current session score and the cumulative score, followed by a white rice eating video playback.
Repository: https://github.com/syx2bzd/dsh-ricewhale
Community catalog page: https://www.skillhub.cn/plugins/syx2bzd/dsh-ricewhale
npm package name: dsh-ricewhale, version 1.0.0 in the current documentation; code license MIT (images, fonts, sound effects, and other assets have separate notices, see THIRD-PARTY.md in the repository).
The DeepSeek Harness ecosystem philosophy is “everything is a plugin”; community catalogs like SkillHub are independent sites with no official affiliation to DeepSeek / HF (幻方). Installation sources should be based on catalog pages and GitHub documentation.
Core Features¶
Drag and Physics¶
The drag chain is: window capture pointer down → follow finger movement → on release, calculate impulse based on the last ~90ms of displacement. The physics boundary is the entire browser viewport; when the creature’s edges press against other DOM elements, it yields the click, but the center area is always grabbable, avoiding conflicts with input boxes and other widgets for focus.
This version’s key fix compared to the old one addresses the “page freezes permanently after one press” class of issues: each frame schedules the next frame before executing business logic, accompanied by a ~1.5s watchdog; hit detection is split into center-grabbable and edge-yielding segments; pointerdown is attached to window capture simultaneously, and stopPropagation is only called when actually grabbed.
Token Gameplay and Scoring¶
- Blue coins worth 1 point, yellow coins worth 3 points; consecutive collections multiply, reaching 5 consecutive triggers a highlight moment.
- Coins are not scattered at the creature’s feet or in the bottom chat bar area.
- Eating a token plays a bubble pop sound effect (yellow coins at 1.5x the volume of blue coins); hitting the four screen edges or the “floor” plays a cartoon collision sound, slightly louder with greater force.
- Right-click the creature to open the settings panel (main panel + token settings, title bar draggable); the panel automatically avoids the creature. While the panel is open, creature physics are frozen, but the creature can still be dragged.
The main panel allows adjustments to: elasticity (soft/standard/bouncy), size, zero gravity, pinning, idle animations, hitbox, token gameplay toggle, re-scatter coins, clear and recount, return to original position, change corner, collapse, etc. Token settings allow adjustments to gameplay toggle, floating animation, particles, scoreboard, combo multiplier, highlight moments, no respawn, hit circle, quantity, respawn duration, spawn duration (0 for one-time full scatter, greater than 0 for gradual appearance), token size, yellow coin probability, combo window, score multiplier, etc.
White Rice System¶
There is no white rice toggle in settings (intentionally unconfigurable):
- 1 bowl appears after cumulative consumption of 500 tokens; after it’s eaten or disappears, the next bowl only appears after another 500 tokens are accumulated.
- It stays on screen for 10 seconds, fading in the last 2 seconds, with a “white rice is cold” prompt upon timeout.
- Width follows the “token size” slider, approximately 1.5 times the token diameter.
- When token gameplay is turned off, white rice is immediately collected; after turning it back on, counting resumes.
- Hitting white rice: current session score and cumulative score each -50% (rounded), combos are cleared, a “White Rice Moment” pops up in the center, followed by playback of
eat-rice.mp4provided by the inline route; other sound effects are muted during playback, and it can be skipped by click or Esc.
Host-Side Implementation Points (Developer-Oriented)¶
The plugin injects into the Web page via Cordis patch; the host provides /dsh-ricewhale/widget.js (real-time disk read client.dist.js), fonts, and white rice eating video (Range support) routes. After modifying client logic, run node mk.mjs and refresh the page—no host restart needed; if modifying routes or injection in lib/index.js, the DSH Web host process needs to be restarted.
In package.json, dsh.marketplace indicates: profiles: ["web"], requiresRestart: true.
Installation and Activation¶
Install from npm (README recommended method):
dsh plugin --profile web add dsh-ricewhale
After installation, restart the DSH Web host process once (Node-side plugins are only loaded at startup). Uninstall:
dsh plugin --profile web remove dsh-ricewhale
It can coexist with the old plugin dsh-whale-charm (two fish), or you can remove dsh-whale-charm first to keep only this plugin. For local code development, the README provides a link:<repo-directory> method, requiring you to clone to a local directory first and then link; running the npm package does not require cloning.
Typical Usage¶
- After installing and restarting the Web host, open the DSH Web page—you should see the whale widget; press and drag the creature, release to observe bouncing and deceleration.
- Right-click the whale creature on an empty area of the page to open settings; toggle token gameplay as needed, adjust elasticity and token quantity, and use “Re-scatter Coins” to refresh the scene.
- Fling the whale toward tokens on the screen to observe the scoreboard and 5-combo highlights; during long-term play, be mindful of the white rice mechanism after 500 cumulative tokens to avoid accidental collision causing the total score to halve.
If dragging or coin-eating behaves abnormally, you can use the diagnostic interface provided by the README in the browser console (global name __dshwc), for example:
__dshwc.state() // ready/grabbed/position velocity/token/white rice/panel
__dshwc.diag() // last pointer down, release, and logs
__dshwc.selftest() // run a press→move→release cycle in-page
__dshwc.dropTokenOnPet() // place a coin at the creature's center and check if it's eaten
If a red “widget loop error” prompt appears at the bottom of the page, you can click it to attempt restarting the render loop; under normal circumstances, it should not appear frequently.
Applicable Scenarios and Notes¶
Who it’s for: Users already using the DSH web profile who want an interactive physics widget alongside the conversation interface and are willing to accept token scoring and white rice penalty mechanisms; categorized as “fun dress-up” in the community catalog, not altering core Harness capabilities.
Please verify before installation:
- The plugin runs under the current DSH process permissions, with injected scripts and static assets provided by host routes; before installation, browse the GitHub source code and
LICENSE,THIRD-PARTY.mdto confirm that asset and sound effect redistribution policies comply with your environment. - Physics boundaries do not avoid sidebars or other layouts, only yielding to other elements at the creature’s edges; particles and effects have caps (e.g., particle hard limit of 120) to reduce compositing layer pressure.
- The repository README lists known boundaries: poses are static PNG transformations, the scoreboard is fixed at the bottom center of the screen, etc.
For maintenance and bug reports, use GitHub Issues: https://github.com/syx2bzd/dsh-ricewhale/issues.
Conclusion¶
dsh-ricewhale consolidates “draggable, collision-reactive, score-tracking” with optional token parameters into a single Web widget, using the white rice mechanism to add a layer of risk-reward to long-term cumulative gameplay. If you want a whale maid in DSH Web that can be flung, bounce off edges, and eat coins, follow the commands above to install it to the web profile—after restarting the host, right-click the creature to adjust parameters.
- Community catalog: https://www.skillhub.cn/plugins/syx2bzd/dsh-ricewhale
- Source code and full documentation: https://github.com/syx2bzd/dsh-ricewhale