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

@sboudrias/package

v1.0.2

Published

Package metadata tools for JavaScript packages and monorepos.

Readme

@sboudrias/package

Package metadata tools for JavaScript packages and monorepos.

Installation

npm install @sboudrias/package --save-dev
yarn add @sboudrias/package --dev
pnpm add @sboudrias/package --save-dev
bun add @sboudrias/package --dev

Usage

package lint

package lint validates public workspace packages and fixes safe package metadata issues in place.

package lint --check

package lint --check runs the same validation without writing files. It exits non-zero when any package needs a fix or has a manual conflict.

Lint Rules

Valid Peer Dependencies

Runtime dependencies can declare their own peer dependencies. package lint makes those peer requirements visible on the package that uses the runtime dependency.

It adds missing peers to peerDependencies and copies matching peerDependenciesMeta entries so optional peers stay optional.

Matching engines

Packages should only advertise Node.js support that their runtime dependencies can also support.

package lint sets missing, invalid, or out-of-root-range engines.node values to the root package engines.node range. It fails when a runtime dependency supports a narrower Node.js range than the package.

That failure is intentional. Bumping a dependency can raise the minimum supported Node.js version and break dependants that still install the package under the previous engines.node range. In that case, manually narrow the package engine range or choose a compatible dependency version.

Ensure package.json is exposed

Packages should expose their manifest for tools that inspect package metadata at runtime.

package lint ensures public packages expose "./package.json": "./package.json" in exports.

Workspace Discovery

The CLI discovers workspaces from package.json workspaces fields and pnpm-workspace.yaml files.

If no workspaces are configured, the root package.json is linted as a single-package project.

Private packages are ignored by default.