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

npm-doctor-live

v1.0.1

Published

A CLI tool that monitors npm install processes in real-time and provides intelligent diagnostics when installations hang or fail

Readme

npm-doctor-live 🔍

A Node.js CLI tool that monitors npm install processes in real-time and provides intelligent diagnostics when installations hang or fail.

🎯 Motivation

Developers frequently experience npm install hanging with zero visibility into what's happening. npm-doctor-live solves that problem by wrapping npm install, monitoring it in real-time, and showing you exactly which package is being processed at any moment.

✨ Features

  • Real-time Monitoring: Track npm install progress with live package name updates
  • Live Spinner: Beautiful ora spinner showing current package, status icon, and elapsed time
  • Timeout Detection: Automatically detect when installation is stuck (configurable, default: 30s)
  • Smart Diagnostics: Identify common issues and suggest fixes:
    • ✅ node-gyp build failures → suggests build tools
    • ✅ Large binary downloads (puppeteer/playwright) → notes this is normal
    • ✅ Network issues → suggests cache clean and registry check
  • Color-coded Status: Cyan (downloading), Yellow (resolving), Green (complete), Red (stuck)
  • Verbose Mode: Detailed npm output logging for debugging
  • Graceful Cleanup: Proper Ctrl+C handling and process cleanup

🚀 Installation

npx npm-doctor-live install [package-name]

📖 Usage

Install all dependencies with monitoring

npx npm-doctor-live install

Install a specific package

npx npm-doctor-live install express

Custom timeout (default: 30 seconds)

npx npm-doctor-live install --timeout 60

Verbose mode for debugging

npx npm-doctor-live install --verbose

Combined options

npx npm-doctor-live install lodash --timeout 60 --verbose

New in Phase 3: Enhanced Options

JSON output for scripting

npx npm-doctor-live install express --json

Debug mode with detailed logging

npx npm-doctor-live install --debug

Save log to custom file

npx npm-doctor-live install --save-log ./install.log

Silent mode (minimal output)

npx npm-doctor-live install --silent

Skip installation summary

npx npm-doctor-live install --no-summary

🛠️ Development

Setup

# Clone the repository
git clone https://github.com/Aniketxmishra/npm-doctor.git
cd npm-doctor-live

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run in development mode
npm run dev -- install express

Project Structure

npm-doctor-live/
├── src/
│   ├── index.ts          # CLI entry point
│   ├── types.ts          # TypeScript type definitions
│   ├── monitor.ts        # (Phase 2) Process monitoring
│   ├── parser.ts         # (Phase 2) Output parsing
│   ├── ui.ts             # (Phase 3) UI components
│   └── diagnostics.ts    # (Phase 4) Smart diagnostics
├── dist/                 # Compiled JavaScript
├── package.json
└── tsconfig.json

🔬 Technical Details

  • TypeScript: Full type safety
  • Cross-platform: Windows, macOS, Linux
  • npm Support: Versions 7, 8, 9, 10
  • Dependencies:
    • chalk - Terminal colors
    • cli-progress - Progress bars
    • ora - Spinners
    • commander - CLI argument parsing

⚙️ Configuration File

Create .npm-doctor-liverc.json in your project root or home directory:

{
  "timeout": 60,
  "showSummary": true,
  "debug": false,
  "silent": false,
  "suggestions": {
    "showNodeGyp": true,
    "showNetworkFixes": true
  }
}

Configuration priority: CLI arguments > config file > defaults

📋 Development Roadmap

  • [x] Phase 1: Project structure and TypeScript setup
  • [x] Phase 2: Process monitoring and output parsing with timeout detection
  • [x] Phase 3: Production features (summaries, logging, config files)
    • [x] Installation summary with metrics
    • [x] Enhanced CLI options (--debug, --json, --silent, --save-log, --no-summary)
    • [x] Configuration file support
    • [x] Auto-save logs on failure
  • [ ] Phase 4: Additional diagnostics (peer dependencies, cache issues)
  • [ ] Phase 5: Unit tests and npm package publication

📄 License

MIT License - feel free to use this tool in your projects!

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


Built with ❤️ to make npm install debugging easier