ezpm2gui 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +321 -295
  3. package/bin/ezpm2gui.js +10 -10
  4. package/bin/ezpm2gui.ts +51 -51
  5. package/bin/generate-ecosystem.js +36 -36
  6. package/bin/generate-ecosystem.ts +56 -56
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2 -2
  9. package/dist/server/config/project-configs.json +236 -0
  10. package/dist/server/index.js +214 -25
  11. package/dist/server/routes/deployApplication.js +6 -5
  12. package/dist/server/routes/pageAuth.d.ts +3 -0
  13. package/dist/server/routes/pageAuth.js +177 -0
  14. package/dist/server/routes/remoteConnections.js +260 -0
  15. package/dist/server/routes/updates.d.ts +3 -0
  16. package/dist/server/routes/updates.js +135 -0
  17. package/dist/server/utils/remote-connection.d.ts +18 -0
  18. package/dist/server/utils/remote-connection.js +216 -9
  19. package/package.json +73 -71
  20. package/scripts/postinstall.js +36 -36
  21. package/src/client/build/asset-manifest.json +6 -6
  22. package/src/client/build/favicon.ico +2 -2
  23. package/src/client/build/index.html +1 -1
  24. package/src/client/build/logo192.svg +7 -7
  25. package/src/client/build/logo512.svg +7 -7
  26. package/src/client/build/manifest.json +24 -24
  27. package/src/client/build/static/css/main.775772ee.css +5 -0
  28. package/src/client/build/static/css/main.775772ee.css.map +1 -0
  29. package/src/client/build/static/js/main.cbcb09c9.js +3 -0
  30. package/src/client/build/static/js/main.cbcb09c9.js.map +1 -0
  31. package/dist/server/config/cron-jobs.json +0 -1
  32. package/dist/server/config/remote-connections.json +0 -3
  33. package/dist/server/daemon/ezpm2gui.err.log +0 -414
  34. package/dist/server/daemon/ezpm2gui.exe +0 -0
  35. package/dist/server/daemon/ezpm2gui.exe.config +0 -6
  36. package/dist/server/daemon/ezpm2gui.out.log +0 -289
  37. package/dist/server/daemon/ezpm2gui.wrapper.log +0 -172
  38. package/dist/server/daemon/ezpm2gui.xml +0 -32
  39. package/src/client/build/static/css/main.c506cba5.css +0 -5
  40. package/src/client/build/static/css/main.c506cba5.css.map +0 -1
  41. package/src/client/build/static/js/main.5278cddd.js +0 -3
  42. package/src/client/build/static/js/main.5278cddd.js.map +0 -1
  43. /package/src/client/build/static/js/{main.5278cddd.js.LICENSE.txt → main.cbcb09c9.js.LICENSE.txt} +0 -0
