elviszhang007/dsh-moyan 预览 preview

elviszhang007/dsh-moyan

简洁、克制、安静,旨在为您的Vibe Coding增加些许文艺感。每次打开WebUI,左下角都会出现一句话,从古诗词到文采句,再到脍炙人口的游戏台词,应有尽有。语料库可高度自定义,插件风格完全适配原生Harness界面,功能简洁明确,绝不喧宾夺主。

Project Overview项目介绍

dsh-moyan (MoYan) is a native DSH WebUI plugin that adds a subtle quote bar to the DeepSeek Harness sidebar, right above the settings button. It displays a random quote, poem line, or famous line from games or literature, styled to match DSH's native interface. The plugin automatically adapts to DSH's light and dark themes using DSH's native theme variables, and hides when the sidebar is collapsed to save space. To install the plugin, you need Node.js 18 or newer, a working DSH install, and pnpm, then you can install it via npm, GitHub, or local directory.

After installing the plugin, you just need to restart the DSH web profile to activate it. Once activated, the quote will show up automatically at the expected position in the sidebar. Hover your mouse over the end of the attribution line to bring up the gear icon for settings, click to open the settings panel. From the panel, you can adjust the refresh frequency, trigger a new random quote, or go back to the last 5 quotes you saw to undo accidental refreshes. The plugin also prevents repeats of the last 10 quotes to keep content fresh.

The plugin is open source under the MIT license, and has zero runtime dependencies, with pre-built JavaScript files that require no compilation step. It comes with over 100 preloaded quotes covering classic Chinese poetry, Western literature, and popular game lines. You can customize the quote list by editing the corpus.txt file in the plugin installation directory; changes take effect immediately after refreshing the page, no restart required. The plugin is developed and tested on DSH 0.1.2-rc.1, so compatibility with newer DSH versions is not guaranteed.

墨言(dsh-moyan)是专门为 DeepSeek Harness(DSH)开发的原生 WebUI 插件,会在 DSH 侧边栏设置按钮上方展示一句名言、古诗词或经典影视游戏台词。插件使用 DSH 原生字体,调整文字透明度保证不喧宾夺主,设计风格贴合 DSH 原生界面,会自动适配系统的明暗主题,侧边栏收起成窄模式时自动隐藏,不占用多余界面空间。

用户安装插件后重启 DSH web 配置集就能使用,鼠标悬停在文字出处行尾会调出设置齿轮,点击后可以调整刷新频率,支持每次打开 WebUI 刷新、每日自动刷新两种模式。插件自带近10条去重机制,还支持手动换句、回退最近5条内容,避免误操作错过喜欢的句子。

本插件要求 Node.js 版本不低于 18,需要已安装 DSH 和 pnpm,支持从 GitHub、npm 或本地目录三种方式安装,用户可以直接编辑插件目录下的 corpus.txt 增删语料,保存刷新页面即可生效。插件采用 MIT 许可证开源,内置百余条语料,覆盖古诗词、中外文学和游戏台词。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 github:elviszhang007/dsh-moyan

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

READMEREADME

墨言(dsh-moyan)

墨言 / MoYan

一个克制、安静的 DeepSeek Harness WebUI 插件:在左下角侧边栏「设置」按钮上方,完整显示一句名言、古诗词或游戏经典台词。

路漫漫其修远兮,吾将上下而求索。 —— 屈原《离骚》

句子自动折行、出处单列一行;整体风格与 Harness 原生的「设置」行保持一致。

特性

  • 完整显示:字体与 Harness 主字体相同,颜色用透明度调淡;句子按需折行,出处单独一行,不喧宾夺主;
  • 刷新频率可调:每次打开 WebUI 刷新、或每天刷新(跨午夜自动换一句),也可以随时手动「换一句」;
  • 回到上一句:面板里的小箭头按钮可回退最近 5 次刷新,防止手快错过想看的句子;
  • 近十步去重:最近显示过的 10 句不会被随机换出;
  • 语料外置:直接编辑 corpus.txt 即可增删句子,刷新页面即生效,无需重启、无需改代码;
  • 明暗主题:样式全部使用 Harness 主题变量,自动跟随亮色/暗色主题;
  • 侧边栏收起成窄轨时自动隐藏,不占用空间。

