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

@ljwei-stak/dsh-folding-windows

v0.3.1

Published

DSH 侧边栏增强:功能区与工作区独立折叠,工作区项目支持置顶和取消置顶。

Readme

dsh-folding-Windows

让 DeepSeek Harness(DSH)侧边栏的功能区和工作区分别展开或收起,各自记住状态。 支持在工作区内置顶项目,并通过 DSH 的原生排序保存项目顺序。

默认收起后的独立预览

查看展开效果

查看工作区收起效果

查看项目置顶效果

安装

在 DSH 的「插件」页面添加 npm 包:

@ljwei-stak/dsh-folding-windows

也可以使用官方命令行:

dsh --profile your-profile plugin add @ljwei-stak/dsh-folding-windows@latest

将 your-profile 替换为实际 DSH 配置名;也可用此命令更新已有版本。安装并启用后刷新 DSH 界面。插件基于 DSH 0.2.0-rc.2 / 0.2.1-rc.2 的侧边栏结构实现,适用于 Windows 桌面端和相同界面的 Web 端。

使用

  • 新增「功能区」按钮,点击即可展开或收起插件、自动化任务、任务看板、技能中心、模型路由、SSH、MV 放映室等入口。
  • 新增「工作区」按钮,点击即可展开或收起整个工作区区域,包括其中的搜索、项目和会话列表。
  • 功能区首次默认收起,工作区首次默认展开;两个区域的状态分别保存在当前浏览器配置中,刷新后保留。
  • 新增或卸载其他插件时,功能入口数量自动更新。
  • 支持 Tab 聚焦及 Enter / 空格操作;收起的入口不会进入 Tab 顺序。
  • 收起整个侧边栏后,功能区开关随之隐藏;重新打开侧边栏时恢复原状态。
  • 支持中文、英文以及 DSH 的深浅色主题。

项目置顶

在「按工作区」或「按工作区树」视图中,鼠标移到项目行,点击图钉即可置顶;已置顶项目保留图钉,点击可取消置顶。也可用 Tab 聚焦图钉后按 Enter 或空格。

  • 多个置顶项目按最近置顶在前排列,刷新后保留;重命名不影响置顶记录。
  • 项目和其所属会话一起排序;树形视图保留父子层级,在同级项目中优先显示置顶项。
  • 取消置顶恢复本插件记录的普通顺序。项目置顶与两个区域的折叠状态分别保存。
  • 纯会话视图没有项目行;切回工作区视图即可使用图钉。
  • 置顶偏好保存在当前浏览器,项目顺序由 DSH 持久化。停用插件时保留当前项目顺序。

禁用或卸载本插件并刷新后,原来的功能入口和工作区恢复显示。存储不可用时仍可折叠,但刷新后回到各区域的默认状态。

开发与验证

无需运行时依赖,不修改 DSH 本体文件,不发送网络请求。通过官方客户端插件入口加载,使用「全局面板 / Global panels」「新建会话 / New session」「搜索会话 / Search sessions」等语义标签与侧边栏结构定位区域,保留 DSH 原有节点和点击行为。DSH 如果调整这些标签或结构,插件会停止增强,需适配后才能继续折叠。

npm ci
npx playwright install chromium
npm run build
npm run check
npm test
npm run preview

浏览器测试使用与官方侧边栏结构一致的夹具,覆盖折叠、展开、刷新记忆、动态入口、重挂、重复启用及卸载恢复。预览页面仅用于演示和测试,不是完整 DSH 应用。

源码位于 src/,项目排序逻辑和项目行按钮分别位于 pin-controller.js、project-pins.js。构建将源码合并,包装为 DSH 要求的 window.__ModuleLoader__.load({ id, factory }) 模块,产物为 lib/client.js。

许可

MIT