为 DeepSeek Harness 提供十二款粒子动画开场效果,涵盖经典、Signature 与原创场景。其 HTTP 路由未做 DSH 权限校验,浏览器中打开的任意网页都可能直接调用。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:kleinklein0824/dsh-deepsea-intro
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Twelve particle opening sequences for DeepSeek Harness, in one local plugin — four classics, four Signature editions with upgraded choreography, and four original Origin creations on entirely new visual metaphors. Each one is a real renderer — not a video — so it adapts to the window, the pointer and the machine it runs on.
| Mode | Feel | Duration | Tech |
|---|---|---|---|
| Deep-sea nebula | 12,000 shader particles swirl out of curl noise, assemble into the whale, breathe, then the camera flies through it | 3.2 s | WebGL + Three.js |
| Whale song | Dormant plankton wakes as two sonar rings sweep past; bubbles and a link-initialisation readout, then the scene collapses inward | 4.4 s max | Canvas 2D |
| Neural tide | A neural plexus converges from 3,000 motes and 150 core nodes into the whale, flares, and leaves rising dust | 3.4 s | Canvas 2D |
| Quiet current | The same choreography with pre-rendered glow sprites and springs; no dependencies at all | 3.0 s | Canvas 2D |
| Abyssal awakening (Signature) | Two deep-water currents fold through each other; a pulse wakes the whale before the camera crosses its three-dimensional wake | 4.6 s | WebGL · cinematic shader |
| Echo of the deep (Signature) | Dual weighted sonar pulses carve the whale out of darkness, answer with a warm-white echo, then fold the signal back into the deep | 4.8 s max | Canvas 2D |
| Living constellation (Signature) | Electric paths learn the whale; signals race along its spine, a violet-cyan heartbeat blooms, the plexus opens into constellations | 4.4 s | Canvas 2D |
| Moonlit bloom (Signature) | Silver currents and luminous plankton weave a moonlit whale; a breath of light sweeps through it before it rises as ribbons | 4.2 s | Canvas 2D |
| Singularity (Origin) | A black hole wakes; an accretion disk ignites, gravity remembers the whale, and the shape crosses the horizon as its light redshifts away | 4.8 s | WebGL · gravitational shader |
| Ink tide (Origin) | Sumi-e on wet paper: one brush stroke bleeds into a whale with flying-white edges, the painting breathes once, then lifts off as mist | 4.4 s | Canvas 2D |
| Aurora loom (Origin) | The polar sky becomes a loom: aurora warp threads sway, light shuttles cross them, knots weave a whale before a solar wind unravels it upward | 4.6 s | Canvas 2D |
| Ember forge (Origin) | Sparks climb from a furnace line; an unseen hammer strike forges the whale bottom-up, white-hot to ember, then crumbling to ash | 4.2 s | Canvas 2D |
Previews in the gallery are captured from the real renderers (assets/preview-*.gif),
so what the cards show is what the stage plays.
Animated previews
Every opening below is an actual frame-by-frame capture of its renderer, not a
mock-up. The complete set is also available in assets/.
| Classic / Signature | Signature / Origin | Origin |
|---|---|---|
| Deep-sea nebula | Abyssal awakening | Singularity |
![]() |
![]() |
![]() |
| Whale song | Echo of the deep | Ink tide |
![]() |
![]() |
![]() |
| Neural tide | Living constellation | Aurora loom |
![]() |
![]() |
![]() |
| Quiet current | Moonlit bloom | Ember forge |
![]() |
![]() |
![]() |
Install (local profile)
From the DSH checkout directory:
plugin_manager install_bundle {"target":"<path-to>/dsh-deepsea-intro"}
Then fully restart DSH. Disable → enable refreshes the Client bundle, but Host ES modules and the desktop's one-time index-injection table require a process restart. The plugin adds:
- a sidebar row Deep-sea intro with the mode gallery and live preview,
- a live boot canvas that replaces the official DSH loading panel during a cold
start. Desktop uses the structured
webserver/index-injectrow (the static shell bypassestapIndex); web additionally usestapIndex. Both inline the complete animation code, so there is no static cover, external boot-script download or delay, - a full-play timeline: the opening finishes even if the workspace mounts earlier, and only then fades away. There is no loading bar or fabricated progress state,
- a host route
/dsh-deepsea-intro/assets/*that serves only the bundled preview files.
After changing src/ or lib/, rebuild and reinstall:
pnpm run build
plugin_manager snapshots the Client bundle, so a changed directory needs a disable →
enable (or reinstall) for Client changes. After changing index.js or the early-boot
injection, fully restart DSH as well: the Host module and desktop index rows are not
hot-reloaded. The client half is served from lib/client.js; the host half is index.js.
Using the panel
- Play opens that mode full-screen in the page for a manual preview. The stage shows only the animation, its phase caption and the skip pill — no progress bar.
- Set as default makes it the mode the boot curtain uses.
- Launch animation (开机动画) enables the curtain on the next cold start. It always finishes the selected sequence, even when the workspace has already mounted.
- Reduced motion — auto follows the OS
prefers-reduced-motion; on shows the assembled whale as a calm poster while boot finishes; off always animates. - Density scales particle counts from 0.4× to 2×. The default 1× targets ~60 fps on an integrated GPU; reduce it if the stage drops frames.
- The live preview sits at the assembled hold point and follows the pointer, so the interaction is visible without replaying the whole opening.
Boot sequencing is the whole design problem. A client plugin cannot start before its
own bundle has been downloaded. The desktop shell also reads a static index file, so a
tapIndex transform alone is invisible there. The Host therefore subscribes immediately
to webserver/index-inject and supplies the complete classic renderer as an inline
script row. Web uses tapIndex to inline the same code before </body>. No placeholder
cover is inserted and no separate animation script is fetched: the live canvas and its
first particles are created immediately. src/inject/early-boot.js owns the lifecycle
with the same twelve renderers and localStorage preferences. There is no progress bar.
The runtime plays from frame zero through the complete selected sequence. Workspace
readiness is only a permission to reveal, never a reason to cut the animation short: the
layer stays opaque after #root gains its non-boot child, finishes nebula's camera
fly-through (and the other modes' endings), then fades. It enforces a 0.9 s minimum and
a 12 s safety reveal cap. Every mode can be skipped with Esc, a click, or the skip
button; skipping cancels immediately. Host teardown uses ctx.effect and retracts both
the event subscription and web tap, so disable → enable cannot leave duplicate rows.
The live check records distinct rendered frames, the workspace-ready timestamp and the
late animation phases; it asserts that the workspace can never truncate the opening.
The panel is a full-height flex column: title and controls stay pinned, and only the preview/gallery body scrolls, so the switches are reachable at any window size.
Architecture
index.js Host: gallery assets + inline desktop/web animation injection
src/inject/early-boot.js Immediate live canvas, bundled to assets/boot-inject.js
src/client.js Client half: ModuleLoader entry, overlay seat + sidebar/main pair
src/core/ Shared whale shape, sampling, springs, settings, runtime
src/modes/nebula.js WebGL renderer (Three.js, bundled)
src/modes/sonar.js Canvas 2D sonar renderer
src/modes/synapse.js Canvas 2D plexus renderer
src/modes/lite.js Canvas 2D dependency-free renderer
src/modes/*-plus.js Signature editions (nebula-plus, sonar-plus, synapse-plus, lite-plus)
src/modes/event-horizon.js Origin: Singularity (WebGL accretion disk)
src/modes/ink-wash.js Origin: Ink tide (sumi-e bleed)
src/modes/aurora-loom.js Origin: Aurora loom (woven light curtains)
src/modes/ember-forge.js Origin: Ember forge (shockwave forging)
src/ui/ Fallback boot curtain, overlay stage, gallery panel, styles, locale
scripts/build.mjs esbuild client + early-boot bundles, also emits whale.svg
scripts/capture-previews.mjs Playwright capture → real GIF/PNG previews
tests/ node:test suites for math, renderers, bundle and route
The whale is sampled from the same official SVG path every mode uses; the sampling is alpha-weighted with a 1.45× silhouette boost, which keeps a filled body instead of a hollow outline. Each renderer receives the sampled points from the runtime, so all twelve modes animate the identical silhouette.
If WebGL is unavailable, the stage falls back to the Featherweight Canvas renderer instead of showing an empty frame. Scene construction failures are contained: the overlay never throws into the app shell.
With reduced motion enabled the runtime advances the whole timeline frame by frame
(the spring renderers clamp dt, so a single jump would show a half-assembled
scatter) and holds that assembled poster until the boot gate opens (or the 12 s cap),
instead of fading out after a fixed 0.9 s. The skip pill sits bottom-centre rather
than in a corner: shell.overlay is its own stacking context, so floating widgets in
other plugin slots can paint above the stage and would swallow a corner-anchored
control. The boot curtain avoids that problem entirely by living outside the slots.
Colour palettes
Every animation has its own saved palette. The panel offers seven presets — Original,
Ocean, Violet, Sunset, Forest, Candy and Mono — plus four unrestricted colour pickers
for background, primary, secondary and accent. Any manual colour change becomes a
Custom preset for that animation only. HEX inputs accept #RGB or #RRGGBB;
invalid values are rejected without damaging the previous palette.
Palettes are applied inside the actual Canvas/WebGL renderers, not with a CSS filter.
Backgrounds, particles, links, glows and shader uniforms therefore share a deliberate
colour hierarchy. The same per-mode palette is used by the live preview, manual Play,
the early boot canvas, the client boot fallback and WebGL-to-Canvas fallback. Settings
remain in the existing dsh-deepsea-intro:settings:v1 record; older installations get
Original colours until they choose otherwise. Gallery GIFs intentionally remain
Original-colour snapshots so their file size does not grow with every custom palette.
Development
pnpm install
pnpm run build # lib/client.js + assets/whale.svg
pnpm test # 59 node:test checks
pnpm run preview:capture # regenerate the gallery GIFs (needs Edge/Chrome)
pnpm run preview:capture drives the real renderers in a headless browser at 12 fps,
writes assets/preview-<id>.gif and assets/still-<id>.png, and prints the frame
count and byte size per mode. It refuses to run without a browser rather than
shipping stale previews silently.
Licence and provenance
MIT for this plugin's code. The whale silhouette is DeepSeek's hero mark, used here
as a visual reference in a local, personal build; see THIRD_PARTY_NOTICES.md for
the exact source and the terms that come with it. Third-party runtime code: Three.js
(MIT). Preview capture and bundling tools (Playwright, gifenc, esbuild) are dev-only.
This is an unofficial plugin and is not affiliated with or endorsed by DeepSeek.
DSH version compatibility
See COMPATIBILITY.md for the full stability matrix, failure symptoms, and step-by-step repair procedures. Every internal DSH dependency has a safe fallback: the worst case after a breaking update is a missed animation, never a crash or blank screen.
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 10703
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
ccch1mneyyy/dsh-TUI★ 8557
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
右下角常驻的小鲸鱼挂件:余额、今日已用与每轮对话消耗(含峰谷价),余额预警与今日预算的泡泡内容都可编辑;泡泡点击序列模块化自定义,支持并列加权 A/B、随机台词与随机图片;内置 30+ 厂商模板(OpenAI / OpenRouter / Kimi / 硅基流动 / 方舟 / 智谱 / MiniMax 等),按模型查余额与订阅额度;另有任务结束音效、导入音频、自定义角色与资源管理。数据全在本机,无遥测。
omdsh-dev/DSH-better-sidebar★ 5405
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
omdsh-dev/dsh-genui★ 1091
助手回复内渲染交互式 UI 组件:布局、图表、表单、测验、mermaid、3D 场景与回传事件循环。












社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。