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

@lowdep/lockcheck

v1.0.0

Published

Validate npm/yarn/pnpm lockfile is in sync with package.json — zero dependencies, CI and git-hook ready

Readme

lockcheck

Zero dependencies Node License: MIT Platform

Validates that your lockfile is in sync with package.json. Works with npm, yarn, and pnpm. Zero dependencies.

Catches the silent bug where someone edits package.json (adds/removes a dep) without running install, then pushes code that breaks for everyone else.


Install

npm install -g lockcheck

Or without installing:

npx lockcheck

Usage

# Check current directory
lockcheck

# Check a specific project
lockcheck ./backend

# CI / git-hook mode — exit 1 on any issue
lockcheck --strict

# Check multiple projects
lockcheck ./frontend ./backend ./shared

Example Output

In sync:

lockcheck  my-app
  npm · package-lock.json · 42 declared deps

  ✓ Lockfile is in sync. All 42 declared deps found.

Out of sync:

lockcheck  my-app
  npm · package-lock.json · 45 declared deps

  ✘ 3 package(s) in package.json not found in lockfile:
      express
      cors
      helmet

  Run `npm install` to update the lockfile.

Stale lockfile:

  ⚠  package-lock.json is older than package.json — you may need to run install

As a Git Hook

Add to .git/hooks/pre-push (or use with husky):

#!/bin/sh
npx lockcheck --strict

Make it executable:

chmod +x .git/hooks/pre-push

CI Integration

# .github/workflows/lockcheck.yml
- name: Validate lockfile
  run: npx lockcheck --strict

Supported Package Managers

| Manager | Lockfile | |---|---| | npm | package-lock.json (v1, v2, v3) | | yarn | yarn.lock (classic & berry) | | pnpm | pnpm-lock.yaml |


Checks Performed

  1. Missing packages — deps declared in package.json not found in the lockfile
  2. Stale lockfilepackage.json was modified more recently than the lockfile (warn by default, error with --strict)

License

MIT


Keywords

lockfile · package-lock.json · yarn.lock · pnpm-lock · dependency check · lockfile sync · npm ci · stale lockfile · zero dependencies · cli


Built to solve, shared to help — Rushabh Shah 🛠️✨

One of 40+ zero-dependency developer CLI tools — no node_modules, ever.