npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-web-skin

v0.2.0

Published

Six-in-one skin pack for the DeepSeek Harness web GUI — 六合一皮肤包:极简灰/粗野主义/莫兰迪/像素/Solarized/Dracula,设置页一键切换(浅色/深色双档)。

Readme

dsh-web-skin

English | 中文

六合一皮肤包:极简灰 / 粗野主义 / 莫兰迪 / 像素 / Solarized / Dracula, 装一个插件,在 设置 → 通用 → 界面皮肤 里点一下就换,无需刷新、无需重启。 浅色 / 深色 / 跟随系统三档自动切换,选择经 localStorage 持久化。

使用

已发布的版本自带编译好、已注入调色板数据的 lib/ 产物,直接装 tarball 即可:

# 从最新 release 安装(零运行时依赖,无需构建)
dsh plugin --profile web add "https://github.com/omdsh-dev/dsh-web-skin/releases/latest/download/pkg.tgz"

本地开发:

npm install --legacy-peer-deps && npm run build   # 仅首次:tsc 编译 + 注入调色板数据
dsh plugin --profile web add /path/to/dsh-web-skin

装完重启一次 DSH(或等 live reload 重组),刷新页面后:

  • 换肤:设置 → 通用 → 界面皮肤,六个色块按钮点哪个换哪个;
  • 明暗:设置 → 外观 → 浅色/深色/跟随系统,每套皮肤都带双档。

架构(单包多皮肤)

dsh-web-skin/
├── package.json          # dsh 插件声明(inject store/locale/ui-theme/ui-slots)
├── cordis.patch.yml      # 插入 profile 插件层叠(注释即停用)
├── tsconfig.json         # tsc 配置(严格模式)
├── icon.svg
├── palettes/             # ★ 调色板唯一事实源,一套皮肤一个文件
│   ├── minimal.mjs       #   { id, name, swatch, selection, tokens }
│   ├── brutalism.mjs     #   …共 6 套
│   ├── index.d.ts        #   调色板形状的 TypeScript 声明(供 src/*.ts 引用)
│   └── …
├── src/                  # ★ TypeScript 源码(改代码来这里)
│   ├── client.ts         #   客户端:换肤行 + overrideTokens + 样式层
│   └── index.ts          #   Host:首帧引导(script 读选择 + style 变量规则)
├── lib/                  # ★ 生成产物(勿手改):tsc 输出 + build.mjs 注入调色板数据
│   ├── client.js
│   └── index.js
├── locale/{zh,en}.json
└── tools/
    ├── build.mjs         # palettes/*.mjs → 注入 lib/* 占位符(npm run build 先 tsc 后注入)
    └── check-palette.mjs # 形状 + WCAG 对比度 + 首帧一致性(npm run check)

改颜色 / 加皮肤

# 1. 编辑 palettes/<id>.mjs 里的 tokens(或复制一份改名)
# 2. 重新生成(tsc 编译 src/,再把调色板数据注入 lib/)
npm run build
# 3. 自检(形状 / 对比度 / 首帧一致)
npm run check

link 安装时改的就是源文件:build 完刷新页面即可看到变化。 开发期间也可以用 npm run dev(tsc watch)+ node tools/build.mjs。

换肤机制

  • 调色板经 ctx.theme.overrideTokens() 叠加,换肤 = 同一 source 再覆盖一次 (主题服务保证旧层被替换),停用插件即刻回到官方配色;
  • 换肤行挂在官方 settings.general.item 槽位,React / defineStore 由客户端 ModuleLoader 共享注入,本包运行时零依赖;
  • 皮肤选择存 localStorage["dsh-web-skin:skin"];首帧引导脚本(Host 注入、 解析阻塞)读同一 key,启动不闪异色。

卸载

dsh plugin --profile web remove dsh-web-skin

或注释 cordis.patch.yml 里的 insert 段,重启即可。

版本兼容

| 插件版本 | DSH 版本(实测) | | --- | --- | | v0.2.0(六合一) | dsh v0.2.1-rc.5 | | v0.1.0(单皮肤极简灰) | dsh v0.2.1-rc.5 |

换肤行依赖官方 settings.general.item 槽位与共享 React 注入;若上游槽位 变动,皮肤本体仍然生效,只是设置行消失(console 有告警)。

致谢

  • 机制设计参考 dsh-leafy-skin (token 覆盖层 + :where() 零特异性样式层 + 首帧引导);
  • 设置行与状态写法参考官方 @deepseek-ai/dsh-client-ui-theme 的 Appearance 行与 dsh-ui-appearance。

许可证

MIT