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

@chatkit-lab/release-practice

v0.1.0

Published

A tiny package for practicing npm publishing with Changesets

Readme

@chatkit-lab/release-practice

这是一个用于练习 npm 发布流程的独立小包,不依赖 chatkit-ui,也不会影响现有项目。包内只提供一个简单函数,重点是练习:

  • package.json 发布配置
  • Changesets 创建发布意图
  • GitHub Actions 创建 Version PR
  • 合并 Version PR 后自动发布 npm
  • 发布后验证 registry 元数据

本地验证

npm install
npm test
npm pack --dry-run

npm pack --dry-run 会列出将进入 tarball 的文件。这个包没有构建步骤,主要发布:

package.json
README.md
LICENSE
index.js
index.cjs
index.d.ts

练习发布

  1. 在 GitHub 创建一个新仓库,例如 release-practice
  2. 在仓库 Secret 中配置:
NPM_TOKEN
  1. 关联远端并推送 main
git remote add origin [email protected]:<your-name>/release-practice.git
git push -u origin main
  1. 等待 Release workflow 运行。由于仓库里已有 .changeset/initial-release.md,Changesets 会创建 Version PR。
  2. 检查 Version PR:
    • package.json 的版本应变为 0.1.0
    • 应新增 CHANGELOG.md
    • .changeset/initial-release.md 应被删除
  3. 合并 Version PR。
  4. Release workflow 再次触发并执行 npm run release
  5. 发布完成后验证:
npm view @chatkit-lab/release-practice version
npm view @chatkit-lab/release-practice

练习第二次发布

创建功能分支:

git checkout main
git pull
git checkout -b feat/update-message

修改 index.jsindex.cjs 和测试。然后验证并创建 changeset:

npm test
npm run changeset

选择 patch,填写变更说明,提交并创建 PR。合并功能 PR 后,再合并 Changesets 生成的 Version PR,即可发布 0.1.1

注意

npm 发布后的版本不可覆盖。这个练习包会真实出现在 chatkit-lab 组织下,建议使用一个后续可以保留的包名。