dsh-danmaku-ambience
Ambient danmaku for the DeepSeek Harness Web UI. Short lines drift across the window in one of four moods, each with its own pacing, copy, color, and motion.

Install
Published on npm as dsh-danmaku-ambience (current: 1.0.1), for DSH 0.2.x.
Desktop app — open Plugins → Add plugin and paste the package name:
dsh-danmaku-ambience
dsh web or headless — install into that profile from a terminal:
dsh plugin --profile web add dsh-danmaku-ambience
The desktop profile is managed by the app itself, so the CLI refuses --profile desktop; use the Plugins page there.
Moods
| Mood | Pace | Motion | Tone |
|---|---|---|---|
| Workaholic | fast, ~5s per line | horizontal, quick, red | pushy, coach-like |
| Zen | very slow, ~30s | vertical column, falling, teal-gray | minimal, spacious |
| Encourager | moderate, ~11s | horizontal, warm yellow and green | warm, specific praise |
| Companion | low and steady, ~17s | horizontal, soft violet and blue | like a friend nearby |
Encourager is on by default after install.
Usage
- Capsule at the bottom right shows the current mood. Click it to pick a mood (including Off) and adjust pace, opacity, and font size.
- Settings → General → Danmaku toggles the whole feature. Re-enabling returns to the mood you last used.
Preferences are stored in localStorage and survive a reload.
How the text stays readable
Lines have no background pill. Each line is a light, saturated ink (L74–76 in both themes) inside a near-black outline (-webkit-text-stroke at 7.5% of the font size, plus paint-order: stroke fill) with a tight shadow. The outline is what defines the glyph against the white transcript, the gray sidebar, and code blocks; the light ink is what stays visible over a dark theme. Worst ink-to-outline contrast across every hue is 7.7:1, and ink-to-dark-page is at least 6.4:1.
Zen mode stacks one character per box rather than using writing-mode: vertical-rl, because vertical writing modes rely on Japanese glyph forms and misplace Chinese punctuation.
Limitations
- The copy is a fixed phrase pool (14–42 lines per mood, per language). Which line appears, and where, is random; the text itself is not generated. The plugin does not read your conversation, so a line like "that paragraph you wrote is clear" is ambient encouragement, not a response to your actual work.
- A mood's pool cycles without repeating, but long sessions will revisit lines.
- Zen columns are drawn at a random horizontal position; they do not avoid the capsule in the corner.
Development
The bundle is a plain ES module plus a browser client module; there is no build step.
package.json manifest and dsh sections
cordis.patch.yml inserts the plugin row
index.js Host half (empty: the feature is browser-only)
client.js all behaviour: moods, engine, capsule, settings row
locale/*.json display metadata, UI strings, phrase pools
docs/DETAIL.md Plugins page detail document
License
MIT
还没有评论,来写第一条。