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

mindpm2

v1.1.2

Published

A powerful interactive PM2 management CLI for Node.js servers.

Readme

🧠 MindPM2

A powerful interactive PM2 management CLI for Node.js servers.

MindPM2 is an interactive command line tool that makes managing PM2 processes easy. Instead of remembering dozens of pm2 commands, open one beautiful terminal interface to view, start, stop, restart, reload, delete, monitor and diagnose your processes.

MindPM2 is not a replacement for PM2 — it is a friendly management layer on top of it.


Features

  • 🖥️ Interactive terminal dashboard with keyboard navigation
  • ⚡ Direct CLI commands for scripting and automation
  • 📋 Process list, details, search and sorting
  • ▶️ Start, stop, restart, reload, delete, reset and scale
  • 📜 Log viewing, live log streaming and log flushing
  • 💾 pm2 save and pm2 resurrect with clear feedback
  • ⚙️ PM2 startup management (systemd, launchd, Windows)
  • 📁 Ecosystem file support (ecosystem.config.js/.cjs/.json)
  • 📊 Live monitoring: CPU, RAM, disk, uptime, restarts, PID
  • 🖥️ Server information (OS, kernel, Node, NPM, PM2, CPU, disk)
  • 🩺 doctor diagnostics with suggested fixes
  • 🔐 Sensitive environment variables are masked by default
  • 🎨 Clean, modern UI with tables, boxes, colors and spinners
  • 🌗 Four themes (default, dark, light, mono)
  • 🌍 English and Dutch interface
  • 🌐 Cross-platform: Linux, macOS and Windows
  • 📦 NPM-ready with npx and npm link support

Installation

Global (NPM)

npm install -g mindpm2
mindpm2

Without installing (NPX)

npx mindpm2

MindPM2 requires PM2 to be installed. If it is missing, MindPM2 shows a clear message:

npm install -g pm2

Usage

Interactive mode

mindpm2

Opens the main menu:

┌──────────────────────────────┐
│ MindPM2                      │
│ PM2 Management               │
├──────────────────────────────┤
│ ❯ Dashboard                  │
│   Processes                  │
│   Start Application          │
│   Process Logs               │
│   Monitoring                 │
│   Startup                    │
│   Save / Restore             │
│   Ecosystem                  │
│   Server Information         │
│   Cleanup                    │
│   Settings                   │
│   Doctor                     │
│   Update                     │
│   Exit                       │
└──────────────────────────────┘

Navigate with the arrow keys, select with Enter, and go back with Esc / Ctrl+C.

Direct CLI mode

mindpm2 list
mindpm2 start app.js --name my-app
mindpm2 stop my-app
mindpm2 restart my-app
mindpm2 reload my-app
mindpm2 logs my-app
mindpm2 save
mindpm2 startup

Commands

| Command | Description | | --- | --- | | mindpm2 | Open the interactive interface | | mindpm2 list [target] | List PM2 processes (--sort, --status, --json) | | mindpm2 status [target] | Alias for list | | mindpm2 start [target] | Start a script, process, NPM script or ecosystem file | | mindpm2 stop <target> | Stop a process (use all for every process) | | mindpm2 restart <target> | Restart a process (use all for every process) | | mindpm2 reload <target> | Zero-downtime reload (use all for every process) | | mindpm2 delete <target> | Delete a process (use all for every process) | | mindpm2 reset <target> | Reset restart/uptime counters (use all for every process) | | mindpm2 scale <target> <n> | Scale a process to n instances | | mindpm2 logs [target] | Show logs (--live, --err, --out, --lines, --clear, --files) | | mindpm2 save | Save the PM2 process list | | mindpm2 resurrect | Restore the saved process list | | mindpm2 startup | Manage startup (--status, --disable) | | mindpm2 doctor | Diagnose the environment | | mindpm2 monitor | Live monitor (--once, --interval) | | mindpm2 info | Server information | | mindpm2 details <target> | Detailed process info (--reveal, --json) | | mindpm2 ecosystem [action] [file] | Manage ecosystem files | | mindpm2 cleanup | Remove stopped/errored processes | | mindpm2 config [action] | Manage MindPM2 configuration | | mindpm2 update | Check for updates | | mindpm2 version | Show version information |

Global options

--debug     Enable debug mode
--json      Output JSON
--yes       Skip confirmations
-V, --version
-h, --help

Examples

# Start with options
mindpm2 start ./index.js --name MindAPI -i 2 --cluster --max-memory 500M

# JSON output for scripting
mindpm2 list --json
mindpm2 info --json

# Non-interactive stop
mindpm2 stop MindAPI --yes

# Live logs
mindpm2 logs MindAPI --live

Exit codes

| Code | Meaning | | --- | --- | | 0 | Success | | 1 | General error | | 2 | Invalid command | | 3 | PM2 unavailable | | 4 | Permission error | | 5 | Process not found |


Configuration

MindPM2 stores its configuration in ~/.mindpm2/config.json:

{
  "theme": "default",
  "language": "auto",
  "autoRefresh": true,
  "refreshInterval": 3000,
  "showLogo": true,
  "confirmDangerousActions": true,
  "maskEnvironmentVariables": true,
  "monitorInterval": 2000,
  "logLines": 50,
  "trustPlatform": true
}

Configuration is optional — MindPM2 always falls back to sensible defaults.

mindpm2 config show
mindpm2 config get refreshInterval
mindpm2 config set refreshInterval 5000
mindpm2 config reset
mindpm2 config edit

Themes

MindPM2 ships with four themes: default, dark, light and mono.

mindpm2 config set theme mono

Language

The interface is available in English and Dutch. language accepts auto, en or nl. auto follows your system locale (or MINDPM2_LANG).

mindpm2 config set language nl
MINDPM2_LANG=nl mindpm2

Logging

MindPM2 writes its own logs to ~/.mindpm2/logs/:

~/.mindpm2/logs/
├── mindpm2.log
└── errors.log

Logs are rotated automatically and never contain sensitive values.


Security

  • No passwords or secrets are ever stored.
  • Sensitive environment variables (*PASSWORD*, *TOKEN*, *API_KEY*, ...) are masked by default and only revealed on explicit request.
  • Commands are executed with execFile/spawn without a shell, preventing command injection.
  • Process names, IDs, memory values and instances are validated before use.
  • Dangerous actions (delete, reset, disable startup) always ask for confirmation.
  • Sudo/root commands generated by pm2 startup are never executed automatically — MindPM2 prints them for you to run yourself.

Development

git clone <repository>
cd MindPM2
npm install
npm link        # makes the `mindpm2` command available

Run the tests:

npm test
npm run test:unit
npm run test:integration
npm run test:cli

Unlink:

npm unlink -g mindpm2

Debugging

mindpm2 --debug
DEBUG=mindpm2 mindpm2

Project structure

src/
├── index.js            # CLI entry point (bin)
├── cli/                # commands, interactive UI, menus, prompts
├── pm2/                # PM2 abstraction (processes, logs, startup, ecosystem)
├── system/             # cpu, memory, disk, os, server info + platform modules
├── config/             # configuration manager and defaults
├── security/           # validator, sanitizer, permissions
├── ui/                 # logo, colors, tables, boxes, spinner
└── utils/              # errors, platform, version, paths, logger, debug
tests/
├── unit/
├── integration/
└── cli/
assets/
└── logo.txt

License

MIT © MindDevelopment