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

lockdeps

v0.1.0

Published

Analyze package-lock.json: find duplicate packages, count transitive deps, and estimate dependency weight. Zero dependencies.

Readme

lockdeps

Find duplicate packages, count transitive deps, and audit licenses — straight from your package-lock.json. Zero dependencies.

npm version License: MIT

npm ls shows you the tree. npm audit shows you vulnerabilities. lockdeps shows you the atmosphere: what's duplicated, what's heavy, and what licenses you're shipping.

📦 lockdeps — Dependency Health Report
─────────────────────────────────────

Overview
  Total packages (incl. transitive): 68
  Direct dependencies:              3
  Dev dependencies:                 0
  Transitive dependencies:          65

⚠  Duplicates Found (1)
  content-type — 2 copies (1.0.5, 2.0.0)

Heaviest Dependencies (by transitive count)
  express           64 ██████████████████████████████
  chalk              0
  lodash             0

Licenses
  MIT                            63
  ISC                            4
  BSD-3-Clause                   1

Install

npm install -g lockdeps

Or run it once without installing:

npx lockdeps

Usage

lockdeps                          # analyze ./package-lock.json
lockdeps ./apps/api/package-lock.json
lockdeps --json                   # machine-readable JSON output
lockdeps --no-color               # pipe-friendly, no ANSI
lockdeps --duplicates             # show only duplicate packages

Options

| Flag | Description | |------|-------------| | --json | Output as JSON (great for CI/pipelines) | | --no-color | Disable ANSI colors | | --duplicates | Show only packages installed at multiple versions | | --version, -v | Show version | | --help, -h | Show help |

Why?

Three things npm doesn't tell you at a glance:

  1. Duplicates — When two of your dependencies require different versions of the same package, npm installs both. This silently bloats node_modules and your bundle. lockdeps finds them.

  2. Weight — Which direct dependency is pulling in 60 transitive packages? lockdeps traces the graph and shows you the heaviest offenders, so you know what to consider replacing.

  3. Licenses — What are you actually shipping? lockdeps tallies every license across all transitive dependencies, flagging unknowns.

CI Integration

# .github/workflows/deps.yml
- run: npx lockdeps --json > deps-report.json
- run: npx lockdeps --duplicates # prints duplicates, doesn't fail

Supports

  • package-lock.json v3 (npm 7+)
  • package-lock.json v2 (npm 7+)
  • package-lock.json v1 (npm 5–6)
  • npm-shrinkwrap.json

License

MIT