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

@nekobato/gatsby-plugin-pnpm

v1.4.2

Published

Maintained fork of gatsby-plugin-pnpm with pnpm support for modern virtual store layouts

Readme

@nekobato/gatsby-plugin-pnpm

Maintained fork of Js-Brecht/gatsby-plugin-pnpm.

Fork status

This repository is actively maintained by nekobato as a continuation fork. Upstream credits are preserved, and development continues in this fork.

Description

This plugin configures Webpack module and loader resolution for packages installed via pnpm.

When using pnpm, Gatsby builds may fail because pnpm's node_modules structure differs from npm/yarn. This plugin updates Webpack resolution so Gatsby can resolve dependencies correctly.

Compatibility

  • Node.js: >=20
  • Gatsby: >=5
  • Package format: ESM-first

What's updated in this fork

  • Published package name is now @nekobato/gatsby-plugin-pnpm.
  • Repository and issue tracker now point to nekobato/gatsby-plugin-pnpm.
  • Added compatibility for modern pnpm virtual stores by reading node_modules/.modules.yaml and resolving virtualStoreDir automatically (including custom virtual-store-dir values).

Installation

pnpm add -D @nekobato/gatsby-plugin-pnpm

Add it to gatsby-config.js:

// gatsby-config.js
module.exports = {
  plugins: [`@nekobato/gatsby-plugin-pnpm`],
};

Migration from upstream package

Replace the old package:

pnpm remove gatsby-plugin-pnpm
pnpm add -D @nekobato/gatsby-plugin-pnpm

And update your Gatsby config from gatsby-plugin-pnpm to @nekobato/gatsby-plugin-pnpm.

Extended usage

Option: include

Use this option to add extra module resolution targets.

  • Package names:
    • Add package names that Webpack should resolve.
    • If strict: true, included package names must be direct dependencies of your project.
  • Directory paths:
    • Add directories that contain modules or loaders.
    • Relative paths are resolved from process.cwd().
    • Paths must point to directories.

Option: projectPath

  • Default: process.cwd().
  • Use this when your project root differs from the process cwd.
  • Relative paths are resolved from process.cwd().

Option: strict

  • Default: true.
  • true: Resolve using project-scoped pnpm behavior.
  • false: Use Node module resolution and walk up parent directories.

Available options

| Option | Description | | :------------ | :---------------------------------------------------------------------------------------------------------------------------- | | include | Optional list of package names and/or directory paths that should be available to Webpack resolution. | | projectPath | Optional path to the project root (directory containing package.json). Used for resolving package and node_modules paths. | | strict | Optional boolean, default true. true keeps pnpm-style project scoping. false uses Node's upward directory resolution. |

Example:

// gatsby-config.js
const path = require('path');

module.exports = {
  plugins: [
    {
      resolve: `@nekobato/gatsby-plugin-pnpm`,
      options: {
        projectPath: path.dirname(__dirname),
        include: [`my-awesome-package`, `path/to/my/private/webpack/loaders`],
        strict: true,
      },
    },
  ],
};

Issues and contributing

Please open issues at: https://github.com/nekobato/gatsby-plugin-pnpm/issues

License

MIT. This fork preserves the original copyright notice and license terms.