Yummyxl/dsh-eyecare 预览 preview

Yummyxl/dsh-eyecare

给 DeepSeek Harness(DSH)Web 界面加一个 护眼模式开关:一键切换科学护眼的豆沙绿配色,浅色 / 深色 / 跟随系统全部适配, 开关状态自动记忆,刷新不丢失。

catalog descriptioncatalog 简介 / catalog description:dsh护眼插件

Project Overview项目介绍

dsh-eyecare is a native plugin built exclusively for the DeepSeek Harness (DSH) web interface that adds a toggleable eye care mode to the DSH UI. It can be installed in one step through DSH’s built-in plugin manager by running dsh plugin --profile web add dsh-eyecare, which automatically handles all setup steps without requiring any manual configuration edits. Users who do not have pnpm installed on their machine can also clone the repository directly and run the included local install script to get the plugin set up correctly. This plugin ships with a valid DSH bundle manifest and a pre-configured cordis patch that loads automatically after installation.

After installation, you can access the eye care toggle from the settings menu in the DSH web interface. Once you open the DSH web UI, navigate to the Settings section, select the General group, and find the "Eye Care" toggle near the appearance options. Switch the toggle on, and the entire interface will immediately switch to the custom eye-friendly color scheme. If you ever want to revert to DSH’s original default color scheme, just toggle the switch off again. The plugin remaps 89 color tokens across the entire interface and preserves the original information hierarchy for readability.

This plugin requires that you run a matching major version of DSH, since it relies on DSH’s internal theme and slot interfaces to work correctly. If the plugin stops working after you upgrade your DSH installation, you can simply uninstall it to fully restore the original interface to its default state. If you want a custom eye care color scheme, you can edit the EYE_CARE_TOKENS table in the lib/client.js file, and your changes will take effect immediately after you refresh the browser page. The plugin is open source under the permissive MIT license, so you can use, modify, and redistribute it freely.

这是一款专为 DeepSeek Harness (DSH) Web 界面开发的原生护眼模式插件,可为 DSH 添加一键切换护眼配色的功能,支持浅色、深色和跟随系统三种原生主题,开关状态会自动保存在浏览器本地存储中,刷新页面也不会丢失。用户可通过 DSH 内置插件管理器用一条命令全自动安装,也可克隆仓库后通过本地脚本安装,全程无需手动修改任何配置文件。

安装完成后,用户打开 DSH Web 界面,在左下角设置的常规分组中即可找到护眼模式开关,打开开关后界面立即切换为护眼配色,关闭开关即可瞬间还原。插件对界面中 89 个颜色令牌做了全量重映射,浅色模式采用标准低饱和豆沙绿,深色模式适配为暖绿黑底,保留了原有界面清晰的信息层级,适合长时间使用 DSH、希望缓解眼部疲劳的用户。

插件需要匹配 DSH 的同一大版本,依赖 DSH 的内部主题接口,如果升级 DSH 后插件失效,卸载即可恢复界面原状。用户还可以通过修改源码中颜色表自定义配色,修改保存后刷新页面即可生效,无需重启 DSH 服务。本插件采用 MIT 许可开源,完全免费使用,允许用户修改和再分发代码。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-eyecare

把 Yummyxl/dsh-eyecare 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

🌿 dsh-eyecare · DSH 护眼模式插件

npm npm downloads license github stars

给 DeepSeek Harness(DSH)Web 界面加一个 护眼模式开关:一键切换科学护眼的豆沙绿配色,浅色 / 深色 / 跟随系统全部适配, 开关状态自动记忆,刷新不丢失。


📖 目录


✨ 效果预览

dsh-eyecare 护眼模式效果图


🚀 快速开始

# 1. 安装(一条命令,全自动,无需手改任何配置)
dsh plugin --profile web add dsh-eyecare

# 2. 打开 DSH Web 界面 → 左下角「设置」→「常规」→ 打开「护眼模式」开关

完事 🎉


📦 安装

方式一:官方命令(推荐)

dsh plugin --profile web add dsh-eyecare

需要本机装有 pnpm(dsh plugin 内部转发给 pnpm;没有的话:npm install -g pnpm)。

原理:本包声明了 dsh.bundle,dsh plugin 会自动把它加入 profile 的组合层, 包内自带的 cordis.patch.yml 随层生效,插件行自动挂载——不需要手动编辑任何文件。

方式二:本地脚本(无需 pnpm)

git clone git@github.com:Yummyxl/dsh-eyecare.git
cd dsh-eyecare
bash install.sh          # 默认 profile 名 web;其他名字: bash install.sh <profile名>

脚本自动完成:复制插件包 → 建立软链 → 写入 patch 条目(幂等,可重复执行)。

安装完成后:重启 dsh(或等它热重载)→ 刷新浏览器页面,即可进入下面的使用步骤。


🧭 使用

  1. 打开 DSH Web 界面;
  2. 点击左下角 「设置」;
  3. 左侧选择 「常规」 分组;
  4. 在 「外观」 行正下方找到 「护眼模式」(英文界面:Eye care);
  5. 打开右侧开关 —— 整个界面立即切换为护眼配色 ✨;
  6. 想恢复:再次点击开关关闭即可,瞬间还原。
行为 说明
开关状态 自动记忆(localStorage),刷新页面 / 重启浏览器不丢失
主题兼容 叠加在浅色 / 深色 / 跟随系统之上,切换主题护眼层持续生效
多语言 中文「护眼模式」/ 英文 "Eye care" 自动跟随界面语言

🎨 配色特性

特性 说明
🟢 科学护眼 浅色模式锚定标准护眼绿 #CCE8CF(Windows 豆沙绿标准),低饱和、低蓝光
🌙 夜间友好 深色模式为暖绿黑底 + 柔绿白文字,告别蓝黑底与纯白刺眼
🧊 无纯白表面 输入框、按钮、气泡、菜单、代码块等 89 个颜色 token 全量重映射
🗂 层级分明 代码块、行内代码、引用、文件、链接等信息层级保留,状态色(成功/警告/错误)各自可辨

🛠 自定义配色

所有颜色集中在 lib/client.js 的 EYE_CARE_TOKENS 一张表里, 每项都是 { light: "...", dark: "..." }。改完保存、刷新页面立即生效,无需重启。


🗑 卸载

dsh plugin --profile web remove dsh-eyecare     # 官方方式

方式二安装的用户:删除 ~/.dsh/profiles/web/packages/dsh-eyecare、 ~/.dsh/profiles/web/node_modules/dsh-eyecare,并编辑 cordis.patch.yml 删掉包含 ui-eye-care 的那一段,最后刷新页面即可。


⚠️ 注意事项

  • 需要同一大版本的 DSH(插件依赖 DSH 的主题/slot 内部接口;升级后如失效, 启动页会明确报错,卸载本插件即可恢复);
  • 1.0.x 手动安装的用户升级到 1.1+:1.1 起本包自带组合层,请先删掉你手动加在 cordis.patch.yml 里的 ui-eye-care 条目,再改用 dsh plugin 安装,避免重复挂载;
  • Windows 用户可手动执行 install.sh 中的三步,或用 WSL 运行本脚本。

📄 License

MIT © 2026 Yummyxl

如果这个插件帮到了你,欢迎点个 ⭐ Star!

← 上一个 Prev dsh-power-button 下一个 Next dsh-chattree →