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

versionings

v1.0.7

Published

Semantic versioning automation CLI for Git repositories — bumps versions, creates branches and tags, opens pull requests.

Readme

Versionings — Semantic Release Platform for Git

npm License Node TypeScript Build

CLI tool that automates semantic versioning workflows for Git repositories. Bumps versions, creates branches and tags, and optionally pushes changes and opens pull requests on supported SCM platforms.

Installation

npm install --global versionings

Requires Node.js >= 18.

Quick Start

# Create a configuration file
versionings init

# Preview what will happen (dry-run)
versionings plan --semver=patch --branch=my-feature

# Execute the versioning workflow
versionings release --semver=patch --branch=my-feature

See the Setup Guide for a complete walkthrough.

Commands

| Command | Description | Mutates Repo? | |---------|-------------|---------------| | init | Interactive config wizard | No | | validate | Check config and environment | No | | plan | Dry-run: show execution plan | No | | release | Execute versioning workflow | Yes | | rollback | Revert last operation | Yes | | doctor | Diagnose environment | No | | changelog | Generate changelog from commits | No |

See the CLI Reference for full details on each command, parameters, and examples.

Backward compatibility: Running versionings --semver=<type> --branch=<name> without a subcommand is equivalent to versionings release.

Features

  • 6 branching strategies (default, trunk-based, git-flow, release-branch, hotfix, maintenance)
  • 6 SCM platforms (GitHub, GitHub Enterprise, Bitbucket, Bitbucket Server, GitLab, Azure DevOps)
  • Conventional Commits parsing with --semver=auto
  • Changelog generation from commit history
  • Interactive and non-interactive modes
  • Config Provenance (--print-config)
  • Dry-run with plan command
  • Automatic rollback on failure
  • JSON output for CI (--json)
  • Structured JSON logging with operation IDs and actor metadata
  • Concurrency lock to prevent parallel releases
  • Action trace with step-level timing

See the documentation for details on each feature.

Exit Codes

| Code | Name | Description | |------|------|-------------| | 0 | SUCCESS | Successful completion | | 1 | CONFIG_ERROR | Configuration error | | 2 | DIRTY_TREE | Uncommitted changes | | 3 | INVALID_ARGS | Invalid CLI arguments | | 4 | ARTIFACT_CONFLICT | Branch or tag already exists | | 5 | COMMAND_FAILED | Git/npm command failed | | 6 | NETWORK_ERROR | Network error | | 7 | INCOMPLETE_ROLLBACK | Rollback could not complete | | 8 | NO_OPERATION | Nothing to rollback | | 9 | USER_CANCELLED | User cancelled operation | | 10 | POLICY_VIOLATION | Branch policy violated | | 11 | NO_CONVENTIONAL_COMMITS | No conventional commits for auto-bump |

See the Failure Matrix for causes, error examples, and remediation steps.

Documentation

Full documentation is available in the docs/ directory:

Development

Prerequisites

  • Node.js >= 18
  • npm

Commands

npm install          # Install dependencies
npm run build        # Bundle via esbuild + emit type declarations
npm test             # Run all tests (unit, property, integration, e2e)
npm run typecheck    # Type-check without emitting
npm run lint         # Lint all source and test files

Project Structure

src/
├── cli/               # CLI entry point, command router, subcommands
│   ├── version.ts     # Entry point (compiles to out/dist/index.js)
│   ├── command.router.ts
│   ├── interaction.manager.ts
│   └── commands/      # init, validate, plan, release, rollback, doctor, changelog
├── core/              # Pipeline, executor, errors, rollback, reporter
│   ├── pipeline.ts    # Workflow orchestration
│   ├── executor.ts    # Shell command execution (Promise-based, DI)
│   ├── errors.ts      # Exit codes (0–11) and VersioningsError
│   ├── rollback.ts    # Rollback manager
│   ├── reporter.ts    # JSON / human-readable output
│   ├── structured.logger.ts  # Structured JSON logging
│   ├── lock.manager.ts       # Concurrency lock
│   ├── action.tracer.ts      # Step timing trace
│   └── actor.resolver.ts     # Git user / CI actor metadata
├── config/            # Configuration loading, merging, validation
├── scm/               # SCM provider abstraction and PR/MR creation
│   ├── providers/     # GitHub, GitLab, Bitbucket, Azure DevOps
│   └── ...
├── branching/         # Branching strategies and policy checker
│   ├── strategies/    # default, trunk-based, git-flow, release, hotfix, maintenance
│   └── ...
├── versioning/        # Conventional commits, auto-bump, changelog
└── utils/             # Shared utilities (ANSI colors, helpers)

Test Structure

__tests__/
├── unit/              # Module-level tests with mocks (mirrored by domain)
│   ├── cli/
│   ├── core/
│   ├── config/
│   ├── scm/
│   ├── branching/
│   ├── versioning/
│   └── utils/
├── properties/        # Property-based tests (fast-check, 100+ iterations each)
│   ├── core/
│   ├── config/
│   ├── scm/
│   ├── branching/
│   └── versioning/
├── integration/       # Full pipeline with real git repos (no mocks)
├── e2e/               # CLI as child process with real git repos
└── helpers/           # Test utilities (repo fixture creation)

License

MIT