
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-theme-firefly
Advanced tools
🌌 崩坏:星穹铁道「流萤」主题的 DeepSeek Harness Web UI 皮肤插件。 萤火绿霓虹配色 × 立绘/动态壁纸 × 开屏变身动画 × 萤火氛围粒子 × 背景音乐 × 打字音效。
让流萤的萤火为你点亮DSH。✨





cover 铺底,界面容器半透明让壁纸透出;左暗右亮渐变遮罩保证聊天区可读assets/Default_wallpaper.png#00ff87 / #7dff9e)× 莹白文字--dsw-* 设计令牌,随主题即时生效prefers-reduced-motion,自动跳过SAM → 重播开屏变身动画(精确匹配,普通消息不误触)GIF/表情包/ 目录,按对话内容触发,每回合最多一个,右下角弹出):
四个按钮(自右向左)收在一个可拖动的毛玻璃长条面板里:
| 按钮 | 功能 |
|---|---|
| 声 | 打字音效 开/关 |
| 萤 | 氛围粒子分档(关/星点/曳光/流萤) |
| 景 | 壁纸设置(类型 + 选择/随机 + 随机间隔 + 添加壁纸 + 确定) |
| 乐 | 背景音乐 开/关 + 播放面板 + 迷你播放器 |
🖱️ 按住面板任意位置拖动即可移动,位置自动记忆(重启
dsh web后仍生效)。 音乐面板、歌单选择、壁纸设置、壁纸选择器弹层会相对该面板水平居中对齐, 并自动保持在屏幕内;迷你播放器则紧邻面板左侧显示。
按 ESC:关闭壁纸 / 氛围 / 歌单等浮层;音乐面板展开时收起为迷你播放器 (不会关闭迷你播放器)。
dsh-theme-firefly/
├── package.json # dsh.client 声明(web 插件,注入 ui-theme 槽位)
├── lib/index.js # 服务端占位
├── lib/client.template.js # 浏览器端主题源码(含占位符,随仓库提交)
├── lib/client.js # 构建产物(build.cjs --clean 生成,含 base64 素材,随仓库提交干净版)
├── assets/ # 壁纸:图片(jpg/png/webp) + mp4 动态壁纸
├── GIF/ # 开屏动图(取第一个 .gif)
│ └── 表情包/ # 表情包 GIF(文件名即触发情绪:开心/得意/变身/没错/期待/疑惑)
├── music/ # 背景音乐(mp3/ogg/m4a/wav),默认第一首「使一颗心免于哀伤」
│ └── figure/ # 内置歌曲默认封面(取第一张图片,如知更鸟图)
├── build.cjs # 构建:读取 client.template.js,把素材内嵌成 lib/client.js
├── build.music-exclude.txt # 音乐排除清单(clean 构建时不内嵌其中列出的曲目)
├── LICENSE # MIT(仅代码)
├── .gitignore # 忽略构建产物与第三方壁纸
└── README.md
dsh plugin --profile web add dsh-theme-firefly
装完重启 dsh web 即生效。npm 包已内置「干净版」lib/client.js,免 git、免构建。
# 1. clone 本仓库(仓库已提交干净版 client.js,clone 后开箱即用)
git clone https://github.com/Liu-ZA-81/dsh-theme-firefly.git
# 2. 以 link 方式安装到 web profile(本插件声明了 dsh.bundle,会自动注册)
dsh plugin --profile web add "link:<本目录绝对路径>"
# 3. 重启 dsh web 生效
想改内置素材时,改完
assets/等目录后运行node build.cjs --clean重新构建干净版。
💡 开箱即用含一张动态壁纸(演示视频)与多张静态立绘;想加更多壁纸, 直接点「景」→「+ 添加壁纸」导入,或把文件放入
assets/后重新构建(见「自定义素材」)。
⚠️ 与其它主题(如赛博朋克主题)互斥:多个主题都会调用
ctx.theme.setTheme并注入!important令牌样式,后加载的赢。建议同时只启用一个主题 (把其它主题的 patch 行注释掉即可,可随时恢复)。
dsh plugin --profile web remove dsh-theme-firefly
# 重启 dsh web 生效
壁纸有两种添加方式:
assets/ 后运行 node build.cjs(适合预置默认壁纸)其余素材(开屏动图、音乐)需通过 build.cjs 内嵌进 lib/client.js:
node build.cjs # 完整构建:打包 assets/ 里全部素材(含第三方,仅供本地使用)
node build.cjs --clean # 干净构建:只打包 build.include.txt 清单里的素材(用于提交仓库)
assets/ 支持 .jpg/.jpeg/.png/.webp(静态)与 .mp4(动态)assets/ 里文件名含 Default 的图片会在首次安装(无保存记录)时作为初始壁纸;仓库默认随带 Default_wallpaper.png,替换后重新 node build.cjs --clean 即可GIF/ 目录取第一个 .gifmusic/ 支持 .mp3/.ogg/.m4a/.wav,默认第一首为「使一颗心免于哀伤」;
music/figure/ 里第一张图片会作为内置歌曲默认封面;build.music-exclude.txt 里列出的
文件名会在构建时被排除(可留待运行时「+ 添加歌曲」导入)💡 体积建议:素材会 base64 内嵌进 JS 包,建议控制大小(mp3 ≤128kbps、图片 ≤500KB、 视频 ≤1080p),避免页面加载变慢。
⚠️ 提交仓库前记得跑
node build.cjs --clean(生成只含官方素材的干净版), 避免把含第三方壁纸的完整版误提交。
window.__ModuleLoader__.load() 注册为 DSH 客户端模块,
导出 cordis 插件 { isPlugin, inject: ["theme"], apply }apply(ctx) 中 ctx.theme.register({ id, colorScheme, tokens })
向 ThemeRuntime 注册 --dsw-* 令牌并 setTheme 激活<style> 实现壁纸背景、粒子动画、开屏动画等;音频全部
Web Audio 实时合成,无外部资源依赖<video muted loop autoplay>、静态用 CSS 背景层、
音乐用 <audio>;均以 base64 data-URI 内嵌firefly-bg.jpg、firefly2.png、firefly3.png)。米哈游对非商业同人二创较为友好,
不涉及商业盈利一般不予追究,但版权仍归米哈游所有。assets/ 内的文件。⚠️ 请勿将第三方壁纸资源随仓库公开分发;如需收录,请使用你自己的原创或已授权素材。
本项目为粉丝同人作品,与米哈游、HoYoverse、DeepSeek 无任何关联,也未获得官方授权。 仅用于技术学习与个人使用。如侵权请联系我删除。
FAQs
崩坏:星穹铁道 · 流萤主题 —— 立绘壁纸背景 + 萤火绿霓虹配色 + 开屏变身动画
The npm package dsh-theme-firefly receives a total of 854 weekly downloads. As such, dsh-theme-firefly popularity was classified as not popular.
We found that dsh-theme-firefly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.