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

mern-doctor

v1.0.1

Published

A CLI to diagnose and fix common MERN stack errors.

Readme

mern-doctor

npm version License: ISC

The zero-config, interactive diagnostic tool that auto-fixes common MERN stack and Node.js backend errors.

We have all been there: You run npm run dev, your app crashes, and you are staring at a massive wall of red text because a ghost process is holding your port hostage.

Stop manually running netstat, lsof, or restarting your computer. Let mern-doctor diagnose the problem, find the rogue process, and securely assassinate it in seconds.

Quick Start (Zero Installation)

You don't even need to install it to use it. Just run this in your terminal inside your project folder:

npx mern-doctor scan

Want to use it across all your projects? Install it globally on your machine:

npm install -g mern-doctor

Want to add it to your current project? Save it as a dev dependency so your whole team can use it:

npm install -D mern-doctor

Why mern-doctor? (Features v1.0.0)

Zero-Config Auto-Detect

It dynamically reads your local .env file to find exactly which PORT your server is trying to use. No need to pass arguments.

The Port Assassin

Automatically detects background ghost processes, extracts their PID, and safely terminates them.

Interactive DX

It doesn't blindly delete things. It explains the issue and politely asks: "Do you want me to kill process 12345? (Y/n)"

True Cross-Platform

Works flawlessly under the hood whether you are on Windows (using netstat/taskkill), macOS, or Linux (using lsof/kill -9).

Errors We Automatically Fix

If you are running into any of these common Node.js errors, mern-doctor is your instant solution:

  • Error: listen EADDRINUSE: address already in use :::5000
  • Error: listen EADDRINUSE: address already in use 0.0.0.0:3000
  • node port already in use
  • how to kill ghost process nodejs
  • nodemon crash port in use windows mac
  • cannot start server address in use

How It Works Under the Hood

When you type mern-doctor scan, the CLI:

  1. Searches your Current Working Directory (CWD) for a .env file.
  2. Extracts your custom environment variables (like PORT=5000).
  3. Executes native, OS-level shell commands to scan your network interfaces.
  4. Identifies the specific Process ID (PID) blocking your development environment.
  5. Safely terminates the process using native OS kill commands, freeing your environment instantly.

Roadmap (Coming Soon)

We are actively building this into the ultimate MERN debugging toolkit.

  • [x] v1.0.0: The Port Conflict Assassin (EADDRINUSE auto-fix)
  • [ ] v1.1.0: The Dependency Doctor (Scans package.json and auto-installs missing modules)
  • [ ] v1.2.0: MongoDB Connection Checker (Validates URI and Atlas IP whitelists)
  • [ ] v1.3.0: Environment & CORS Validator

Contributing

Found a bug or want to add a new "doctor" module? Contributions, issues, and feature requests are highly welcome!

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

Built with care for the developer community by Kavindu