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

@seangalie/companion

v1.1.0

Published

A terminal-based macOS update console that runs softwareupdate, mas, mise, npm, Deno, Bun, pnpm, Yarn, pipx, uv, rustup, cargo, Composer, gh, VS Code, Cursor, tldr, Homebrew, and Docker image update tasks in sequence.

Readme

macOS Companion

A terminal-based macOS update console.

companion.sh runs a sequence of common update tasks for macOS so they can be kicked off with a single command.

What it does

The script runs the following tasks in order:

  1. sudo softwareupdate -i -a — install all available macOS software updates
  2. mas upgrade — upgrade Mac App Store apps via the mas CLI
  3. mise upgrade — upgrade tools managed by mise
  4. npm update -g — update globally installed npm packages
  5. deno upgrade — upgrade the Deno runtime
  6. bun update -g — update globally installed Bun packages
  7. pnpm update -g — update globally installed pnpm packages
  8. yarn global upgrade — upgrade globally installed Yarn packages
  9. pipx upgrade-all — upgrade all pipx-managed Python applications
  10. uv tool upgrade --all — upgrade tools installed via uv
  11. rustup update — update installed Rust toolchains
  12. cargo install-update -a — update all cargo-installed binaries (requires the cargo-update crate)
  13. composer global update — update globally installed Composer packages
  14. gh extension upgrade --all — upgrade installed GitHub CLI extensions
  15. code --update-extensions — update installed VS Code extensions
  16. cursor --update-extensions — update installed Cursor extensions
  17. tldr --update — refresh the cached tldr pages
  18. brew update — refresh the local Homebrew formula and cask index
  19. brew upgrade — upgrade outdated Homebrew packages
  20. brew cleanup — remove outdated Homebrew downloads and stale versions
  21. docker pull for each local image — pull the latest version of every image known to the Docker daemon (skipped when Docker is not installed or the daemon is not running)

Steps that depend on a missing tool are skipped with a warning. Each step prints a clearly labeled header so progress is easy to follow.

Requirements

  • macOS with the built-in softwareupdate command
  • sudo access for softwareupdate
  • All other tools are optional — their steps are skipped when the command is not on PATH:
    • Homebrew for the brew steps
    • mas for mas upgrade
    • mise for mise upgrade
    • Node.js / npm for npm update -g
    • Deno for deno upgrade
    • Bun for bun update -g
    • pnpm for pnpm update -g
    • Yarn for yarn global upgrade
    • pipx for pipx upgrade-all
    • uv for uv tool upgrade --all
    • rustup for rustup update
    • cargo-update for cargo install-update -a
    • Composer for composer global update
    • GitHub CLI for gh extension upgrade --all
    • VS Code for code --update-extensions
    • Cursor for cursor --update-extensions
    • tldr for tldr --update
    • Docker for the Docker image pull step; Docker Desktop itself is updated via the Homebrew cask step above

Usage

From the repository directory:

./companion.sh

The script will prompt for your password when sudo softwareupdate runs.

Installing to your PATH

To run companion from anywhere, install a copy to your local bin directory:

./companion.sh --install

By default this copies the script to ~/.local/bin/companion. If that directory is not already on your PATH, the installer prints the line to add to your shell profile.

Override the destination with the COMPANION_INSTALL_DIR environment variable:

COMPANION_INSTALL_DIR=/usr/local/bin ./companion.sh --install

To remove an installed copy, run:

companion --uninstall

The uninstaller prompts for confirmation before deleting the file. It honours the same COMPANION_INSTALL_DIR override as --install.

Run ./companion.sh --help for a full list of options.

Installing via npm

The repository also ships with a package.json so it can be installed as a global npm package, which exposes companion on your PATH:

npm install -g @seangalie/companion

Or directly from the repository:

npm install -g git+https://code.galie.io/seangalie/companion.git

The package is marked "os": ["darwin"], so npm will refuse to install it on non-macOS systems.

Versioning

See CHANGELOG.md for release history. The project follows Semantic Versioning.