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

@releasekit/publish

v0.22.0

Published

Publish packages to npm and crates.io with git tagging and GitHub releases

Readme

@releasekit/publish

@releasekit/publish Version Downloads

Publish packages to npm and crates.io with git tagging and GitHub releases.

Features

  • npm publishing with OIDC provenance support
  • crates.io publishing for Rust packages
  • Git tagging with customizable tag templates
  • GitHub releases with auto-generated notes
  • Retry logic for flaky registry operations
  • Dry-run mode for safe testing
  • JSON output for CI integration
  • Post-publish verification to confirm packages are available

Installation

npm:

npm install -g @releasekit/publish

pnpm:

pnpm add -g @releasekit/publish

Note: This package is ESM only and requires Node.js 20+.

Quick Start

@releasekit/publish reads JSON output from @releasekit/version and runs a publish pipeline:

# Pipe from version to publish
releasekit-version --json | releasekit-publish

# Or use an input file
releasekit-version --json > version-output.json
releasekit-publish --input version-output.json

Pipeline Stages

The publish pipeline runs in order:

  1. Input - Parse version JSON from stdin or file
  2. Prepare - Copy files (e.g., LICENSE), update Cargo.toml versions
  3. Git Commit - Create version bump commit
  4. Git Tag - Create git tags for each package
  5. npm Publish - Publish to npm registry
  6. Cargo Publish - Publish to crates.io
  7. Verify - Verify packages are available on registries
  8. Git Push - Push commits and tags to remote
  9. GitHub Release - Create GitHub releases

The pipeline is fail-fast: the first package publish failure throws immediately. Git push and GitHub release are skipped, so the version commit and tag remain local until the issue is fixed and the release is retried.

CLI Reference

| Flag | Description | Default | |------|-------------|---------| | --input <path> | Path to version output JSON | stdin | | --config <path> | Path to releasekit config | releasekit.config.json | | --registry <type> | Registry to publish to: npm, cargo, all | all | | --npm-auth <method> | NPM auth method: oidc, token, auto | auto | | --dry-run | Simulate all operations | false | | --skip-git | Skip git commit/tag/push (also skips GitHub release — no tag to release against) | false | | --skip-publish | Skip registry publishing | false | | --skip-github-release | Skip GitHub Release creation | false | | --skip-verification | Skip post-publish verification | false | | --json | Output results as JSON | false | | --verbose | Verbose logging | false |

Integration with @releasekit/version

Pipe Directly

releasekit-version --json --dry-run | releasekit-publish --dry-run

Use Output File

releasekit-version --json > version-output.json
releasekit-publish --input version-output.json

In CI (GitHub Actions)

- name: Configure permissions (OIDC + git pushes)
  # at job level:
  # permissions:
  #   id-token: write
  #   contents: write

- name: Version
  run: releasekit-version --json > version-output.json

- name: Publish
  run: releasekit-publish --input version-output.json
  # For OIDC trusted publishing: no npm token needed (recommended).
  # For token-based publishing: set NPM_TOKEN (or NODE_AUTH_TOKEN).
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Configuration

Configure via releasekit.config.json:

{
  "publish": {
    "npm": {
      "enabled": true,
      "auth": "auto",
      "provenance": true,
      "access": "public",
      "copyFiles": ["LICENSE"]
    },
    "git": {
      "pushMethod": "auto",
      "httpsTokenEnv": "GITHUB_TOKEN"
    },
    "cargo": {
      "enabled": false,
      "noVerify": false
    },
    "githubRelease": {
      "enabled": true,
      "draft": true,
      "body": "auto"
    },
    "verify": {
      "npm": {
        "maxAttempts": 5,
        "initialDelay": 15000
      },
      "cargo": {
        "maxAttempts": 10,
        "initialDelay": 30000
      }
    }
  }
}

See @releasekit/config for full configuration options.

Documentation

Guides

License

MIT