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

@machinen/cli

v0.4.0

Published

The shell interface to machinen. Use this when you want to boot, snapshot, restore, fork, and otherwise drive microVMs from a terminal or a script — without writing any TypeScript.

Readme

@machinen/cli

The shell interface to machinen. Use this when you want to boot, snapshot, restore, fork, and otherwise drive microVMs from a terminal or a script — without writing any TypeScript.

What you can do with it

  • Boot a Linux workload in a microVM. Run a one-shot command, or start a long-running service and detach so your shell can exit.
  • Hand a running process off to another machine. Snapshot it on host A, copy the bundle, restore on host B. The process resumes exactly where it left off — same heap, same connections, same counters in memory.
  • Clone a warmed-up VM into a sibling. fork snapshots and restores in one step; both copies run independently from a shared heap. Useful for branching test fixtures, parallel exploration, or duplicating a process with caches loaded.
  • Reach into a running VM. attach for an interactive shell with job control; exec for one-off commands; repl for piping a script of one-liners.
  • Manage VM lifecycles. list (alias ls) to see what's running, stop to shut one down cleanly, gc to clean up after detached boots that crashed.
  • Drive it from an agent. --json on every data-returning command (list, gc, install, snapshot, stop, boot --detach, fork --detach, feedback). mn agent-context emits a versioned JSON description of the whole CLI surface for introspection. mn feedback "<text>" records friction notes locally (and POSTs upstream when MACHINEN_FEEDBACK_ENDPOINT is set).

For end-to-end recipes (provisioning images, mounts, networking, snapshot patterns), see the guides. For the full command-by-command reference, see API.md.

Install

npm i @machinen/cli           # then run via `npx machinen …` or `npx mn …`
npm i -g @machinen/cli        # or globally if you prefer it on PATH

Both machinen and the shorter alias mn are installed.

The matching native package (@machinen/native-arm64-darwin, @machinen/native-arm64-linux, or @machinen/native-x64-linux) is pulled in via optional dependencies. It ships the VMM plus sibling host tools such as gvproxy, mke2fs, and mksquashfs, so no system packages are required.

First boot fetches the matching kernel + base rootfs from the public companion GitHub release over HTTPS; no GitHub authentication is needed.

At a glance

npx machinen boot ./image.tar.gz                 # boot a provisioned image
npx machinen boot --name worker --detached ./image.tar.gz
                                                  # ... and reach it from another shell:
npx machinen ls
npx machinen exec worker -- ps aux
npx machinen attach worker
npx machinen snapshot worker ./warm
npx machinen restore ./warm
npx machinen fork worker --new-name worker-b --detach
npx machinen stop worker

After the subcommand, the first positional is the target VM. Pass a name for a registered VM, or a host pid (digits-only) to identify it by process.

Reference

The full command surface — every flag, every error mode, the cache layout, the env vars — is in API.md.

License

FSL-1.1-MIT — converts to MIT two years after each release.