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

@0xsline/dsh-spotlight

v0.0.2

Published

Keyboard-first command palette for DeepSeek Harness Web

Downloads

948

Readme

DSH Spotlight

简体中文 | English

DeepSeek Harness Web 的键盘优先全局命令面板。无需离开键盘,即可在一个面板中搜索原生 Slash Command、最近会话、当前界面操作和已安装插件的设置入口。

功能

  • 一个快捷键: macOS 默认 ⌘K,其他平台默认 Ctrl+K。
  • 自由设置: 点击面板底部的快捷键按钮,再按下新的组合键;设置保存在当前浏览器。
  • 复用原生操作: 自动发现并触发 DSH Web 已有操作,只向原生斜杠菜单贡献一条 /spotlight 命令,不维护第二套命令注册表。
  • 快速搜索: 对 Slash Command、最近会话、界面操作和插件设置进行稳定的模糊匹配。
  • 全键盘操作: 上下方向键选择、Enter 执行、Escape 关闭。
  • 干净卸载: 插件卸载时移除事件监听、样式和 DOM 节点。

安装

将 Bundle 安装到 DSH Web Profile。通过 npm:

dsh plugin --profile web add "@0xsline/dsh-spotlight"

或通过 Git 源码:

dsh plugin --profile web add "github:0xsline/dsh-spotlight#main"

然后启动 DSH Web,按 ⌘K 或 Ctrl+K 即可使用:

dsh --profile web

使用

  1. 使用全局快捷键打开 Spotlight,或在 DSH Web 输入框输入 /spotlight 从斜杠菜单打开。
  2. 输入关键词筛选命令和操作。
  3. 使用上下方向键与 Enter,或直接点击结果。
  4. 点击底部的「快捷键」并按下新组合键,即可修改快捷键。
  5. 点击「恢复默认」可还原平台默认值。

快捷键配置按当前浏览器的 Origin 和 Profile 独立保存。

工作原理

DSH Spotlight 是一个独立的 Cordis Bundle,附带轻量 Web Client。客户端在宿主的会话、 命令平面、插件清单和命令 UI 服务就绪后挂载(这些服务是每个标准 DSH Web 部署的固定组成), 然后直接从这些服务读取最近会话、Slash Command 和插件清单;同时从当前页面发现可执行元素, 并把执行交还给原生界面。单个目录 RPC 失败只降级对应类别。插件不新增服务端数据通道, 也不保存持久化的服务端状态。

src/index.ts             Loader 元数据
src/client/index.ts      Web Client 激活与卸载
src/spotlight/           Host + DOM 发现、搜索、键盘处理和界面
cordis.patch.yml         DSH Web Profile 组合配置

部分动作发现依赖当前 DSH Web 的 DOM;宿主界面结构变化时,可能需要同步更新 src/spotlight/discovery.ts 中的选择器。

开发

环境要求:Node.js ^22.19.0 || >=24.0.0、pnpm 11.7.0。

git clone https://github.com/0xsline/dsh-spotlight.git
cd dsh-spotlight
pnpm install

pnpm run verify:self-contained
pnpm run typecheck
pnpm test
pnpm run build

在 DSH Web 中测试本地代码:

pnpm run prepare
dsh plugin --profile web add "link:$(pwd)"
dsh --profile web

发布前检查包内容:

pnpm pack --dry-run --json

许可

MIT