PM2
Reasonable, with limits. 2nd of 10 script runners and process managers.
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
Overall6.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- npm downloads ratio: 1.59x against a 4.1 median
- github.com/Unitech/pm2/releases: Active v7 development
- hashnode.com/posts/pm2-alternatives-in-2026-what-are-your-options/69aaeeb778c5adcd0e1f218a: 2026 write-ups on moving away from PM2
- peers tsx: tsx grew about 9x and leads the TypeScript runner job
GPT-6.2 Sol: 7.4, likely 6.3 to 8.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.
- pm2.keymetrics.io/docs/usage/quick-start: Documents the production supervision features that distinguish PM2.
- pm2.keymetrics.io/docs/usage/bun-deno: Direct TypeScript execution depends on the runtime and syntax.
- tsx.hirok.io/watch-mode: tsx provides a direct watch command for the local TypeScript workflow.
- peers, medianDownloadsRatio, scorecard: tsx has stronger relative growth, while PM2 has weak repository controls.
Needed by many4.8
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- github description: Production process manager with a load balancer
- news.ycombinator.com/item?id=42338904: A user moved to systemd and asks whether PM2 is still needed on Linux
GPT-6.2 Sol: 4.6, likely 3.4 to 5.8
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.
- 2025.stateofjs.com/en-US/usage: TypeScript-only use is growing among survey respondents.
- pm2.keymetrics.io/docs/usage/quick-start: The main workflow centers on persistent apps, logs, clustering, and startup.
- nuxt.com/docs/4.x/getting-started/deployment: Nuxt presents PM2 as a server or VM deployment option.
Helps a lot7.3
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- github.com/Unitech/pm2/releases: v7 adds Bun support and .ts native type stripping; many fixes in 7.1.x
- dev.to/empellio/process-manager-comparison-2026-pm2-systemd-supervisor-oxmgr-and-more-4e0p: 83 MB daemon, 1.2 s cold start, 412 ms crash recovery (benchmark by a competing vendor)
- npm hasTypes: Ships TypeScript declarations for its API
GPT-6.2 Sol: 8.1, likely 7.0 to 9.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.
- pm2.keymetrics.io/docs/usage/bun-deno: Documents Bun selection, Node type-stripping limits, and custom interpreters.
- pm2.keymetrics.io/docs/usage/quick-start: Documents file watching, clustering, logs, and reboot restoration.
- pm2.keymetrics.io/docs/usage/restart-strategies: Documents crash recovery, memory-triggered restarts, and backoff.
- npm.hasTypes: The package ships TypeScript declarations.
- oxmgr.empellio.com/benchmark: A competing maintainer measured daemon overhead and crash recovery before PM2 7.1.2.
Holds up over time6.8
Will it still be a good choice in two years?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- github commitsLastYear / releasesLastYear: 131 commits and 9 releases in the last year
- github openIssues: 989 open issues against 4168 closed
- github.com/Unitech/pm2/releases: Breaking environment-inheritance changes in 7.1.0 and 7.1.2
GPT-6.2 Sol: 7.1, likely 5.9 to 8.3
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.
- github.commitsLastYear, github.releasesLastYear, github.openIssues, github.openPullRequests: 131 commits, nine releases, 989 open issues, and 94 open pull requests.
- github.com/Unitech/pm2/issues/5000: A user-reported upgrade issue from 2021 was closed in November 2026.
- github.com/Unitech/pm2/releases/tag/v7.1.2: The patch release fixes the systemd issue and changes behavior for filter_env users.
- github.com/Unitech/pm2/blob/v7.1.2/package.json: The release manifest lists one maintainer.
- pm2.io/legals/terms_conditions.pdf: Keymetrics offers paid monitoring for PM2 deployments.
Used widely5.8
How many use it, and is that growing?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- npm downloadsLast4Weeks: 16.2M now against 10.2M a year ago, a ratio of 1.59
- medianDownloadsRatio: Median is 4.1, so PM2 is losing ground relative to the rest
- dependents: 23,531 repos and 1,798 packages
- github stars: 43k stars, the most in the category
GPT-6.2 Sol: 5.1, likely 4.0 to 6.3
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.
- dependents.repos, dependents.packages, peers[].dependentRepos: Tracked repository use is close to forever and well below nodemon.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: PM2 grew 1.59× against the 4.1× median, while tsx grew 9.06×.
- github.stars: 43,339 stars show accumulated attention.
- pm2.keymetrics.io/docs/usage/quick-start: The standard install is global and can leave no repository dependency entry.
Vouched for6.4
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.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.
- digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps: DigitalOcean's canonical production tutorial uses PM2
- betterstack.com/community/guides/scaling-nodejs/pm2-guide: Better Stack production guide for PM2
- bluesky posts: Almost no recent social attention
GPT-6.2 Sol: 6.7, likely 5.5 to 7.8
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.
- github.com/forwardemail/forwardemail.net/blob/master/ansible/playbooks/node.yml: Forward Email configures PM2 deployment and health checks.
- nuxt.com/docs/4.x/getting-started/deployment: Nuxt documents PM2 for production hosting on a server or VM.
- nodered.org/docs/faq/starting-node-red-on-boot: Node-RED documents PM2 as a startup and restart option.
- reddit.com/r/learnjavascript/comments/1oovxia/does_anyone_in_2025_use_pm2_for_deployments_in: Operators report using PM2 for production APIs and workers.
- reddit.com/r/node/comments/1x0vbbb/pm2_monitoring: An operator reports friction with startup reliability and log rotation.
Safe5.2
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
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.
- advisories: One low-severity ReDoS advisory (GHSA-x5gf-qvw8-r2rm)
- scorecard: 4.4 overall; Code-Review, Branch-Protection and Pinned-Dependencies all 0
- npm license: AGPL-3.0
- forums.rocket.chat/t/pm2-agpl-license/20469: A company asks whether bundling PM2 puts its own product under AGPL
GPT-6.2 Sol: 5.3, likely 4.1 to 6.5
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.
- github.com/advisories/GHSA-x5gf-qvw8-r2rm: Published in June 2025, rated low severity, and patched in 7.0.0.
- github.com/Unitech/pm2/releases/tag/v7.0.0: The May 2026 release includes the fix and removes several external dependencies.
- scorecard.score, scorecard.checks: Security policy scores 10, while code review, branch protection, and token permissions score zero.
- npm.dependencies, npm.license: The current package has 25 direct dependencies and declares AGPL-3.0.
- github.com/Unitech/pm2/blob/v7.1.2/GNU-AGPL-3.0.txt: The license sets source-sharing conditions for distribution and modified network use.
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
- npm downloads, 4 weeks
- 16M +59% in a year
- GitHub stars
- 43k
- Commits, 12 months
- 131
- npm version
- 7.1.2 Nov 2026
- Versions, 12 months
- 9
- Advisories, 24 months
- 1 of 1 ever
- OpenSSF Scorecard
- 4.4 out of 10, Nov 2026
- Licence
- AGPL-3.0
Read on 21 November 2026 from GitHub (Unitech/pm2), npm (pm2), OSV and the OpenSSF Scorecard.