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

@lewishowles/pkg-checks

v0.2.3

Published

Validate package exports, size budgets, runtime dependencies, type declarations, and test coverage.

Readme

pkg-checks

Checks a JavaScript package for common release problems: incorrect package.json exports, runtime dependencies that should be dev dependencies, size budgets, missing type declarations, and missing test coverage.

Requirements

  • Bun or Node

Getting started

Published as @lewishowles/pkg-checks:

npm install --save-dev @lewishowles/pkg-checks

Usage

pkg-checks exports ./packages/helpers
pkg-checks runtime-deps ./packages/helpers --config ./quality.config.json
pkg-checks size ./packages/helpers --config ./quality.config.json
pkg-checks type-declarations ./packages/helpers
pkg-checks test-coverage ./packages/helpers
  • exports <package-path>: checks category barrels and package.json exports
  • runtime-deps <package-path>: checks the configured runtime dependency policy
  • size <package-path>: checks the configured package size budgets
  • type-declarations <package-path>: checks that exports have matching type declarations
  • test-coverage <package-path>: checks that exports have colocated test files

Configuration

Each check reads its own top-level key from <package-path>/quality.config.json by default, or from the path passed to --config. You only need the keys for the checks you actually run:

{
	"exportsPolicy": {
		"internalOnly": ["lib/object/path-traversal.js"],
		"fileOnlyEntrypoints": ["./resolver"]
	},
	"sizeBudgets": {
		"perFile": { "globs": ["dist/*.js"], "maxBytes": 12288 },
		"total": [{ "name": "dist total", "globs": ["dist/**"], "maxBytes": 122880 }]
	},
	"runtimeDependencyPolicy": {
		"allowed": ["dayjs"]
	}
}
  • exportsPolicy.internalOnly: helper files that exist in the package but aren't part of its public export barrel, so the exports check doesn't flag them as missing
  • exportsPolicy.fileOnlyEntrypoints: entrypoints (e.g. a CSS file or a resolver) that only need to exist as a file, skipping the barrel/type-declaration checks that apply to regular exports
  • sizeBudgets.perFile: a maxBytes limit applied to every file matching globs
  • sizeBudgets.total: one or more named groups, each with its own maxBytes limit across all its matching globs
  • runtimeDependencyPolicy.allowed: dependency names allowed in dependencies; anything else there gets flagged (move it to devDependencies, or add it here)

Other packages in this workspace