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

@capyclaw/publisher

v0.1.0

Published

npm 发布执行器:在 dsh 内以 MCP 工具完成 capyclaw 插件工程的发布预演与真发布(闸门、顺序、漂移、发布后复核),插件工程仓库本身不再持有发布脚本

Readme

@capyclaw/publisher — npm 发布器

把 capyclaw 插件工程的 npm 发布流水线搬进 dsh:插件工程仓库只负责生产(构建 → dist/ 打包件), 发布动作由本插件在 dsh 内以 MCP 工具执行。发布逻辑逐条移植自仓库原 scripts/publish-to-npm.mjs (闸门、依赖顺序、同版本漂移、发布后 shasum 复核),行为保持对齐。

工具

| 工具 | kind | 说明 | |---|---|---| | publisher_whoami | read | npm 凭据预检(宿主 npm whoami / NODE_AUTH_TOKEN) | | publisher_preview | read | 全量 dry-run:发现集 → 发布闸/pack 闸 → 已发布与漂移 → 顺序闸,逐包结果 + 汇总 | | publisher_execute | control | 真发布(不可撤销)。必须显式 confirm: true;支持 only / tag / skipTests | | publisher_capabilities | read | 契约探针(contractVersion 1.x) |

使用

  1. 安装:dsh plugin add @capyclaw/publisher(本包需在 npm 上;首次引导见仓库 docs/PUBLISHING.md)
  2. 在 dsh 里对 AI 说「预演发布」→ publisher_whoami + publisher_preview({ root })
  3. 核对批次后「执行发布」→ publisher_execute({ root, confirm: true })

配置

| 项 | 工具参数 / 环境变量 | 默认 | |---|---|---| | 工作区路径 | root 参数 / DSH_PUBLISHER_ROOT | 无(必填其一) | | 支撑库清单 | DSH_PUBLISHER_LIBS(JSON 数组,相对 root) | 内置 4 项(plugin-kit / document-workbench / host-shell / skills-service) | | 服务端口 | cordis config port / DSH_PUBLISHER_PORT | 39700 |

发布凭据沿用宿主环境(dsh 运行用户的 npm 登录态),本插件不经手 token。

行为要点(与原流水线对齐)

  • 发现集 = 支撑库(显式清单)+ discoverPlugins()(过发布闸的插件),先库后插件。
  • 同版本漂移闸:本地 npm pack sha1 ≠ registry dist.shasum 时拒绝(npm 禁止同版本重发)。
  • 顺序闸:待发包的 @capyclaw/* 依赖闭包必须 registry 可解析或同批发布,否则拦截。
  • 发布后复核:registry 收到的 tarball 与本地 pack 逐字节比对。
  • 额外 pack 闸:npm pack --dry-run 断言 package.json / main / patch 文件必在包内。