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

node-doctor

v1.1.0

Published

🔍 Interactive CLI to scan, diagnose, and fix Node.js environment issues across 20+ version managers

Readme

Node Doctor

Node.js License MIT Platform

Interactive CLI to diagnose and fix Node.js environment issues.

Detects 20+ version managers, identifies PATH conflicts, cleans up zombie processes, and manages disk usage.

Quick Start

npx node-doctor

Commands

| Command | Aliases | Description | |:--------|:--------|:------------| | (none) | | Interactive menu with all features | | info | doctor | Full environment diagnosis | | check | ci | CI/CD health checks (exit 1 on failure) | | perf | performance | CPU, memory, event loop analysis | | list | ls | List all Node.js versions | | project | scan | Project health (engines, lockfile, version files) | | globals | g | Global packages (npm/yarn/pnpm) | | disk | du | Disk usage by version manager | | cleanup | clean | Delete node_modules and unused Node versions | | heal | | Find Node.js processes using ports | | kill-port | kp | Kill process on specific port |

Tip: Most commands support --json for machine-readable output.

Examples

# Interactive mode
npx node-doctor

# Environment diagnosis
npx node-doctor info

# CI/CD pipeline check
npx node-doctor check --json

# Kill process on port 3000
npx node-doctor kp 3000

# Performance metrics
npx node-doctor perf --snapshot

# Cleanup wizard
npx node-doctor cleanup

Health Checks

Runs 13 health checks with pass, warn, or fail status:

| Category | Checks | |:---------|:-------| | PATH | Node in PATH, PATH shadowing, multiple managers | | Registry | npm registry status, latency | | Security | EOL status, known vulnerabilities | | Environment | NODE_OPTIONS, port conflicts, npm prefix | | Project | Version file conflicts, engines compliance, stale node_modules | | Build | node-gyp readiness (Python, build tools) | | IDE | VSCode integration issues |

Supported Version Managers

nvm, nvm-windows, fnm, Volta, asdf, mise, n, nodenv, nvs, Homebrew, vfox, proto, nodebrew, nodist, nvmd, gnvm, snm, tnvm, ndenv, System

CI/CD Integration

# GitHub Actions
- name: Check Node.js Environment
  run: npx node-doctor check --json

Exit codes: 0 = pass, 1 = fail

JSON Output

npx node-doctor info --json

Returns: timestamp, overallStatus, exitCode, checks[], summary, data

Performance Profiling

# 3-second sampling (default)
npx node-doctor perf

# Instant snapshot
npx node-doctor perf --snapshot

# Custom duration
npx node-doctor perf --duration 10000

| Metric | Warning | Critical | |:-------|:--------|:---------| | CPU | > 70% | > 90% | | Memory (heap) | > 70% | > 85% | | Event Loop Delay | > 50ms | > 100ms |

License

MIT © bgauryy