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

@uscreen.de/pnpm-upgrade-packages

v1.4.1

Published

Helper CLI utility to upgrade multiple packages using pnpm

Readme

PNPM Upgrade Packages

An interactive CLI tool for upgrading npm packages across the pnpm-based monorepo with intelligent workspace filtering.

Install from npm

Install the package as a dev dependency in your monorepo:

# Using npm
npm install -D @uscreen.de/pnpm-upgrade-packages

# Using pnpm
pnpm add -D @uscreen.de/pnpm-upgrade-packages

Usage

Installed in monorepo (recommended)

upgrade-packages [options]

In this app:

node cli.js [options]

Options

  • --dry-run - Preview upgrade commands without executing them

Features

  • Interactive Selection - Browse and select packages from a formatted list
  • Workspace Filtering - Filter packages by specific apps/workspaces
  • Smart Detection - Automatically detects root vs workspace packages
  • Version Strategies - Choose between exact (1.2.3) or caret (^1.2.3) versions
  • Selective Upgrades - Choose which workspaces to upgrade for each package
  • Auto-Refresh - Updates package list after each successful upgrade
  • Dry Run Mode - Preview commands before executing

How It Works

  1. Fetches outdated packages using pnpm outdated -r
  2. Separates packages into root and workspace entries
  3. Presents an interactive list with version info and affected workspaces
  4. Allows filtering by specific workspaces
  5. Generates correct pnpm commands (-w for root, --filter for workspaces)
  6. Auto-refreshes after successful upgrades

Examples

# Start interactive upgrade session
./upgrade-packages.js

# Preview commands without executing
./upgrade-packages.js --dry-run

Interactive Flow

📦 PNPM Monorepo Package Upgrader

🔍 Fetching outdated packages...
Found 15 outdated package(s)

? Select a package to upgrade:
  🔍 Filter by workspace...
  ────────────────────────────────────────────────
  prettier (dev) (root)  3.7.3 → 3.7.4  1  monorepo
  eslint (dev)           9.1.0 → 9.2.0  8  auth-service, mailer-api, ...
  @nx/js                22.1.2 → 22.1.3  1  monorepo

? Select workspaces to upgrade eslint in:
  ◉ auth-service (@scope/auth-service)
  ◉ mailer-api (@scope/mailer-api)

? Choose version strategy:
  ❯ Exact version (9.2.0)
    Caret version (^9.2.0)

📦 Upgrade Details:
   Package: eslint
   Version: 9.1.0 → 9.2.0
   Workspaces: auth-service, mailer-api

💻 Command: pnpm add -D [email protected] --filter auth-service --filter mailer-api

? Execute this upgrade? (Y/n)

Package Display Format

<name> <(dev)> <(root)>  <current> → <latest>  <#>  <workspaces>
  • (dev) - Indicates devDependency
  • (root) - Indicates root package.json
  • # - Number of workspaces using this package
  • Workspaces limited to 5, shows "..." if more