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

@davegarvey/bumper

v2.3.1

Published

Automatic semantic versioning based on conventional commits, optimized for AI-generated commit messages

Readme

Bumper

Automatic semantic versioning based on conventional commits, optimised for AI-generated commit messages.

Installation

npm install -g @davegarvey/bumper
# or
npx @davegarvey/bumper

Usage

# Run in your project root
bump

# Or with npx
npx bump

# Push to remote
bump --push

# Create git tag
bump --tag

# Raw mode (output only version, dry run)
bump --raw

# With explicit options overrides
bump --tag --tag-prefix "release-v"
bump --commit-prefix "chore(release): bump"
bump --preset git --tag

# Show help
bump --help

Configuration

You can use a file-based configuration for Bumper instead of CLI arguments.

Create .versionrc.json in your project root:

{
  "packageFiles": ["package.json", "client/package.json"],
  "commitPrefix": "chore: bump version",
  "tagPrefix": "v",
  "push": false,
  "tag": false,
  "preset": "node"
}

Configuration Options

  • packageFiles: Array of package.json files to update (default: ["package.json"])
  • commitPrefix: Prefix for version bump commits (default: "chore: bump version")
  • tagPrefix: Prefix for git tags (default: "v")
  • push: Whether to push commits/tags to remote (default: false)
  • tag: Whether to create git tags for versions (default: false)
  • preset: Versioning strategy to use (default: "node"). Options:
    • "node": Updates package.json and package-lock.json
    • "git": Tracks version via git tags only (no file updates)

Best Practices

  • Branch Protection: Protect your main branch and require CI checks to pass
  • Conventional Commits: Ensure all commits follow conventional commit format
  • Monorepos: Use packageFiles array for multiple packages
  • CI Permissions: Grant write access to contents/commits for automated releases

GitHub Actions

In a typical CI/CD scenario, bumper runs automatically when PRs are merged to main:

name: Release
on:
  pull_request:
    types: [closed]
    branches: [main]

jobs:
  release:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    permissions:
      contents: write      # Required for pushing commits/tags
      pull-requests: read  # Required for PR info
    steps:
    - uses: actions/checkout@v4
      with:
        fetch-depth: 0  # Required for commit analysis
    - uses: actions/setup-node@v4
      with:
        node-version: 18
        cache: npm
    - run: npm ci
    - run: npm test
    - run: npm run lint
    - name: Configure Git
      run: |
        git config user.name "github-actions[bot]"
        git config user.email "github-actions[bot]@users.noreply.github.com"
    - name: Install bumper
      run: npm install @davegarvey/bumper
    - name: Bump version and release
      run: npx bump --push --tag

CI Best Practices

  • Permissions: Add contents: write permission for automated commits/tags
  • Branch Protection: Require CI checks and restrict direct pushes to main
  • Testing: Always run tests before releasing
  • Fetch Depth: Use fetch-depth: 0 for complete commit history analysis

How It Works

  1. Analyzes commits since last tag
  2. Determines version bump (major/minor/patch) based on conventional commits
  3. Updates package.json files
  4. Creates git commit
  5. Optionally creates git tag
  6. Optionally pushes to remote

Commit Types

  • feat: → minor bump
  • fix:, refactor:, perf: → patch bump
  • Any type with ! or BREAKING CHANGE → major bump
  • docs:, test:, chore:, config: → no bump

Troubleshooting

Common Issues

"Author identity unknown"

  • Solution: Configure git identity in CI before running bumper
  • Example: Add git config step as shown in CI workflow

"auto-version: not found"

  • Solution: Install bumper locally before running: npm install @davegarvey/bumper
  • Why: npx may not resolve bins from remote packages reliably

No version bump on merge

  • Check: Ensure PR contains conventional commits with feat:, fix:, etc.
  • Check: Verify CI has write permissions to repository
  • Check: Confirm fetch-depth: 0 in checkout action

Invalid config file

  • Solution: Ensure .versionrc.json contains valid JSON
  • Note: Empty or invalid files fall back to defaults with a warning

Getting Help

  • Check commit format with conventional commits specification
  • Verify CI permissions and branch protection rules
  • Test locally with bump for debugging (pushing is disabled by default)

For AI Users

This tool is optimised for AI-generated commit messages that follow conventional commit format. See .github/prompts/sc.prompt.md for an example prompt that generates commits compatible with bumper.