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

bunvm

v1.5.0

Published

Bun Version Manager - Switch between different versions of Bun easily

Readme

BVM - Bun Version Manager

BVM is a simple and fast CLI tool to manage multiple versions of Bun, the all-in-one JavaScript runtime. Inspired by tools like nvm and rvm, BVM lets you easily install, switch, and manage different Bun versions.


🚀 Features

  • 📥 Install any version of Bun
  • 🔁 Switch between installed versions seamlessly, supports .bun-version
  • 📦 Uninstall versions you no longer need
  • 📃 List installed and remote Bun versions
  • 🎯 Interactive prompts for install, use, and uninstall (powered by Clack)
  • 🔒 SHA-256 checksum verification before extracting downloads
  • 🐧 Smart platform detection (Apple Silicon, Alpine/musl, AVX2 baseline, Rosetta)
  • 🐚 Auto-configure shell environment (bash, zsh, fish)
  • 🔔 Update notifications when a newer bvm release is available
  • 🧠 Lightweight and fast – built with Node.js and TypeScript
  • 🔗 Automatic symlink management for bun and bunx
  • ✨ Command completions support

🖥️ Platform Support

| Platform | Status | Tested | | -------- | ---------------- | ------------------------------- | | Linux | ✅ Supported | ✅ Tested on Ubuntu/Debian | | macOS | ✅ Supported | ✅ Tested on M2 (Apple Silicon) | | Windows | ❌ Not supported | ❌ Not supported yet |

Note: BVM supports macOS and Linux only. Windows support is not implemented.


📦 Installation

Install from npm

# With npm
npm install -g bunvm

# With pnpm (recommended)
pnpm add -g bunvm

# With yarn
yarn global add bunvm

# With Bun
bun add -g bunvm

After installation, you can use the bvm command from anywhere in your terminal.

Install from source

git clone https://github.com/MrHacker26/bvm.git
cd bvm
pnpm install
pnpm build
pnpm link

🛠️ Usage

Once installed, you can use bvm from anywhere in your terminal:

bvm install [version]     # Install a Bun version (alias: i)
bvm install latest        # Install the latest Bun version
bvm use [version]         # Switch to a Bun version
bvm uninstall [version]   # Remove an installed version (alias: u)
bvm current               # Display currently activated version of Bun
bvm list                  # List installed Bun versions (alias: ls)
bvm remote                # List remote Bun versions (alias: r)
bvm upgrade               # Show how to update bvm itself
bvm --help                # Show help information

Project versions

Pin a Bun version with .bun-version or package.json:

echo "1.4.4" > .bun-version
# or in package.json: "packageManager": "[email protected]"
# or in package.json: "engines": { "bun": "1.4.4" }

bvm install              # Install the project's version
bvm use                  # Switch to the project's installed version

When no version argument is supplied, bvm install and bvm use look in the current directory (then parents) for:

  1. .bun-version
  2. packageManager: "bun@…" (integrity suffix after + is ignored)
  3. exact engines.bun (ranges like >=1.2.0 are ignored)

Whitespace and an optional v prefix are accepted (for example, v1.2.5). latest is also supported by bvm install; bvm use requires an installed version.

Interactive mode

When run without a version argument in a terminal, install and use show interactive menus if no .bun-version is found. uninstall and remote also use menus when run interactively:

  • bvm use — pick from installed versions (cursor starts on your current version)
  • bvm install — pick from remote releases (latest is pre-selected; shows installed / current hints)
  • bvm uninstall — pick a version to remove, then confirm (warns if it's your active version)
  • bvm remote — browse remote releases and confirm to install or switch (prints a table in CI/pipes)

In non-interactive environments (CI, pipes), install and use require either a version argument or a .bun-version file. uninstall requires an argument:

bvm use 1.2.5        # works in scripts
bvm use              # reads .bun-version; errors in CI if no file is found

Updating bvm

BVM checks for newer releases in the background (at most once a day) and shows a notification when an update is available. To see how to update:

bvm upgrade

This prints the update command for each package manager (npm, pnpm, yarn, bun) — it does not modify anything itself. To disable the update check, set NO_UPDATE_NOTIFIER=1.


📌 Examples

# Install the latest Bun version
bvm install latest

# Install a specific Bun version
bvm install 1.0.12
bvm i 1.0.12              # alias

# Interactive install — pick from remote versions
bvm install

# Switch to a specific version
bvm use 1.0.12

# Interactive switch — pick from installed versions
bvm use

# List all installed versions
bvm list
bvm ls                    # alias

# See what versions are available remotely
bvm remote
bvm r                     # alias

# Remove an old version (with confirmation prompt)
bvm uninstall 1.0.11
bvm u 1.0.11              # alias

# Interactive uninstall — pick then confirm
bvm uninstall

# See how to update bvm itself
bvm upgrade

🛠️ Development

Prerequisites

  • Node.js 20+
  • pnpm (recommended) or npm
  • Bun (for running tests)

Setup

# Clone the repository
git clone https://github.com/MrHacker26/bvm.git
cd bvm

# Install dependencies
pnpm install

# Build the project
pnpm build

# Link for local testing
pnpm link

# Run in development mode
pnpm dev

Scripts

  • pnpm build - Build the project with tsup
  • pnpm dev - Run in development mode with tsx
  • pnpm test - Run unit tests with Bun
  • pnpm clean - Clean build directory
  • pnpm start - Run the built CLI
  • pnpm format - Format code with Prettier
  • pnpm lint - Lint code with ESLint
  • pnpm lint:fix - Fix linting issues

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Areas where help is needed:

  • Testing on Linux (x64, ARM) and macOS (Intel)
  • Bug fixes and improvements
  • Documentation updates

📄 License

MIT License - see LICENSE file for details.


🙏 Acknowledgments

  • Inspired by nvm and rvm
  • Built for the amazing Bun runtime
  • Thanks to the TypeScript and Node.js communities

📞 Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue with details about your environment
  3. Include your platform, shell, and any error messages

Happy Bunning! 🥖✨