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

bunmsh

v0.0.1

Published

Cross-platform command shell for Bun

Readme

bunmsh

  • bunmsh is a dependency-free, mksh-inspired cross-platform command shell for Bun
    • Bun Modern Shell
  • Early releases focus on a small, usable command interpreter rather than full mksh compatibility.

Usage

Install Bun first

  • bunmsh requires Bun
  • On Android, install it in Termux:
npm install -g bun

On other platforms, follow the official Bun installation guide.

No project dependencies need to be installed with npm install or bun install.

Option 1: Run with npx

# Interactive shell
npx bunmsh
npx bunmsh -c 'print $PATH'

npx installs and launches the package, but the bunmsh executable itself uses Bun. Bun must therefore already be available on PATH.

Option 2: Run with git clone

After the repository is publicly available:

  • Interactive shell
git clone https://github.com/jjtseng93/bunmsh.git
cd bunmsh

bun ./bunmsh
  • Running commands or scripts
bun ./bunmsh -c 'print $PATH'

# bun ./bunmsh script.sh arg1 arg2

What's implemented

  • Interactive prompt, standard-input scripts, script files and -c

  • External commands through Bun.spawn

  • Sequential pipelines (a | b)

  • Command lists with ;, && and ||

  • Single quotes, double quotes and backslash quoting

  • $NAME, ${NAME}, $?, $$, $#, $0 through $9

  • Leading environment assignments and persistent assignment-only commands

  • <, >, >>, 2> and 2>>

  • cd, pwd, export, unset, env, exit, set, :, true, false, echo, print and a small printf

  • See PORTING.md for semantic limitations and the remaining mksh work.

Test

bun test

Built-in README

Show this README in the terminal with ANSI formatting:

bunmsh --readme

--readme reads the embedded copy first when running a standalone executable, then falls back to the repository's README.md during development.

Standalone executable

Build a single-file executable for the current platform:

bun ./src/main.js --build-exe
./bmsh --version

Cross-compile for a Bun-supported target:

bun ./src/main.js --build-for bun-linux-x64

The build writes ./bmsh and leaves the repository's ./bunmsh launcher unchanged. The executable includes README.md as an internal asset. See single-exe/README.md for asset-management options.

License

The original bunmsh JavaScript implementation is released under the MIT License, Copyright (c) 2026 Dr. John (醫者小智).

mksh is a separate upstream project and is not relicensed under MIT. Its complete licence terms remain in LICENSE-MKSH.