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-repair

v0.1.0

Published

Ships a skill that diagnoses and repairs a broken DSH deployment: boot failures before readiness, dead plugins, broken dependency bridges, and safe upgrades.

Readme

dsh-repair

一个 DSH 插件,内容只有一份技能:安装时把包内的 skills/ 注册为一个技能根,于是这份技能随插件进入 agent 的技能目录。

dsh plugin --profile web add dsh-repair

技能覆盖什么

  • 起不来怎么查:boot 崩在 readiness 之前(ERR_MODULE_NOT_FOUND、cannot resolve profile bundle)、插件 node_modules 里 junction/symlink 穿透损坏、树外插件的依赖桥悬空
  • 活着但残废:服务静默失效(模型页缺提供方、按钮死)、配置能解析但 apply 抛异常、适配器静默丢弃它目录里没有的模型 id、日志干净却功能死了
  • 依赖桥:树外插件(link:)拿不到宿主核心包时的桥机制,以及 bridge-doctor.js / bridge-rebuild.js 的体检与重建
  • 升级 DSH:升级前停实例、备份、隔离预演;升级后的三层验证与 settings.yaml 复查
  • Windows 远程作业:跨机经 SSH 收拾 Windows 上的 DSH 时的一整份坑清单(进程生命周期、引号转义、PowerShell、pnpm junction、路径漂移)

scripts/ 里六个脚本随技能一起发:bridge-doctor.js(只读体检)、bridge-rebuild.js(重建,dry-run 优先)、bridge-lib.js(共用探测逻辑)、dep-diff.js(两棵 node_modules 版本表 diff)、inspect-session.js(从会话文件取运行时证据)、link-doctor.js(审计/修复 symlink 与 junction)。路径一律从 --home 或 $DSH_HOME 解析,没有写死任何一台机器。

布局

package.json        # dsh.bundle.patch → cordis.patch.yml
cordis.patch.yml    # 插入一行 @deepseek-ai/dsh-skill-filesystem,customSkillDirs 指向 skills/
skills/
  dsh-repair/
    SKILL.md
    references/
      templates.md
      windows-pitfalls.md
    scripts/
      package.json      # {"type":"commonjs"} —— 本包是 ESM 包,这六个脚本是 CommonJS
      bridge-doctor.js
      bridge-lib.js
      bridge-rebuild.js
      dep-diff.js
      inspect-session.js
      link-doctor.js

cordis.patch.yml 用的机制和 DSH 自带 agent preset 装载自己的技能是同一套:!!js 里的 baseUrl 解析到本包,所以路径跟着安装位置走。

License

MIT