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

@lanbaolu/dsh-compat

v0.1.1

Published

COMPAT 版本兼容层:DSH 升级导致的 服务 key / 包名 改名 → 轻量别名托底(rename/alias,不做语义转译)。尽力而为,兜不住交给 fail-soft。

Readme

@lanbaolu/dsh-compat — COMPAT 版本兼容层

DSH 升级导致的 服务 key / 包名改名 → 轻量别名托底(rename,不做语义转译)。 尽力而为:兜不住交给 fail-soft 隔离,服务照常拉起(第一原则)。

做什么 / 不做什么

  • ✅ 做:服务 key 别名(httpServer → webServerworkspace → workspaceRegistrycompact → compaction)、包名重定向(@deepseek-ai/dsh-host-webserver → dsh-web-server,配合 npm alias)
  • ❌ 不做:语义转译、行为仿真、跨大版本特性回填(成本爆炸,违背最小运行面)
  • ⚠️ 兜底关系:COMPAT 是"尽力而为",fail-soft 是"底线"

装配

dsh plugin --profile web add @lanbaolu/dsh-compat

装配后:

  • 为旧服务 key provide lazy Proxy(成员访问转发到新服务),旧插件的 inject: ['httpServer'] / ctx.get('httpServer').register(...) 可解析
  • 暴露 compat_status 工具(目标 DSH 版本、已应用别名、reshape 数)

合规 / 徽章

  • verify-plugin --compat <dir> 静态识别判级:Compliant(原生)/ COMPAT(可 shim,打徽章)/ Not-Compliant(拒装或特殊通道)
  • 市场(dsh-plugin-hub)catalog 上架本插件 + mneme 作为 COMPAT 真实样本

开发

npm test                                        # 6 用例(别名转发/幂等/未就绪降级/状态)
node ../dsh-plugin-standard/scripts/verify-plugin.mjs .   # 合规