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

vshot

v1.0.7

Published

Bump semver, inject build info, and auto-commit in one command

Readme

vshot

Bump semver, inject build metadata, and auto-commit — in one command.

vshot is a small CLI for projects that want versioning, build information, and Git commits handled together.

vshot p "fix login bug"

This bumps:

1.2.3 → 1.2.4

and creates the commit:

1.2.4: fix login bug

Installation

Global installation

Install vshot globally:

npm install -g vshot

After installation, use it directly in any project:

vshot p "fix login bug"
vshot mi "add dark mode"
vshot ma "rewrite core engine"

Local installation

Install vshot as a development dependency:

npm install -D vshot

Then add a script to your project's package.json:

{
  "scripts": {
    "v": "vshot"
  }
}

For example:

npm run v p "fix login bug"

The same command works with other package managers:

pnpm v p "fix login bug"
yarn v p "fix login bug"

Usage

vshot <type> "<message>"

Version types

| Type | Bump | Example | | ---- | ----- | ----------------- | | p | Patch | 1.2.31.2.4 | | mi | Minor | 1.2.31.3.0 | | ma | Major | 1.2.32.0.0 |

For example:

vshot p  "fix login bug"
vshot mi "add dark mode"
vshot ma "rewrite core engine"

The message is used as the Git commit message.

For example:

1.3.0: add dark mode

What it does

1. Bumps the version

vshot reads the current version from package.json and applies the requested semver bump.

2. Adds build metadata

vshot adds or updates buildInfo in package.json:

{
  "buildInfo": {
    "buildNumber": "260823.0110",
    "buildEpoch": "1787429400",
    "gitHash": "b1d887f",
    "gitCommitEpoch": "1787429000"
  }
}

The fields are:

| Field | Description | | ---------------- | ---------------------------------------- | | buildNumber | Build date and time in YYMMDD.HHmm UTC | | buildEpoch | Build timestamp as Unix time | | gitHash | Short hash of the current HEAD commit | | gitCommitEpoch | Timestamp of the current HEAD commit |

3. Creates the Git commit

vshot automatically stages and commits the changes.

Its staging behavior is:

When files are already staged

Only the existing staged changes and package.json are committed.

When nothing is staged

vshot stages all changes and commits them together with package.json.

This lets you choose whether the commit should contain only selected changes or the entire working tree.

Example

Suppose the current version is:

{
  "version": "1.2.3"
}

Run:

vshot mi "add dark mode"

vshot will:

  1. Change the version to 1.3.0
  2. Add the build metadata
  3. Stage the required files
  4. Create a commit with:
1.3.0: add dark mode

Example output:

[vshot] 1.2.3 → 1.3.0
[vshot] Build: [260823.0110] Hash: [b1d887f]
[vshot] No staged changes → staging everything.
[main 2349338] 1.3.0: add dark mode
 8 files changed, 212 insertions(+), 30 deletions(-)
[vshot] Committed: "1.3.0: add dark mode"

Git

Git is used to read build information and create the commit.

If Git metadata cannot be read, vshot falls back to:

{
  "gitHash": "no-git",
  "gitCommitEpoch": "0"
}

The version and build metadata are still updated, but creating the commit requires Git.

Requirements

  • Node.js >= 18
  • Git for automatic commits

License

MIT