{"repo":"Unitech/pm2","free":true,"listed":false,"github":"https://github.com/Unitech/pm2","clone":"git clone https://github.com/Unitech/pm2.git","description":"Node.js/Bun Production Process Manager with a built-in Load Balancer.","language":"JavaScript","stars":43269,"topics":["pm2","nodejs","node","process-manager","monitoring","load-balancer","production","deploy","command-line","command-line-tool"],"license":null,"category":"cli-tools","readme_excerpt":"P (rocess) M (anager) 2 Runtime Edition PM2 is a production process manager for Node.js/Bun applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. Starting an application in production mode is as easy as: PM2 is battle-tested by a comprehensive test suite. Official website: https://pm2.keymetrics.io/ Works on Linux, macOS, and Windows. Supports Node.js 18+ and Bun 1+. Installing PM2 With NPM With Bun If you only have Bun installed (no Node.js), symlink node to bun so PM2's #!/usr/bin/env node shebang resolves to Bun's node-compatibility runtime: You can install Node.js easily with NVM or FNM or install Bun with curl -fsSL https://bun.sh/install bash Start an application You can start any application (Node.js, Bun, and also Python, Ruby, binaries in $PATH...) like that: Your app is now daemonized, monitored and kept alive forever. Managing Applications Once applications are started you can manage them easily: To list all running applications: Managing apps is straightforward: To have more details on a specific application: To monitor logs, custom metrics, application information: More about Process Management Cluster Mode: Node.js Load Balancing & Zero Downtime Reload Cluster mode starts multiple Node.js processes and load-balances HTTP/TCP/UDP queries between them. This significantly increases throughput on multi-core machines and improves reliability (faster so","default_branch":null,"files":null,"tree":[],"storefront":"/r/Unitech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Unitech/pm2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}