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

pm2-boss

v0.1.0

Published

Beautiful web dashboard for PM2 process management

Downloads

99

Readme

pm2-boss

A beautiful, free web dashboard for PM2 process management. Built for ourselves, shared for everyone. Monitor, control, and organize your Node.js processes from a clean, real-time UI.

If you find pm2-boss useful, please consider giving it a star on GitHub — it helps others discover the project.

Features

  • Real-time monitoring — CPU, memory, uptime, and restart counts updated via WebSocket
  • Process control — Start, stop, restart, reload, delete processes from the browser
  • Log viewer — Stream stdout/stderr logs with ANSI color support and search
  • Process groups — Organize processes into collapsible groups with aggregate stats
  • Memory alerts — Configurable memory limits with breach notifications and event history
  • Command palette — Quick keyboard navigation (Cmd+K / Ctrl+K)
  • Dark/light theme — System-aware with manual toggle
  • Telegram integration — Bot commands and alerts for remote monitoring
  • Process configuration — Edit env vars, memory limits, cluster instances from the UI
  • Git info — Shows branch, revision, and repo URL for deployed processes
  • PM2 actions — Dump, resurrect, and flush logs from the dashboard
  • Authentication — Token-based and username/password auth

Quick Start

npx pm2-boss

This starts the dashboard on http://localhost:9615 with no authentication (suitable for local use).

Installation

npm install -g pm2-boss

Requires PM2 to be installed and running:

npm install -g pm2
pm2 start your-app.js
pm2-boss

Usage

pm2-boss [options]

Options:
  --port <number>            Port to run on (default: 9615)
  --no-open                  Don't open browser automatically
  --token <string>           API token for authentication (repeatable)
  --user <user:pass>         Login credentials (repeatable)
  --tg-bot-token <string>    Telegram Bot token (from @BotFather)
  --tg-chat-id <string>      Chat ID for alerts (repeatable)
  -h, --help                 Show help

Examples

# Local development — no auth
pm2-boss

# Production — with authentication
pm2-boss --user admin:strongpassword --token myapitoken

# Custom port
pm2-boss --port 3000 --user admin:secret

# With Telegram alerts
pm2-boss --user admin:secret --tg-bot-token "123456:ABC-DEF" --tg-chat-id "987654"

Authentication

When --user or --token flags are provided, all API endpoints and the WebSocket connection require authentication. The web UI shows a login page.

  • --user — Username and password for browser login (format: user:password)
  • --token — API token for programmatic access (send as Authorization: Bearer <token> header)

Both flags are repeatable to configure multiple users/tokens.

Without any auth flags, the dashboard is open to anyone who can reach the port. Use authentication for any non-local deployment.

Telegram Bot

When configured with --tg-bot-token and --tg-chat-id, pm2-boss starts a Telegram bot that:

  • Sends alerts when processes crash or restart
  • Sends memory limit breach notifications
  • Supports commands: /status, /restart <name>, /logs <name>
  • Provides a Mini App button for full dashboard access

Settings

The Settings page (accessible from the gear menu) lets you configure:

  • Default memory limit — Global memory threshold for all processes (default: 4 GB)
  • Per-process overrides are available in the process Config tab

Settings are stored in ~/.pm2-boss/settings.json.

Process Groups

Organize related processes into named groups from the dashboard. Groups show aggregate CPU/memory stats and can be collapsed. Group configuration is stored in ~/.pm2-boss/groups.json.

Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | Cmd/Ctrl + K | Command palette | | ? | Show shortcut help |

Development

git clone https://github.com/n1ghtcoder/pm2-boss.git
cd pm2-boss
npm install
npm run dev

This starts the server (with hot reload) and Vite dev server concurrently. The client proxies API requests to the server.

Build

npm run build        # Build server + client
npm run typecheck    # TypeScript check
npm run lint         # Biome linter
npm run lint:fix     # Auto-fix lint issues

Project Structure

src/
├── cli/            # CLI entry point, argument parsing
├── client/         # React frontend (Vite + Tailwind v4)
│   ├── components/ # UI components
│   ├── pages/      # Route pages (dashboard, login, settings, process detail)
│   ├── stores/     # Zustand state management
│   ├── hooks/      # Custom React hooks
│   └── lib/        # Utilities (API client, ANSI parser, etc.)
├── server/         # Hono backend
│   ├── routes/     # API route handlers
│   └── telegram/   # Telegram bot integration
└── shared/         # Shared TypeScript types

Tech Stack

  • Server: Hono on Node.js with WebSocket support
  • Client: React 19, React Router, Zustand, Tailwind CSS v4
  • Build: tsup (server), Vite (client)
  • Linting: Biome
  • Language: TypeScript (strict mode)

Support

If pm2-boss saves you time, a GitHub star is the best way to say thanks and help others find it.

License

MIT