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

@ricsam/r5d-macos-vm

v0.0.72

Published

`r5d-macos-vm` creates and runs a local macOS VM for r5d.dev on Apple silicon. The npm package contains the CLI and guest bootstrap scripts, but no Apple software or prebuilt VM image. It downloads a signed and notarized r5d native runner from `downloads.

Readme

@ricsam/r5d-macos-vm

r5d-macos-vm creates and runs a local macOS VM for r5d.dev on Apple silicon. The npm package contains the CLI and guest bootstrap scripts, but no Apple software or prebuilt VM image. It downloads a signed and notarized r5d native runner from downloads.r5d.dev; that runner downloads the current compatible macOS restore image directly from Apple and installs it locally.

Requirements

  • An Apple-silicon Mac running macOS 14 or newer.
  • Node.js 18 or newer.
  • Enough free storage for the Apple restore image and the VM disk. The default disk is sparse, but macOS installation can still use tens of gigabytes.
  • Internet access to Apple, r5d.dev, npm, and downloads.r5d.dev.

No Xcode installation, Apple Developer account, or prebuilt macOS image is required on the user's Mac.

Quick start

npx @ricsam/r5d-macos-vm doctor
npx @ricsam/r5d-macos-vm create

The default VM is named r5d-macos. To use a different name or size:

r5d-macos-vm create build-mac \
  --cpus 4 \
  --memory-bytes 8589934592 \
  --disk-bytes 85899345920

Complete macOS Setup Assistant in the VM, then double-click /Volumes/My Shared Files/r5d Setup/Install r5d.command. The shared bootstrap opens a visible Terminal, installs Homebrew and the r5d command-line tools, and starts worker enrollment. On another device, visit https://r5d.dev/auth and enter the displayed code, or scan its QR code. The worker starts only after authorization succeeds.

Useful commands:

r5d-macos-vm list
r5d-macos-vm status build-mac
r5d-macos-vm start build-mac
r5d-macos-vm stop build-mac
r5d-macos-vm delete build-mac --yes          # move the VM to Trash
r5d-macos-vm delete build-mac --yes --purge  # permanently delete it
r5d-macos-vm cache prune                     # remove restore images and old native runners

Add --json for newline-delimited progress events suitable for automation. --state-root <path> and --bootstrap-dir <path> are development/test overrides. Interactive progress updates one terminal line in place. When output is redirected to a file or pipeline, progress is limited to one line per five percent.

Storage and security

  • VM bundles: ~/Library/Application Support/r5d/macos-vms/
  • Apple restore-image cache: ~/Library/Caches/dev.r5d.macos-vm/restore/
  • Versioned native runners: ~/Library/Caches/dev.r5d.macos-vm/runtimes/<package-version>/

Every npm version pins the native archive's exact HTTPS URL, SHA-256, byte length, Apple Team ID, bundle ID, arm64 architecture, and macOS deployment target. Before execution, the CLI uses built-in macOS security tools to verify the checksum, Mach-O metadata, Developer ID signature, exact virtualization-only entitlement set, hardened runtime, stapled notarization ticket, and Gatekeeper's notarization assessment. It does not invoke Xcode or its command-line tools. Downloads and extraction are locked and promoted into the cache atomically.

The package never distributes an IPSW, installed macOS disk, auxiliary storage, hardware model, or machine identifier. Restore images come from Apple and remain in the local cache only when requested or needed for installation.

Updating and removing

Updating the npm package installs a new versioned native runner and does not modify existing VM bundles. The guest's r5d-worker and r5dctl use their normal r5d update flow.

npm uninstall -g @ricsam/r5d-macos-vm removes only the CLI. For complete removal, revoke the worker in r5d.dev, delete or purge each VM, run r5d-macos-vm cache prune, and then uninstall the npm package. Native runtime caches can be removed manually after the CLI is uninstalled; VM bundles are intentionally never removed by npm lifecycle scripts.

Troubleshooting

  • Run r5d-macos-vm doctor --json for machine-readable host and Virtualization.framework diagnostics.
  • A checksum, signature, Team ID, entitlement, or notarization error is treated as unsafe. Reinstall the npm package and retry; do not bypass the check.
  • If an install was interrupted, rerun create with the same name. After acquiring the per-VM lock, the CLI moves incomplete staging data to Trash, rebuilds it from scratch, and reuses the resumable restore-image cache.
  • Clipboard sharing is not required for enrollment; use the short code or QR code shown in the guest Terminal.

Use of macOS virtual machines is subject to Apple's software license terms. This tool is intended for eligible local use on Apple-branded hardware; it does not grant rights to host or relay macOS environments as a service.