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

npm-compatible

v0.1.0

Published

Check compatibility of npm packages

Readme

npm-compatible

A CLI tool to check compatibility between npm packages based on their regular and peer dependencies.

Installation

# Using npm
npm install -g npm-compatible

# Using pnpm
pnpm add -g npm-compatible

# Using yarn
yarn global add npm-compatible

Usage

# Check compatibility between packages
npm-compatible <target> <base> 

Where:

  • <base> - Base package with version (e.g., [email protected])
  • <target> - Target package to check for compatibility

If you don't specify a version for a package, the CLI will use the latest stable version.

Examples

# Check if [email protected] is compatible with latest version of @emotion/react
npm-compatible [email protected] @emotion/react

# Check if the latest version of react is compatible with react-router-dom
npm-compatible react react-router-dom

How It Works

The tool checks compatibility through the following steps:

  1. Fetches all stable versions of the base package
  2. Checks if the target package is listed in the base package's regular or peer dependencies
  3. Verifies if the target package's version satisfies the version range specified in the base package's dependencies
  4. Returns compatibility status with relevant information

Features

  • ✅ Checks compatibility based on regular and peer dependencies
  • ✅ Supports semantic versioning ranges
  • ✅ Automatically uses latest stable version if not specified
  • ✅ Colorful and informative terminal output
  • ✅ Support for different package specification formats (e.g., @scope/package, package@version)

Development

# Clone the repository
git clone https://github.com/tevass/npm-compatible.git
cd npm-compatible

# Install dependencies
pnpm install

# Build for production
pnpm build

# Create a symlink to run CLI locally
pnpm link . -g

After linking, you can run the CLI locally with the npm-compatible command.