package/README.md CHANGED
@@ -1,295 +1,321 @@
1
- # EZ PM2 GUI
2
-
3
- A modern web-based graphical user interface for the PM2 process manager, built with TypeScript, Tailwind CSS, and React.
4
-
5
- ## Features
6
-
7
- - **Real-time process monitoring** - Keep track of all your PM2 processes in real-time
8
- - **Process management** - Start, stop, restart, and delete processes with one click
9
- - **System metrics dashboard** - Monitor CPU, memory usage, and uptime
10
- - **Enhanced log streaming** - View and filter logs from multiple processes simultaneously
11
- - **WebSocket for live updates** - Get instant updates without refreshing
12
- - **Process CPU and memory charts** - Visualize performance metrics over time
13
- - **Filter processes by status or name** - Quickly find the processes you need
14
- - **Dark/light mode** - Fully supported across all pages with Tailwind CSS
15
- - **Cluster management** - Easily scale your Node.js applications
16
- - **Application deployment** - Deploy new applications directly from the UI
17
- - **Ecosystem configuration** - Create and manage your PM2 ecosystem files
18
- - **PM2 modules support** - Manage and configure PM2 modules
19
- - **Cron Jobs** - Schedule and manage automated tasks with visual cron expression builder
20
- - **Remote Server Management** - Connect and manage PM2 on remote servers via SSH
21
- - **Advanced Monitoring Dashboard** - Real-time performance charts with health scoring
22
- - **Tailwind CSS UI** - Sleek, compact, and responsive design with consistent dark/light theming
23
- - **Fully typed with TypeScript** - Robust and maintainable codebase
24
-
25
- ## Detailed Features
26
-
27
- ### Process Monitoring
28
- Monitor all your PM2 processes in real-time with detailed information on CPU usage, memory consumption, uptime, and status. The intuitive interface makes it easy to identify issues at a glance.
29
-
30
- ### Remote Server Management
31
- Connect to and manage PM2 processes on remote servers via secure SSH connections:
32
- - Add multiple remote server connections with SSH credentials
33
- - View and manage processes on remote servers
34
- - Stream logs from remote processes in real-time
35
- - Execute PM2 commands on remote machines
36
- - Encrypted credential storage for security
37
-
38
- ### Cron Jobs
39
- Schedule and automate tasks using PM2's cron restart feature:
40
- - Visual cron expression builder with common presets
41
- - Support for Node.js, Python, Shell, and .NET scripts
42
- - Inline script editor or file-based execution
43
- - Enable/disable jobs without deleting them
44
- - View next execution times and job status
45
-
46
- ### Advanced Monitoring Dashboard
47
- Get deeper insights into your system and process performance:
48
- - Real-time performance charts for CPU, memory, and load
49
- - System health score calculation
50
- - Historical metrics tracking
51
- - Process alerts for high resource usage
52
- - Per-process performance visualization
53
-
54
- ### Application Deployment
55
- Deploy new Node.js applications to PM2 directly from the UI. Configure all the necessary options including:
56
- - Application name and script path
57
- - Working directory
58
- - Number of instances for load balancing
59
- - Execution mode (fork or cluster)
60
- - Auto-restart options
61
- - Memory threshold for restarts
62
- - Environment variables
63
-
64
- ### Cluster Management
65
- Easily scale your Node.js applications with the cluster management interface. Add or remove instances on the fly and switch between fork and cluster execution modes for optimal performance.
66
-
67
- ### Log Streaming
68
- View and filter logs from multiple processes simultaneously with the enhanced log streaming interface. Features include:
69
- - Real-time log updates via WebSocket
70
- - Filtering by process, log level, or content
71
- - Pausing and resuming log streams
72
- - Download logs for offline analysis
73
- - Floating log panel for remote process logs
74
-
75
- ### Ecosystem Configuration
76
- Generate and manage PM2 ecosystem configuration files directly from the UI. This makes it easy to set up complex application deployments and share configurations across your team.
77
-
78
- ### PM2 Modules
79
- Manage and configure PM2 modules to extend the functionality of your PM2 installation. Install, update, and remove modules with a few clicks.
80
-
81
- ### System Metrics
82
- Monitor key system metrics including:
83
- - CPU usage and number of cores
84
- - Memory usage and availability
85
- - System uptime
86
- - Load averages (1, 5, and 15 minutes)
87
-
88
- ### User Interface
89
- ezPM2GUI uses Tailwind CSS for a sleek, compact, and fully responsive interface:
90
- - Dark and light mode support across all pages
91
- - Consistent color theming with smooth transitions
92
- - Compact layout with small fonts and reduced spacing for information density
93
- - `PageHeader` and `LogStatusBar` reusable components for a consistent look
94
- - Configure dashboard refresh intervals and log display settings from Settings
95
-
96
- ## Installation
97
-
98
- ### Global Installation
99
-
100
- ```bash
101
- npm install -g ezpm2gui
102
- ```
103
-
104
- ### Local Installation
105
-
106
- ```bash
107
- npm install ezpm2gui
108
- ```
109
-
110
- ## Usage
111
-
112
- ### As a Command Line Tool (Global Installation)
113
-
114
- ```bash
115
- # Start the ezPM2GUI web interface
116
- ezpm2gui
117
-
118
- # Start on a specific port
119
- ezpm2gui --port 4000
120
-
121
- # Start bound to all network interfaces
122
- ezpm2gui --host 0.0.0.0
123
-
124
- # Generate a sample PM2 ecosystem config
125
- ezpm2gui-generate-ecosystem
126
- ```
127
-
128
- ### As a Module (Local Installation)
129
-
130
- ```javascript
131
- const ezpm2gui = require('ezpm2gui');
132
-
133
- // Start the server with default options
134
- ezpm2gui.start();
135
-
136
- // Or with custom options
137
- ezpm2gui.start({
138
- port: 3030,
139
- host: '0.0.0.0'
140
- });
141
- ```
142
-
143
- ### Access the UI
144
-
145
- Once started, open your browser and navigate to:
146
-
147
- ```
148
- http://localhost:3001
149
- ```
150
-
151
- ## Requirements
152
-
153
- - Node.js 16.x or later
154
- - PM2 installed globally (`npm install -g pm2`)
155
-
156
- ## Configuration
157
-
158
- ezPM2GUI uses environment variables for configuration:
159
-
160
- - `PORT`: The port to run the server on (default: 3001)
161
- - `HOST`: The host to bind to (default: localhost)
162
-
163
- ## Load Balancing with PM2
164
-
165
- ezPM2GUI provides an easy interface to manage PM2's load balancing capabilities:
166
-
167
- ### Setting Up Load Balancing
168
-
169
- 1. **Deploy a new application or modify an existing one**:
170
- - Set the number of instances to greater than 1 (or 0/-1 for max instances based on CPU cores)
171
- - Choose "Cluster" as the execution mode for optimal load balancing
172
-
173
- 2. **Manage your cluster**:
174
- - Use the Cluster Management section to scale instances up or down
175
- - Switch between fork and cluster execution modes
176
- - Reload all instances with zero downtime
177
-
178
- ### How Load Balancing Works
179
-
180
- PM2 provides built-in load balancing when you run your Node.js applications in cluster mode with multiple instances:
181
-
182
- - **Cluster Mode**: In this mode, PM2 uses Node.js's cluster module to create multiple worker processes that share the same server port
183
- - **Multiple Instances**: Incoming requests are automatically distributed across your instances
184
- - **Zero Downtime Reloads**: When updating your application, PM2 can reload instances one by one to avoid downtime
185
-
186
- ### Best Practices
187
-
188
- - For CPU-intensive applications, use a number of instances equal to the number of CPU cores
189
- - For I/O-intensive applications, you can use more instances than CPU cores
190
- - Always use cluster mode for load balancing to ensure port sharing between instances
191
- - Use the reload feature instead of restart for zero-downtime deployments
192
-
193
- ## Development
194
-
195
- See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed development instructions.
196
-
197
- ```bash
198
- # Clone the repository
199
- git clone https://github.com/thechandanbhagat/ezpm2gui.git
200
- cd ezpm2gui
201
-
202
- # Install dependencies and build
203
- ./install.sh # On Linux/macOS
204
- install.bat # On Windows
205
-
206
- # Start in development mode
207
- npm run dev
208
-
209
- # Build the application
210
- npm run build
211
-
212
- # Start the application (production mode)
213
- npm start
214
- ```
215
-
216
- ### Project Structure
217
-
218
- ```
219
- ezpm2gui/
220
- ├── bin/ # CLI entry points
221
- ├── dist/ # Compiled output
222
- ├── docs/ # Documentation
223
- ├── screenshots/ # Application screenshots
224
- ├── scripts/ # Build and utility scripts
225
- ├── src/ # Source code
226
- │ ├── client/ # React frontend
227
- │ ├── public/ # Static assets
228
- │ │ └── src/ # React components and logic
229
- │ │ ├── components/ # UI components
230
- │ │ └── types/ # TypeScript types for client
231
- │ ├── server/ # Express backend
232
- │ │ ├── routes/ # API routes
233
- │ │ └── utils/ # Server utilities
234
- │ └── types/ # Shared TypeScript types
235
- └── test/ # Test files
236
- ```
237
-
238
- ## Contributing
239
-
240
- Contributions are welcome! Please feel free to submit a Pull Request.
241
-
242
- 1. Fork the repository
243
- 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
244
- 3. Make your changes
245
- 4. Run the tests to ensure everything works
246
- 5. Commit your changes using our [commit guidelines](./docs/COMMIT_GUIDE.md)
247
- 6. Push to the branch (`git push origin feature/amazing-feature`)
248
- 7. Open a Pull Request
249
-
250
- ### Coding Style
251
-
252
- This project follows standardized TypeScript conventions and uses ESLint for code quality. Before submitting a pull request, please ensure your code follows these guidelines by running:
253
-
254
- ```bash
255
- npm run lint
256
- ```
257
-
258
- ## FAQ
259
-
260
- ### Q: How does ezPM2GUI differ from pm2-gui and PM2 Plus?
261
-
262
- A: ezPM2GUI is a modern, TypeScript-based alternative to pm2-gui with a more user-friendly interface and additional features. Unlike PM2 Plus, it's completely free and open-source, running locally on your server rather than in the cloud.
263
-
264
- ### Q: Can I use ezPM2GUI with PM2 running on a different machine?
265
-
266
- A: Yes, you can configure ezPM2GUI to connect to a remote PM2 installation. You'll need to specify the connection details in the application settings.
267
-
268
- ### Q: How do I generate an ecosystem file from my existing processes?
269
-
270
- A: Use the `ezpm2gui-generate-ecosystem` command-line tool, or visit the Ecosystem Config section in the web UI.
271
-
272
- ### Q: Can ezPM2GUI handle a large number of processes?
273
-
274
- A: Yes, ezPM2GUI is designed to handle dozens of processes efficiently. The UI is optimized to present large amounts of information in a digestible format.
275
-
276
- ### Q: Is ezPM2GUI secure?
277
-
278
- A: By default, ezPM2GUI binds to localhost for security reasons. If you expose the interface to other machines, consider adding authentication through a reverse proxy like Nginx.
279
-
280
- ## Related Projects
281
-
282
- - [PM2](https://github.com/Unitech/pm2) - The process manager that ezPM2GUI works with
283
- - [pm2-gui](https://github.com/Tjatse/pm2-gui) - The original inspiration for this project
284
-
285
- ## License
286
-
287
- ISC
288
-
289
- ## Credits
290
-
291
- Built by [Chandan Bhagat](https://github.com/thechandanbhagat) as a modern alternative to pm2-gui.
292
-
293
- ---
294
-
295
- **Note**: ezPM2GUI is not officially affiliated with PM2 or PM2 Plus. It's an independent tool that interfaces with the PM2 process manager.
1
+ # EZ PM2 GUI
2
+
3
+ A modern web-based graphical user interface for the PM2 process manager, built with TypeScript, Tailwind CSS, and React.
4
+
5
+ ## Screenshots
6
+
7
+ **Process Dashboard** live system metrics and every PM2 process at a glance:
8
+
9
+ ![Process Dashboard](ezpm2gui/screenshots/01-processes.png)
10
+
11
+ **Monitoring** real-time CPU, memory and uptime per process:
12
+
13
+ ![Process Monitor](ezpm2gui/screenshots/02-monitoring.png)
14
+
15
+ **Deploy App** start new PM2 processes from a structured form:
16
+
17
+ ![Deploy App](ezpm2gui/screenshots/04-deploy-app.png)
18
+
19
+ **Cron Jobs** schedule recurring tasks without touching crontab:
20
+
21
+ ![Cron Jobs](ezpm2gui/screenshots/08-cron-jobs.png)
22
+
23
+ **Settings** — auto-saved preferences for refresh, logs, theme and security:
24
+
25
+ ![Settings](ezpm2gui/screenshots/11-settings.png)
26
+
27
+ > See the full visual walkthrough in [https://ezpm2gui.vercel.app/](https://ezpm2gui.vercel.app/) — every screen is annotated with a screenshot.
28
+
29
+ ## Features
30
+
31
+ - **Real-time process monitoring** - Keep track of all your PM2 processes in real-time
32
+ - **Process management** - Start, stop, restart, and delete processes with one click
33
+ - **System metrics dashboard** - Monitor CPU, memory usage, and uptime
34
+ - **Enhanced log streaming** - View and filter logs from multiple processes simultaneously
35
+ - **WebSocket for live updates** - Get instant updates without refreshing
36
+ - **Process CPU and memory charts** - Visualize performance metrics over time
37
+ - **Filter processes by status or name** - Quickly find the processes you need
38
+ - **Dark/light mode** - Fully supported across all pages with Tailwind CSS
39
+ - **Cluster management** - Easily scale your Node.js applications
40
+ - **Application deployment** - Deploy new applications directly from the UI
41
+ - **Ecosystem configuration** - Create and manage your PM2 ecosystem files
42
+ - **PM2 modules support** - Manage and configure PM2 modules
43
+ - **Cron Jobs** - Schedule and manage automated tasks with visual cron expression builder
44
+ - **Remote Server Management** - Connect and manage PM2 on remote servers via SSH
45
+ - **Advanced Monitoring Dashboard** - Real-time performance charts with health scoring
46
+ - **Tailwind CSS UI** - Sleek, compact, and responsive design with consistent dark/light theming
47
+ - **Fully typed with TypeScript** - Robust and maintainable codebase
48
+
49
+ ## Detailed Features
50
+
51
+ ### Process Monitoring
52
+ Monitor all your PM2 processes in real-time with detailed information on CPU usage, memory consumption, uptime, and status. The intuitive interface makes it easy to identify issues at a glance.
53
+
54
+ ### Remote Server Management
55
+ Connect to and manage PM2 processes on remote servers via secure SSH connections:
56
+ - Add multiple remote server connections with SSH credentials
57
+ - View and manage processes on remote servers
58
+ - Stream logs from remote processes in real-time
59
+ - Execute PM2 commands on remote machines
60
+ - Encrypted credential storage for security
61
+
62
+ ### Cron Jobs
63
+ Schedule and automate tasks using PM2's cron restart feature:
64
+ - Visual cron expression builder with common presets
65
+ - Support for Node.js, Python, Shell, and .NET scripts
66
+ - Inline script editor or file-based execution
67
+ - Enable/disable jobs without deleting them
68
+ - View next execution times and job status
69
+
70
+ ### Advanced Monitoring Dashboard
71
+ Get deeper insights into your system and process performance:
72
+ - Real-time performance charts for CPU, memory, and load
73
+ - System health score calculation
74
+ - Historical metrics tracking
75
+ - Process alerts for high resource usage
76
+ - Per-process performance visualization
77
+
78
+ ### Application Deployment
79
+ Deploy new Node.js applications to PM2 directly from the UI. Configure all the necessary options including:
80
+ - Application name and script path
81
+ - Working directory
82
+ - Number of instances for load balancing
83
+ - Execution mode (fork or cluster)
84
+ - Auto-restart options
85
+ - Memory threshold for restarts
86
+ - Environment variables
87
+
88
+ ### Cluster Management
89
+ Easily scale your Node.js applications with the cluster management interface. Add or remove instances on the fly and switch between fork and cluster execution modes for optimal performance.
90
+
91
+ ### Log Streaming
92
+ View and filter logs from multiple processes simultaneously with the enhanced log streaming interface. Features include:
93
+ - Real-time log updates via WebSocket
94
+ - Filtering by process, log level, or content
95
+ - Pausing and resuming log streams
96
+ - Download logs for offline analysis
97
+ - Floating log panel for remote process logs
98
+
99
+ ### Ecosystem Configuration
100
+ Generate and manage PM2 ecosystem configuration files directly from the UI. This makes it easy to set up complex application deployments and share configurations across your team.
101
+
102
+ ### PM2 Modules
103
+ Manage and configure PM2 modules to extend the functionality of your PM2 installation. Install, update, and remove modules with a few clicks.
104
+
105
+ ### System Metrics
106
+ Monitor key system metrics including:
107
+ - CPU usage and number of cores
108
+ - Memory usage and availability
109
+ - System uptime
110
+ - Load averages (1, 5, and 15 minutes)
111
+
112
+ ### User Interface
113
+ EZ PM2 GUI uses Tailwind CSS for a sleek, compact, and fully responsive interface:
114
+ - Dark and light mode support across all pages
115
+ - Consistent color theming with smooth transitions
116
+ - Compact layout with small fonts and reduced spacing for information density
117
+ - `PageHeader` and `LogStatusBar` reusable components for a consistent look
118
+ - Configure dashboard refresh intervals and log display settings from Settings
119
+
120
+ ## Installation
121
+
122
+ ### Global Installation
123
+
124
+ ```bash
125
+ npm install -g ezpm2gui
126
+ ```
127
+
128
+ ### Local Installation
129
+
130
+ ```bash
131
+ npm install ezpm2gui
132
+ ```
133
+
134
+ ## Usage
135
+
136
+ ### As a Command Line Tool (Global Installation)
137
+
138
+ ```bash
139
+ # Start the EZ PM2 GUI web interface
140
+ ezpm2gui
141
+
142
+ # Start on a specific port
143
+ ezpm2gui --port 4000
144
+
145
+ # Start bound to all network interfaces
146
+ ezpm2gui --host 0.0.0.0
147
+
148
+ # Generate a sample PM2 ecosystem config
149
+ ezpm2gui-generate-ecosystem
150
+ ```
151
+
152
+ ### As a Module (Local Installation)
153
+
154
+ ```javascript
155
+ const ezpm2gui = require('ezpm2gui');
156
+
157
+ // Start the server with default options
158
+ ezpm2gui.start();
159
+
160
+ // Or with custom options
161
+ ezpm2gui.start({
162
+ port: 3030,
163
+ host: '0.0.0.0'
164
+ });
165
+ ```
166
+
167
+ ### Access the UI
168
+
169
+ Once started, open your browser and navigate to:
170
+
171
+ ```
172
+ http://localhost:3001
173
+ ```
174
+
175
+ ## Requirements
176
+
177
+ - Node.js 16.x or later
178
+ - PM2 installed globally (`npm install -g pm2`)
179
+
180
+ ## Configuration
181
+
182
+ EZ PM2 GUI uses environment variables for configuration:
183
+
184
+ - `PORT`: The port to run the server on (default: 3001)
185
+ - `HOST`: The host to bind to (default: localhost)
186
+
187
+ ## Load Balancing with PM2
188
+
189
+ EZ PM2 GUI provides an easy interface to manage PM2's load balancing capabilities:
190
+
191
+ ### Setting Up Load Balancing
192
+
193
+ 1. **Deploy a new application or modify an existing one**:
194
+ - Set the number of instances to greater than 1 (or 0/-1 for max instances based on CPU cores)
195
+ - Choose "Cluster" as the execution mode for optimal load balancing
196
+
197
+ 2. **Manage your cluster**:
198
+ - Use the Cluster Management section to scale instances up or down
199
+ - Switch between fork and cluster execution modes
200
+ - Reload all instances with zero downtime
201
+
202
+ ### How Load Balancing Works
203
+
204
+ PM2 provides built-in load balancing when you run your Node.js applications in cluster mode with multiple instances:
205
+
206
+ - **Cluster Mode**: In this mode, PM2 uses Node.js's cluster module to create multiple worker processes that share the same server port
207
+ - **Multiple Instances**: Incoming requests are automatically distributed across your instances
208
+ - **Zero Downtime Reloads**: When updating your application, PM2 can reload instances one by one to avoid downtime
209
+
210
+ ### Best Practices
211
+
212
+ - For CPU-intensive applications, use a number of instances equal to the number of CPU cores
213
+ - For I/O-intensive applications, you can use more instances than CPU cores
214
+ - Always use cluster mode for load balancing to ensure port sharing between instances
215
+ - Use the reload feature instead of restart for zero-downtime deployments
216
+
217
+ ## Development
218
+
219
+ See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed development instructions.
220
+
221
+ ```bash
222
+ # Clone the repository
223
+ git clone https://github.com/thechandanbhagat/ezpm2gui.git
224
+ cd ezpm2gui
225
+
226
+ # Install dependencies and build
227
+ ./install.sh # On Linux/macOS
228
+ install.bat # On Windows
229
+
230
+ # Start in development mode
231
+ npm run dev
232
+
233
+ # Build the application
234
+ npm run build
235
+
236
+ # Start the application (production mode)
237
+ npm start
238
+ ```
239
+
240
+ ### Project Structure
241
+
242
+ ```
243
+ ezpm2gui/
244
+ ├── bin/ # CLI entry points
245
+ ├── dist/ # Compiled output
246
+ ├── docs/ # Documentation
247
+ ├── screenshots/ # Application screenshots
248
+ ├── scripts/ # Build and utility scripts
249
+ ├── src/ # Source code
250
+ │ ├── client/ # React frontend
251
+ │ │ ├── public/ # Static assets
252
+ │ │ └── src/ # React components and logic
253
+ │ │ ├── components/ # UI components
254
+ │ │ └── types/ # TypeScript types for client
255
+ │ ├── server/ # Express backend
256
+ │ │ ├── routes/ # API routes
257
+ │ │ └── utils/ # Server utilities
258
+ │ └── types/ # Shared TypeScript types
259
+ └── test/ # Test files
260
+ ```
261
+
262
+ ## Contributing
263
+
264
+ Contributions are welcome! Please feel free to submit a Pull Request.
265
+
266
+ 1. Fork the repository
267
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
268
+ 3. Make your changes
269
+ 4. Run the tests to ensure everything works
270
+ 5. Commit your changes using our [commit guidelines](./docs/COMMIT_GUIDE.md)
271
+ 6. Push to the branch (`git push origin feature/amazing-feature`)
272
+ 7. Open a Pull Request
273
+
274
+ ### Coding Style
275
+
276
+ This project follows standardized TypeScript conventions and uses ESLint for code quality. Before submitting a pull request, please ensure your code follows these guidelines by running:
277
+
278
+ ```bash
279
+ npm run lint
280
+ ```
281
+
282
+ ## FAQ
283
+
284
+ ### Q: How does EZ PM2 GUI differ from pm2-gui and PM2 Plus?
285
+
286
+ A: EZ PM2 GUI is a modern, TypeScript-based alternative to pm2-gui with a more user-friendly interface and additional features. Unlike PM2 Plus, it's completely free and open-source, running locally on your server rather than in the cloud.
287
+
288
+ ### Q: Can I use EZ PM2 GUI with PM2 running on a different machine?
289
+
290
+ A: Yes, you can configure EZ PM2 GUI to connect to a remote PM2 installation. You'll need to specify the connection details in the application settings.
291
+
292
+ ### Q: How do I generate an ecosystem file from my existing processes?
293
+
294
+ A: Use the `ezpm2gui-generate-ecosystem` command-line tool, or visit the Ecosystem Config section in the web UI.
295
+
296
+ ### Q: Can EZ PM2 GUI handle a large number of processes?
297
+
298
+ A: Yes, EZ PM2 GUI is designed to handle dozens of processes efficiently. The UI is optimized to present large amounts of information in a digestible format.
299
+
300
+ ### Q: Is EZ PM2 GUI secure?
301
+
302
+ A: By default, EZ PM2 GUI binds to localhost for security reasons. If you expose the interface to other machines, consider adding authentication through a reverse proxy like Nginx.
303
+
304
+ ## Related Projects
305
+
306
+ - [PM2](https://github.com/Unitech/pm2) - The process manager that EZ PM2 GUI works with
307
+ - [pm2-gui](https://github.com/Tjatse/pm2-gui) - The original inspiration for this project
308
+
309
+ ## License
310
+
311
+ GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See [LICENSE](LICENSE).
312
+
313
+ EZ PM2 GUI interfaces with [PM2](https://github.com/Unitech/pm2), which is licensed under AGPL-3.0. Because this project links PM2 as a library, it is distributed under the same license.
314
+
315
+ ## Credits
316
+
317
+ Built by [Chandan Bhagat](https://github.com/thechandanbhagat) as a modern alternative to pm2-gui.
318
+
319
+ ---
320
+
321
+ **Note**: EZ PM2 GUI is not officially affiliated with PM2 or PM2 Plus. It's an independent tool that interfaces with the PM2 process manager.