본문으로 건너뛰기
K

dsh-deepsea-intro

kleinklein0824/dsh-deepsea-intro

Twelve animated particle opening sequences for DeepSeek Harness, spanning classic, Signature, and original scenes. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

설치

dsh plugin --profile web add github:kleinklein0824/dsh-deepsea-intro

README

DSH Deep-sea Intro

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.

ModeFeelDurationTech
Deep-sea nebula12,000 shader particles swirl out of curl noise, assemble into the whale, breathe, then the camera flies through it3.2 sWebGL + Three.js
Whale songDormant plankton wakes as two sonar rings sweep past; bubbles and a link-initialisation readout, then the scene collapses inward4.4 s maxCanvas 2D
Neural tideA neural plexus converges from 3,000 motes and 150 core nodes into the whale, flares, and leaves rising dust3.4 sCanvas 2D
Quiet currentThe same choreography with pre-rendered glow sprites and springs; no dependencies at all3.0 sCanvas 2D
Abyssal awakening (Signature)Two deep-water currents fold through each other; a pulse wakes the whale before the camera crosses its three-dimensional wake4.6 sWebGL · 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 deep4.8 s maxCanvas 2D
Living constellation (Signature)Electric paths learn the whale; signals race along its spine, a violet-cyan heartbeat blooms, the plexus opens into constellations4.4 sCanvas 2D
Moonlit bloom (Signature)Silver currents and luminous plankton weave a moonlit whale; a breath of light sweeps through it before it rises as ribbons4.2 sCanvas 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 away4.8 sWebGL · 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 mist4.4 sCanvas 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 upward4.6 sCanvas 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 ash4.2 sCanvas 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 / SignatureSignature / OriginOrigin
Deep-sea nebulaAbyssal awakeningSingularity
Deep-sea nebulaAbyssal awakeningSingularity
Whale songEcho of the deepInk tide
Whale songEcho of the deepInk tide
Neural tideLiving constellationAurora loom
Neural tideLiving constellationAurora loom
Quiet currentMoonlit bloomEmber forge
Quiet currentMoonlit bloomEmber 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-inject row (the static shell bypasses tapIndex); web additionally uses tapIndex. 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.

관련 플러그인