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

sheepdog

v1.0.1

Published

Herd your monorepo dependencies

Readme

sheepdog

Herd NPM packages in your monorepo. :dog:

This devtool ensures that common dependencies in a monorepo "resolve" to the same version to allow for hoisting with tools like Lerna. This makes for more predictable development and a smaller bundle footprint.

How's It Work?

First, Sheepdog looks at package.json files and forms a dependency tree. This dependency tree represents all the dependencies an entire monorepo needs.

Next, Sheepdog examines the tree and tries to see if dependency ranges across the monorepo "resolve" to the same version. At a high-level, that routine looks like this:

  1. Dependency version ranges can be thought of as mathematical intervals.
  2. If all version ranges end on the same version with the same exclusivity, the dependencies will resolve. For example, these version ranges will resolve because they both end in 3.0.0 exclusive:
    ^2.0.0 => [2.0.0, 3.0.0)
    ^2.1.5 => [2.1.5, 3.0.0)

Finally, using this information, Sheepdog reports which dependencies are inconsistent in which packages in the monorepo.

Installation

$ yarn add global sheepdog

Usage

Jump to command line argument documentation:

Executing Sheepdog with no arguments will find all package.json files in the current directory that are simultaneously not in a node_modules directory. It will then warn you of dependencies that conflict with each other in your monorepo packages (they do not resolve to the same version).

Exits with code 0.

bark

-b | --bark

Makes Sheepdog exit with code 1 if it finds conflicts. Useful for continuous integration.

marshal

-m | --marshal

Allows you to marshal conflicting dependencies to the correct version interactively. Useful for correcting dependency inconsistencies.

dir

-d | --dir <directory>

Changes the working directory in which Sheepdog will try to find package.json files.

quiet

-q | --quiet

Suppresses extraneous information to the terminal.

ignore

-i | --ignore <modules>

Ignores conflicting versions of modules in <modules>. For example:

# Ignores conflicting versions of react and redux.
$ sheepdog -i react,redux

only

-o | --only <type>

Only work on a specific dependency type. For example:

# Only works on devDependencies and dependencies
$ sheepdog -o dependencies,devDependencies