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

monoutil

v0.9.0

Published

General utils for monorepos and dependency management

Readme

monoutil

CLI utilities for monorepo dependency management.

npx monoutil <command> [options]

Commands

why <package>

Inspect a package across the entire monorepo. Shows every installed version, which project packages depend on it, and which external (node_modules) packages depend on it — split by prod and dev dependency type.

monoutil why react
monoutil why zod

Output includes:

  • installed_versions — all resolved locations where the package is installed, with path and version
  • project_dependants.prod / .dev — your own monorepo packages that list it as a dependency, grouped by the version string they specify
  • external_dependants.prod / .dev — external packages (inside node_modules) that depend on it

Useful for diagnosing version conflicts, duplicate installs, or understanding the blast radius before upgrading a package.


ts_remove_emitted

Finds and removes TypeScript-emitted files (.js, .mjs, .d.ts) from source directories where a matching .ts / .tsx source file exists.

monoutil ts_remove_emitted

Behaviour:

  1. Discovers all monorepo project src directories
  2. For each directory, finds emitted files that have a corresponding source file (same base path, different extension)
  3. Prints the matches and prompts for confirmation before deleting
  4. Skips directories with no emitted files

Use this after switching a project from tsc-emitting-to-src to a dist-only build, to clean up leftover .js / .d.ts files that confuse module resolution.


uniform_update

Updates dependency versions uniformly across every package.json in the monorepo. Supports three modes:

Quick update via flags

Set a single package to a specific version across all packages:

monoutil uniform_update --module zod --version 4.0.0

Config file

Apply a batch of updates from a JSON config file:

monoutil uniform_update
# reads ./monoutil/uniform_update.config.json by default

monoutil uniform_update --config path/to/custom.config.json

Config file format

{
  "dependencyTypes": {
    "include": ["production", "dev"],
    "exclude": []
  },
  "targetVersions": [
    {
      "version": "4.0.0",
      "dependencies": ["zod"],
      "dependencyTypes": { "include": ["production"] }
    }
  ],
  "targetDependencies": [
    {
      "dependencies": {
        "react": "^19.0.0",
        "react-dom": "^19.0.0"
      }
    }
  ],
  "changeDependencyNames": [
    {
      "changes": {
        "old-package-name": "new-package-name"
      }
    }
  ]
}

Config fields:

| Field | Description | |---|---| | targetVersions | Set a single version string for a list of dependencies | | targetDependencies | Set explicit per-package versions as a { name: version } map | | changeDependencyNames | Rename dependency entries (updates the key, preserves the version) | | dependencyTypes | Global default filter applied to all operations |

Each entry also accepts its own dependencyTypes override which merges with (and takes precedence over) the global one.

dependencyTypes values:

Valid values for include / exclude arrays:

  • "production"dependencies
  • "dev"devDependencies
  • "peer"peerDependencies
  • "resolution"resolutions
  • "override"overrides

When no include is specified, all types are targeted. exclude removes specific types from that set.

After writing each package.json, the file is auto-formatted with Biome.