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-orbit

v1.11.4

Published

High-performance PM2 monitoring dashboard — event-driven, 1000+ processes, < 150KB

Readme

PM2 Orbit

High-performance, real-time PM2 monitoring dashboard. Event-driven architecture supporting 100+ processes with zero configuration.

Why PM2 Orbit?

Most PM2 dashboards poll the daemon every few hundred milliseconds, wasting resources and introducing latency. PM2 Orbit subscribes directly to PM2's event bus — updates arrive the instant they happen, with zero polling overhead.

npx pm2-orbit

That's it. No config files, no databases, no Docker required. Opens in your browser and starts monitoring.


Features

Process Monitoring

  • Real-time process status via WebSocket (online, stopped, errored, launching)
  • Virtualized table handling 1000+ processes at 60fps
  • Per-process CPU/memory sparklines with 120-point history
  • Cluster mode support with per-worker breakdown
  • One-click restart, stop, start, reload, delete for any process
  • Bulk actions: Restart All, Stop All, Start All, Delete All

Log Viewer

  • Live SSE log tailing from PM2's event bus
  • ANSI escape code stripping for clean display
  • Per-process or merged view with color coding
  • Regex search with highlight
  • Pause/resume without disconnecting
  • Copy individual lines or download full buffer

System Metrics

  • Host CPU, memory, load average, network I/O, disk I/O
  • Auto-collecting via systeminformation with smart caching
  • Historical charts with 1h / 6h / 24h time ranges

Alert Engine

  • Rule-based alerts: CPU > N%, memory > NMB, restarts > N, process offline
  • Multi-channel notifications: Slack, Discord, webhook, email, browser push
  • Per-rule channel configuration with enable/disable toggles
  • Cooldown to prevent alert fatigue
  • Alert history with severity levels

Developer Experience

  • Keyboard shortcuts: End scroll to bottom, Ctrl+K command palette
  • Command palette for fuzzy process search and quick actions
  • Dark / Light / System theme with smooth transitions
  • Export/import settings as JSON

Install

# One command — installs pm2 automatically if missing
npm install -g pm2-orbit
pm2-orbit

Or run without installing:

npx pm2-orbit

CLI Options

pm2-orbit [options]

Options:
  -p, --port <port>     Port to listen on (default: 9823)
  -H, --host <host>     Host to bind to (default: 127.0.0.1)
  -t, --theme <theme>   Theme: dark | light | system
  -n, --no-open         Don't open browser on start
  -h, --help            Show help
  -v, --version         Show version

Examples:
  pm2-orbit                      # Start on default port
  pm2-orbit -p 3000              # Start on port 3000
  pm2-orbit --host 0.0.0.0       # Allow remote access
  pm2-orbit --no-open            # Don't open browser

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | PM2_ORBIT_PORT | Server port | 9823 | | PM2_ORBIT_HOST | Host to bind to | 127.0.0.1 | | PM2_ORBIT_TOKEN | Bearer auth token (required for non-localhost) | — | | PM2_ORBIT_LOG_BUFFER | Max log lines per process | 2000 | | LOG_LEVEL | Logger level: debug, info, warn, error | info | | CORS_ORIGINS | Comma-separated allowed origins | http://127.0.0.1:9823,http://localhost:9823 |

Notification Channels

Notifications can be configured via environment variables or the Settings UI (accessible at /settings in the browser). The Settings UI saves to ~/.pm2-orbit/settings.json and applies values at startup.

| Variable | Description | |----------|-------------| | SLACK_WEBHOOK_URL | Slack incoming webhook URL | | DISCORD_WEBHOOK_URL | Discord webhook URL | | WEBHOOK_URL | Generic POST webhook URL | | SMTP_HOST | SMTP server hostname | | SMTP_PORT | SMTP port (default: 587) | | SMTP_USER | SMTP username | | SMTP_PASS | SMTP password | | SMTP_FROM | Sender email address | | SMTP_TO | Recipient email address | | NOTIFY_*_ENABLED | Set to 0 to disable a channel (e.g., NOTIFY_SLACK_ENABLED=0) |


Docker

# Build
docker build -t pm2-orbit .

# Run
docker run -p 9823:9823 pm2-orbit

For process monitoring in Docker, you'll need to mount the PM2 socket or use a different approach (e.g., running PM2 inside the container).


Development

git clone https://github.com/ihssmaheel-dev/pm2-orbit.git
cd pm2-orbit
npm install
npm run dev

Starts Vite dev server on port 5151 with API proxy to the backend on port 9823.

Scripts

| Command | Description | |---------|-------------| | npm run dev | Start dev mode (UI + server with hot reload) | | npm run build | Build for production | | npm start | Start production server | | npm run lint | Type-check backend | | npm run typecheck | Type-check both backend and frontend | | npm test | Run tests |


Architecture

PM2 Daemon
    │
    │ pm2.launchBus() — event-driven, zero polling
    ▼
PM2 Bridge
    │
    ├──► Event Pipeline (batched, debounced)
    │
    ├──► Circular Buffer (120 points × typed arrays)
    │
    ├──► Alert Engine (rule evaluation, per-process indexed)
    │
    ├──► SQLite Store (optional, requires `npm i better-sqlite3`, 24h retention)
    │
    └──► WebSocket Broadcaster
              │
              ▼
         React Frontend
              │
              ├──► Zustand Store (single source of truth)
              ├──► Virtual Table (1000+ rows)
              ├──► Log Viewer (SSE + virtual scroll)
              └──► Charts (uPlot, canvas-rendered)

Tech Stack

| Layer | Technology | |-------|------------| | Runtime | Node.js 18+ | | HTTP | Fastify 5 | | WebSocket | ws | | PM2 Integration | pm2.launchBus() event subscription | | Metrics | systeminformation | | Persistence | better-sqlite3 (optional) | | Frontend | React 19, Tailwind CSS, Zustand | | Virtualization | TanStack Virtual | | Charts | uPlot | | Build | esbuild (backend), Vite (frontend) |


Security

  • Bearer token authentication via PM2_ORBIT_TOKEN (required for all API routes when set)
  • CORS locked to localhost by default; explicit CORS_ORIGINS required for remote access
  • Rate limiting: 100 requests/minute per IP
  • WebSocket connection limiting: 5 per IP
  • Helmet security headers (XSS, CSP, HSTS)
  • Environment variables masked in UI by default
  • Process name sanitization in file paths
  • Request ID tracking for audit trails
  • Constant-time token comparison (timing-safe)
  • SSRF protection for webhook testing (DNS resolution + private IP blocking)

License

MIT