# PM2: 6.7 out of 10

Reasonable, with limits. 2nd of 10 in [Script runners and process managers](https://elestia.ai/opensource/script-runners/index.md).

PM2 is a long-running, actively maintained production process manager for Node.js and Bun. It handles clustering, log rotation, startup scripts and, since v7, running .ts files directly. It is still a reasonable choice for keeping apps alive on a VPS or bare server. It is not a dev-loop TypeScript runner, its AGPL-3.0 licence and roughly 83 MB daemon are real costs, and containers or systemd now cover much of its job.

**Best for:** Teams that deploy Node.js or Bun apps straight onto Linux servers or VPSes and want clustering, auto-restart, logs and boot scripts from one CLI.

## Scores

- **Overall: 6.7** (likely 5.7 to 7.7)
  - Claude Opus 5.5 (6.0): PM2 is a maintained and capable production supervisor, and it is a fair pick for apps that run straight on a server. It does not solve the category's main dev-loop job: tsx or nodemon are better for running and reloading TypeScript in development. systemd and container orchestrators now cover keep-alive for many teams. The AGPL licence, daemon overhead and loss of share keep it below a strong pick.
  - GPT-6.2 Sol (7.4): PM2 is a strong pick among these peers when a self-hosted service needs crash recovery, reboot recovery, and managed workers. For running and watching TypeScript during development, tsx is simpler and has stronger adoption momentum. Runtime-dependent TypeScript support, weak repository controls, and slower growth keep PM2 from being the category default.
- **Needed by many: 4.8** (likely 3.7 to 5.9)
  - Claude Opus 5.5 (5.0): PM2 covers the 'keep it running in production' part of the category, not the everyday dev loop that tsx and nodemon serve. It only matters to teams that run Node processes on their own servers, a group shrinking as more teams deploy with containers and serverless. That is still a sizeable group of backend developers.
  - GPT-6.2 Sol (4.6): TypeScript is common, and many developers benefit from running files directly with watch mode. PM2’s main audience is teams that also need to supervise long-lived services on hosts they control. The State of JavaScript survey measures TypeScript use, so the size of that narrower group remains uncertain.
- **Helps a lot: 7.3** (likely 6.3 to 8.3)
  - Claude Opus 5.5 (6.5): PM2 is feature-rich for production supervision: cluster mode, reloads, log rotation, startup scripts, monitoring and, since v7, .ts apps through Node type stripping or Bun. Against that, the daemon costs about 83 MB, cold start and crash recovery are slow, and its watch mode is weak for development. Many fixes in 7.x also show rough edges around environment handling and Windows.
  - GPT-6.2 Sol (8.1): PM2 covers file watching, crash recovery with backoff, reboot recovery, logs, and clustered reloads, and it ships TypeScript declarations for its API. The CLI is well documented, though generated configs can be fragile if they assume Bun and Node run the same TypeScript syntax. An older comparison by the Oxmgr maintainer found higher daemon memory use and slower recovery for PM2, so performance on 7.1.2 remains uncertain.
- **Holds up over time: 6.8** (likely 5.7 to 7.9)
  - Claude Opus 5.5 (6.5): The project is clearly active: 131 commits and 9 releases in the last year, a v7 major in 2026 and a Scorecard Maintained score of 10, with Keymetrics behind it. On the other side, there are 989 open issues, minor releases with breaking environment changes, and more teams moving to systemd and containers. Those keep the score from going higher.
  - GPT-6.2 Sol (7.1): PM2 had 131 commits and nine releases in the past year, and 7.1.2 fixed a long-standing systemd update issue. Keymetrics sells monitoring built around PM2, and the current manifest names one maintainer. A large backlog, a breaking change to environment handling in 7.1.2, and limited visibility into who can publish temper confidence.
- **Used widely: 5.8** (likely 4.8 to 6.9)
  - Claude Opus 5.5 (6.5): PM2 gets about 16.2M downloads every 4 weeks and has 43k stars, which is large use for a production tool. Many installs are global or on servers, so the 23.5k dependent repos understate real use. Its download ratio is about 1.6x against a median of 4.1, so it is losing share.
  - GPT-6.2 Sol (5.1): The 23,531 tracked repositories and 1,798 npm dependents suggest use on the scale of tens of thousands of projects, with plenty of room for error because PM2 can be installed globally. Four-week npm installs rose from 10.2 million to 16.2 million, or 1.59×, well below the catalog median of 4.1×. That points to a loss of relative ground, while downloads and GitHub stars give only an indirect view of new adoption.
- **Vouched for: 6.4** (likely 5.0 to 7.4)
  - Claude Opus 5.5 (6.0): PM2 is a long-standing default in hosting tutorials and production guides, and there are user reports of it running in production. Current independent validation is thin: no survey data, and the benchmarks come from competing vendors. Online discussion now leans towards replacing it with systemd or containers.
  - GPT-6.2 Sol (6.7): Forward Email’s production configuration uses PM2, and Nuxt and Node-RED document it as a deployment option. Other operators report running APIs with it, alongside complaints about log rotation and startup reliability. These are credible signs of production use, with limited independent testing of the current release.
- **Safe: 5.2** (likely 4.1 to 6.5)
  - Claude Opus 5.5 (5.0): Only one low-severity ReDoS advisory appears in 24 months, and v7 cut the dependency count and patched dependency CVEs. The OpenSSF Scorecard is weak at 4.4, with no code review, branch protection or pinned dependencies, and the package pulls in 25 dependencies. The AGPL-3.0 licence restricts some commercial settings and needs legal review in many companies.
  - GPT-6.2 Sol (5.3): PM2 fixed the reported low-severity denial-of-service advisory in 7.0.0, about 11 months after disclosure. The current package has 25 direct dependencies, and its 4.4 OpenSSF Scorecard shows weak branch protection, code review, and workflow token controls. AGPL-3.0 permits commercial use and imposes source-sharing obligations when distributing covered software or offering a modified version for network use. npm publishing access and release provenance remain unverified.

## Good

- Built-in cluster mode with zero-downtime reloads, log management and generated startup scripts in one tool.
- Actively maintained: v7 shipped in 2026 with Bun support, native type stripping for .ts apps and many dependencies moved into the package.
- Config-as-code through ecosystem.config.js, plus widely copied tutorials (DigitalOcean, Better Stack) that AI agents know well.
- A very long production track record with a large user base and a company (Keymetrics) behind it.

## Bad

- AGPL-3.0 licence, which some companies ban or must review before use.
- The daemon costs about 83 MB of RAM and starts slower than systemd or newer Rust managers.
- Recent minor releases (7.1.0, 7.1.2) changed how environment variables are inherited, which can break existing setups.
- Many teams now use systemd, Docker or Kubernetes for restarts, which makes PM2 less needed. Its watch mode is no substitute for tsx or nodemon in development.

## The numbers

- Downloads, 4 weeks: 16M
- In a year: +59%
- GitHub stars: 43k
- Commits, 12 months: 131
- Last npm release: Nov 2026
- Advisories, 24 months: 1
- Licence: AGPL-3.0
- GitHub: https://github.com/Unitech/pm2
- npm: https://www.npmjs.com/package/pm2

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