安装

前置要求

  • Node.js ≥ 18;
  • DeepSeek Harness (DSH) 已安装(全局或本地)
  • pnpm(dsh plugin 内部依赖 pnpm 转发安装命令,两种安装方式均需要);

本插件为「树外插件」(profile 插件),通过 dsh plugin 安装。

安装方式

注意:安装前请确认DSH安装方式以使用下文中所有命令!

  • 若为全局安装,请去除 '(pnpm)'。 --> 即 dsh...
  • 否则请 去除括号 '()',仅 保留 'pnpm'。 --> 即 pnpm dsh...

从本地目录安装:

(pnpm) dsh plugin --profile web add ./dsh-moyan

从 GitHub 安装(可使用'#'选定版本):

注意:请将命令中的版本(v0.5.x)改为实际需要的版本,例如 v0.5.3。

(pnpm) dsh plugin --profile web add "git+https://github.com/elviszhang007/dsh-moyan.git#v0.5.x"

从 npm 安装(推荐):

(pnpm) dsh plugin --profile web add dsh-moyan

安装后请重启 web profile(插件集的变化在重启时生效),刷新页面:

(pnpm) dsh web

卸载

卸载流程

按包名移除:

(pnpm) dsh plugin --profile web remove dsh-moyan

清理痕迹

插件在浏览器 localStorage 中留下了设置键(dsh-moyan:v1),如需清除,在 WebUI 页面按 F12 打开控制台执行:

localStorage.removeItem("dsh-moyan:v1")

使用

  1. 侧边栏底部、「设置」上方会出现一句话,出处附在句后;
  2. 鼠标悬停时,出处行尾浮现齿轮按钮,点击打开设置面板;
  3. 面板中可以:
    • 切换刷新频率(每次打开 / 每天);
    • 点 换一句 换一条(近 10 句不会重复);
    • 点左侧小箭头 回到上一句(最多回退 5 步);
    • 查看当前句的完整出处。

语料库

格式

语料保存在项目根目录的 corpus.txt 中,每行一条:

会当凌绝顶,一览众山小。 | 杜甫《望岳》
  • 分隔符用半角 | 或全角 | 均可;
  • 以 # 开头的行和空行会被忽略;
  • 句子不超过 30 字,出处尽量简短(书名/篇名/作品名即可);
  • 内置 100 余条语料,覆盖古诗词、中外文学作品与游戏台词。

编辑与生效

插件安装到 profile 时会把整个包复制到 %USERPROFILE%\.dsh\profiles\node_modules\dsh-moyan\。编辑该目录下的 corpus.txt,保存后刷新页面即生效(宿主每次请求都会重新读取文件,无需重启 dsh web)。

如果语料文件缺失或解析为空,插件会自动回退到内置语料,保证始终有内容显示。

工作原理

  • cordis.patch.yml 向 profile 配置树插入一个 loader 行,宿主机的 client-modules 扫描器据此识别包内的 dsh.client(platform: web)声明,并把 lib/client.js 以 /plugins/dsh-moyan/client.js 提供给页面;
  • Node 半通过 ctx.inject(["webServer"]) 注册路由 /plugins/dsh-moyan/corpus.txt,实时读取语料文件(非 web profile 中自动退化为无操作);
  • 浏览器半以官方 client 插件的同一契约(window.__ModuleLoader__.load)注册,UI 挂载到 sidebar.footer.action slot——它位于 sidebar.settings(设置)正上方;
  • 所有颜色与字体均取自 Harness 主题变量(--dsw-font-family、--dsw-alias-label-secondary、--dsw-alias-interactive-bg-hover 等),不写死任何配色。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-prompt-enhancer 下一个 Next dsh-stt-input →