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

resolve-pkglock

v0.0.2

Published

A nodejs hook to resolve packages with pnpm-lock.yaml instead of symlinks

Readme

resolve-pkglock

Resolve your PNPM symlinks without breaking builds — use your pnpm-lock.yaml as the single source of truth for module resolution.

resolve-pkglock hooks into Node.js’ modern module customization hooks to resolve your workspace dependencies directly from the PNPM store instead of through symlinks. This is especially useful in environments where symlinks cause issues (e.g. Docker, certain CI/CD setups, or read-only deployments).


Why

  • PNPM uses symlinks in workspaces to deduplicate modules.
  • Some deployment environments don’t preserve them.
  • Luckily, everything needed for resolution is already in your pnpm-lock.yaml.

By using resolve-pkglock, you can resolve dependencies directly from the PNPM store based on your lockfile — no symlinks required.


Requirements

  • Node.js v22.15.0 or newer (supports module hooks).
  • A correctly maintained pnpm-lock.yaml in your workspace root.

Usage

Load the module early in your entrypoint before other imports:

// eslint-disable-next-line antfu/no-import-dist, antfu/no-import-node-modules-by-path
import resolvePkgLock from './node_modules/.pnpm/resolve-pkglock.../node_modules/resolve-pkglock/dist/index.js';

// Initialize with the path to your workspace root (where pnpm-lock.yaml lives)
await resolvePkgLock(import.meta.dirname);

// Then import your local packages normally
import('your-local-package');

⚠️ Make sure you’re referencing the non-symlinked folder in the PNPM store when importing resolve-pkglock.


Optional: Disable Symlinks Completely

With resolve-pkglock, you can set this safely in your pnpm-workspace.yaml:

symlink: false

This fully avoids the creation of symlinks while preserving the benefits of PNPM’s deterministic lockfile.


License

MIT © ameinhardt