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

pnpm-ws-link

v0.0.3

Published

CLI tool to generate pnpm overrides for linking external workspace packages

Readme

pnpm-ws-link

A CLI tool to generate pnpm overrides for linking external workspace packages.

Description

pnpm-ws-link helps you link packages from external monorepos into your current project by automatically generating the necessary pnpm.overrides in your package.json. It scans the provided package directories, identifies their workspace: dependencies, resolves the paths, and adds link overrides.

Installation

npm install -g pnpm-ws-link
# or
pnpm add -g pnpm-ws-link
# or if you use volta
volta install pnpm-ws-link

Usage

Run the command in the root of the repository where you want to add the overrides:

pnpm-ws-link /path/to/external/package1 /path/to/external/package2

This will:

  • Read the package.json of each specified package directory.
  • Add the packages themselves to the overrides.
  • For any workspace: dependencies in their dependencies field, resolve their paths and add them to overrides.
  • Update your package.json with the new pnpm.overrides.

Options

  • --dry: Preview the overrides without modifying package.json.
pnpm-ws-link --dry /path/to/external/package

Example

Suppose you have an external monorepo with packages pkg-a and pkg-b, where pkg-a depends on pkg-b via workspace:*.

Running:

pnpm-ws-link /external/repo/packages/pkg-a

Will add to your package.json:

{
	"pnpm": {
		"overrides": {
			"pkg-a": "link:../external/repo/packages/pkg-a",
			"pkg-b": "link:../external/repo/packages/pkg-b"
		}
	}
}

Requirements

  • The external packages must be in directories containing package.json.
  • If a package has workspace: dependencies, the tool will look for pnpm-workspace.yaml upward from the package directory to resolve the workspace packages.