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

plugin-effort-slider

v1.2.2

Published

Notched reasoning-effort slider grouped with the model picker for DeepSeek Harness — native DSH styling, adaptive theming (light/dark + theme plugins), i18n (en/fr/zh), realtime drag. 100% modular, zero core changes.

Downloads

696

Readme

DeepSeek Harness Effort Slider 插件

version DSH license

English | 中文

为 DeepSeek Harness (DSH) 打造的推理强度刻度滑杆——对标 Codex / Claude Code,但原生融入 DSH 输入框。在同一个圆角胶囊里选模型、拖强度,所见即所得。

输入框中的 Effort Slider 胶囊

| 深色 | 浅色 | | ---- | ---- | | 深色主题输入框 | 浅色主题输入框 |

功能

  • 一体化圆角胶囊——模型选择器 + 强度滑杆共用 DSH 风格边框与中间分隔线,滑杆位于模型右侧(如截图所示)。
  • 模型直选——一键展开完整 provider/模型列表(无 Model/Effort 二级菜单),强度只走滑杆。
  • 刻度滑杆——按模型开放的强度档位生成刻度(2~7+ 档),支持实时拖拽与键盘操作(←/→、Home/End),完整 ARIA slider 语义。
  • 最高档呼吸渐变——拉到最高档时整条轨道变为致敬 DSH “Deep diving…” 的流光渐变(prefers-reduced-motion 下自动关闭)。
  • 原生可换肤——所有颜色走 DSH 主题变量(accent 唯一来源,即发送按钮同款变量),浅色/深色及未来主题插件自动适配。
  • 三语——界面跟随 DSH 语言设置(en / fr / zh);模型名与强度名不翻译(来自模型本身)。
  • 上下文圆环归位——插件激活时,发送按钮旁的上下文占用圆环移到统计行(turns/steps · Cache hit)末尾,不再挤占发送区。
  • 输入框加高——约两行高度(52px,对标 DSH hero),使用稳定属性选择器。
  • 零侵入——100% 模块化 bundle,不动 DSH 核心,卸载无残留。

环境要求

  • DeepSeek Harness(dsh)+ web profile。
  • 支持推理强度的模型(仅此时显示滑杆,如 low / medium / high / xhigh)。

兼容性与权限

需要 web profile(composer slots、模型目录、locale)。纯前端 UI,无需 host 权限,无需凭据,无网络请求,无外部服务,web profile 能跑的地方(Windows、macOS、Linux)都能用。在 DSH 0.1.2-alpha 上测试通过。限制:仅当模型开放推理档位时显示。

安装

从 GitHub 安装(无需 npm 账号):

dsh plugin --profile web add github:mrSutivu/plugin-effort-slider

或先 clone:

git clone https://github.com/mrSutivu/plugin-effort-slider.git
dsh plugin --profile web add ./plugin-effort-slider

然后重启一次 web profile(dsh web)并刷新页面。之后纯前端更新只需刷新页面。

从 npm 安装:

dsh plugin --profile web add plugin-effort-slider

使用

  1. 在输入框胶囊里选择带推理能力的模型。
  2. 拖动滑杆(或聚焦后用 ←/→)——松开即生效。
  3. 拉到最高档可触发流光渐变。

当前模型没有推理档位时,胶囊自动隐藏,原生 DSH 选择器不受影响。

换肤

所有颜色解析自 DSH 变量——accent 唯一来源是 var(--dsw-alias-button-info-fill)(发送按钮同款)。换肤插件改这一个变量,滑杆、刻度、最高档渐变与选中勾选自动跟随。

国际化

界面文案位于 effort-slider locale 命名空间(en、fr、zh)。欢迎 PR 新语言:注册该命名空间的字典即可(如需可通过 locale.addLanguage 添加语言包)!

卸载

dsh plugin --profile web remove plugin-effort-slider

重启一次 dsh web。所有改动(胶囊、样式、圆环位移、输入框高度)自动还原。

开发

无需构建——lib/client.js 开箱即用,改完刷新页面即可。host 入口(lib/index.js)是为保证 bundle 层合法而设的空实现。

贡献

欢迎 Issues 与 PR——尤其是新语言字典、主题边界情况与各 provider 档位数差异。

支持

永久免费,MIT 协议。如果这个滑杆每天为你省下不少点击,请我喝杯咖啡,它就会一直维护下去:

ko-fi

GitHub Sponsors 也行(等入驻审核通过):github.com/sponsors/mrSutivu。

协议

MIT © Sutivu