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

@rnx-kit/yarn-plugin-dynamic-extensions

v0.1.1

Published

EXPERIMENTAL - USE WITH CAUTION - yarn-plugin-dynamic-extensions

Readme

@rnx-kit/yarn-plugin-dynamic-extensions

Build npm version

🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧

THIS TOOL IS EXPERIMENTAL — USE WITH CAUTION

🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧

This is a Yarn plugin that lets you extend the package definitions of your dependencies, similar to packageExtensions, but dynamically.

Motivation

Making sure a large number of packages are using the same version of dependencies, like eslint or typescript, can involve a lot of manual work. It is easy to make mistakes, especially if these packages span across multiple repositories.

This plugin allows you to manage all dependencies across multiple repositories from a central location.

Installation

yarn plugin import https://raw.githubusercontent.com/microsoft/rnx-kit/main/incubator/yarn-plugin-dynamic-extensions/index.js

Usage

Create a module that will return package extensions. In the following example, we create a module that adds typescript to all packages:

/**
 * @param {Object} workspace           The package currently being processed
 * @param {string} workspace.cwd       Path of the current package
 * @param {Object} workspace.manifest  The content of `package.json`
 * @returns {{
 *   dependencies?: Record<string, string>;
 *   peerDependencies?: Record<string, string>;
 *   peerDependenciesMeta?: Record<string, { optional?: boolean }>;
 * }}
 */
export default function ({ cwd, manifest }) {
  return {
    dependencies: {
      typescript: "^5.0.0",
    },
  };
}

The function will receive context on the currently processed package, and is expected to return a map similar to the one for packageExtensions.

For a more complete example, take a look at how we use it in rnx-kit.

Add the configuration in your .yarnrc.yml:

dynamicPackageExtensions: ./my-dependencies.config.js

If you run yarn install now, Yarn will install typescript in all your packages. To verify, try running tsc:

% yarn tsc --version
Version 5.7.3

Other Yarn commands will also work as if you had installed dependencies explicitly as you normally would. For example, yarn why:

% yarn why typescript
└─ @rnx-kit/yarn-plugin-dynamic-extensions@workspace:incubator/yarn-plugin-dynamic-extensions
   └─ typescript@npm:5.7.3 (via npm:^5.0.0)