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

semantic-release-version-badge

v1.0.6

Published

A plugin for semantic-release that updates version badge in README file with latest bumped version

Readme

semantic-release-version-badge

Version License

A semantic-release plugin that updates version badge in README file with the latest released version.

Installation

npm install --save-dev semantic-release-version-badge

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "semantic-release-version-badge"
  ]
}

Configuration

Plugin Options

| Option | Description | Default | |---------------|--------------------------------------------------------------|--------------------------------------------------------------| | badgeTemplate| Template string for the version badge | ![Version](https://img.shields.io/badge/version-${version}-blue.svg) | | readmePath | Path to the README file | README.md |

Example Configuration

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    ["semantic-release-version-badge", {
      "badgeTemplate": "![Current Version](https://img.shields.io/badge/version-${version}-green.svg)",
      "readmePath": "./docs/README.md"
    }]
  ]
}

How it Works

The plugin runs during the prepare phase of semantic-release. It:

  1. Reads the specified README file
  2. Updates the version badge using the new version
  3. Writes the changes back to the file

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Setup

# Clone the repository
git clone https://github.com/lcaparros/semantic-release-version-badge.git

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

Commit Convention

This project follows Conventional Commits specification. Each commit message must be structured as follows:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types

  • feat: (Minor) New feature or significant enhancement
  • fix: (Patch) Bug fix
  • docs: (Patch) Documentation updates
  • style: (No Release) Code formatting changes
  • refactor: (Patch) Code restructuring without behavior change
  • perf: (Patch) Performance improvements
  • test: (No Release) Adding/modifying tests
  • build: (Patch) Changes affecting build system
  • ci: (No Release) Changes to CI configuration
  • chore: (No Release) Maintenance tasks
  • revert: (Special) Reverts a previous commit

Scopes

Common scopes include:

  • auth: Authentication related changes
  • api: API endpoints
  • db: Database changes
  • email: Email functionality
  • security: Security features
  • ui: User interface
  • docs: Documentation
  • tests: Test infrastructure

Examples

feat(auth): add password reset functionality
fix(email): handle sendgrid connection timeout
docs(readme): update installation steps
style(lint): format code according to prettier rules
refactor(api): simplify error handling

Breaking Changes

For breaking changes:

  1. Add ! after type/scope
  2. Add BREAKING CHANGE: in footer

Example:

feat(auth)!: change authentication token format

BREAKING CHANGE: New token format is not backward compatible with existing clients

Version Impact

  • Breaking changes (!) -> Major version bump
  • feat -> Minor version bump
  • fix, perf, refactor -> Patch version bump
  • docs, style, test, ci, chore -> No version bump

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.