podmanager 0.0.0-stage β†’ 1.0.1

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.
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Podmanager
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,106 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="apps/ui/public/podmanager.webp" width="96" height="96" alt="Podmanager Logo" style="border-radius: 18px;" />
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ # Podmanager
6
+
7
+ The lightweight, native, and modern web app for podman environments.
8
+
9
+ [![Podman Compatible](https://img.shields.io/badge/Podman-Compatible%20v4+-892CA0?logo=podman&logoColor=white)](#-key-features)
10
+ [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D20.0.0-339933?logo=node.js&logoColor=white)](#-quick-start)
11
+ [![Monorepo](https://img.shields.io/badge/Architecture-Monorepo%20Workspaces-02569B)](CONTRIBUTING.md)
12
+ [![Footprint](https://img.shields.io/badge/Footprint-%3C30MB%20RAM-00b894)](#-why-podmanager)
13
+ [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
14
+
15
+ ![Podmanager Dashboard](apps/landing/public/dashboard.webp)
16
+
17
+ ## πŸ“– Overview
18
+
19
+ **Podmanager** is a sleek, responsive, and production-ready web interface designed specifically for [Podman](https://podman.io/). It empowers developers and system administrators to inspect, manage, and monitor containers, pods, images, volumes, and networks with speed and precision.
20
+
21
+ Unlike traditional container dashboards designed around Docker daemons, **Podmanager embraces the Podman philosophy**:
22
+ - Works natively with **rootless** containers without privileged root access.
23
+ - Operates directly via the Podman CLI without requiring complex systemd user sockets or persistent background daemons.
24
+ - Delivers a lightning-fast single-page interface with a footprint under **30 MB RAM**.
25
+
26
+ ## ⚑ Why Podmanager?
27
+
28
+ | Feature | Podmanager | Portainer | Cockpit-Podman |
29
+ | :-------------------------------- | :--------------------------------- | :------------------------------ | :------------------------ |
30
+ | **Native Rootless Podman** | βœ… Native | ⚠️ Complex socket setup | βœ… Native |
31
+ | **Native Pods Support** | βœ… First-class | ❌ Docker focused | ⚠️ Basic |
32
+ | **Zero Socket / Daemon Required** | βœ… Direct CLI execution | ❌ Requires Docker/Podman socket | ❌ Requires cockpit-bridge |
33
+ | **Resource Footprint** | ⚑ **< 30 MB RAM** | 🐒 ~150–250 MB | 🐒 System service overhead |
34
+ | **Real-Time SSE Streaming** | βœ… Logs, Events & Pulls | ⚠️ Polling / WebSocket | ⚠️ Polling |
35
+ | **In-Browser Container Exec** | βœ… Instant CLI runner | βœ… Available | βœ… Available |
36
+
37
+ ## ✨ Key Features
38
+
39
+ - **πŸ“Š Dashboard & Resource Analytics**: Real-time Podman engine health, CPU/memory stats, storage usage breakdown (`system df`), and one-click resource pruning.
40
+ - **πŸ“¦ Container Lifecycle & Web Terminal**: Start, stop, restart, pause, remove, inspect OCI configs, stream live logs via SSE, and run interactive commands with in-browser `exec`.
41
+ - **☸️ First-Class Podman Pods**: Full support for multi-container pods, shared networking, port publications, and batch lifecycle management.
42
+ - **πŸ–ΌοΈ Image Hub & Live Pull Streaming**: Browse local images, deploy containers in one click, and pull new images with real-time download progress logs.
43
+ - **πŸ’Ύ Volumes & Container Networks**: Inspect and manage persistent named volumes and container bridge networks.
44
+ - **πŸ“‘ Real-Time Daemon Event Stream**: Continuous Server-Sent Events (SSE) feed reflecting all daemon events live as they occur.
45
+
46
+ ## πŸš€ Quick Start
47
+
48
+ ### Prerequisites
49
+ - **Node.js** v20 or higher
50
+ - **Podman** installed and accessible in `$PATH` (rootless or rootful)
51
+
52
+ ### Run with `npx` (Recommended)
53
+
54
+ Launch Podmanager instantly without cloning the repository:
55
+
56
+ ```bash
57
+ npx podmanager
58
+ ```
59
+
60
+ Useful CLI options:
61
+ ```bash
62
+ npx podmanager --open # Open Podmanager automatically in your browser
63
+ npx podmanager --port 8080 # Listen on a custom port (default: 3030)
64
+ npx podmanager --host 127.0.0.1 # Bind to localhost only (default: 0.0.0.0)
65
+ ```
66
+
67
+ ### Run from Source (Development)
68
+
69
+ 1. **Clone the repository & install dependencies:**
70
+ ```bash
71
+ git clone https://github.com/rgdlr/podmanager.git
72
+ cd podmanager
73
+ npm install
74
+ ```
75
+
76
+ 2. **Start the application:**
77
+ ```bash
78
+ npm start
79
+ ```
80
+
81
+ 3. Open your browser at `http://localhost:3030`.
82
+
83
+ ### Environment Variables
84
+
85
+ | Variable | Default | Description |
86
+ | :------- | :-------- | :--------------------------------------------------------------- |
87
+ | `PORT` | `3030` | HTTP listening port for the web application and API |
88
+ | `HOST` | `0.0.0.0` | Network interface to bind to (`127.0.0.1` for local-only access) |
89
+
90
+ Example:
91
+ ```bash
92
+ PORT=8080 HOST=127.0.0.1 npm start
93
+ ```
94
+
95
+ ## πŸ“š Documentation
96
+
97
+ For development workflows and API specifications, refer to our guides:
98
+
99
+ - πŸ”Œ **[REST & SSE API Reference](apps/api/README.md)**: Full endpoint definitions, payload schemas, query parameters, and SSE event formats.
100
+ - 🀝 **[Contributing Guide](CONTRIBUTING.md)**: Local development setup, workspace commands, coding conventions, and pull request workflow.
101
+
102
+ ## πŸ“„ Community & License
103
+
104
+ Contributions, feature requests, and bug reports are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) to get started.
105
+
106
+ This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,125 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const { parseArgs } = require('util');
6
+ const { spawn, execFileSync } = require('child_process');
7
+ const express = require('express');
8
+ const pkg = require('../package.json');
9
+
10
+ function printHelp() {
11
+ console.log(`
12
+ podmanager v${pkg.version} - ${pkg.description}
13
+
14
+ Usage:
15
+ podmanager [options]
16
+
17
+ Options:
18
+ -p, --port <port> Port to listen on (default: 3030 or $PORT)
19
+ -H, --host <host> Host to bind to (default: 0.0.0.0 or $HOST)
20
+ -o, --open Open Podmanager in the default browser
21
+ -v, --version Show version number
22
+ -h, --help Show this help message
23
+ `);
24
+ }
25
+
26
+ function parsePort(rawPort) {
27
+ if (rawPort === undefined) return undefined;
28
+
29
+ const port = Number(rawPort);
30
+ if (!Number.isInteger(port) || port < 0 || port > 65535) {
31
+ console.error(`❌ Invalid port: ${rawPort}`);
32
+ process.exit(1);
33
+ }
34
+ return port;
35
+ }
36
+
37
+ function resolveRuntimePaths() {
38
+ const packagedSrcDir = path.resolve(__dirname, '../src');
39
+ const isPackaged = fs.existsSync(path.join(packagedSrcDir, 'index.js'));
40
+
41
+ return {
42
+ srcDir: isPackaged ? packagedSrcDir : path.resolve(__dirname, '../../api/src'),
43
+ uiDir: isPackaged ? path.resolve(__dirname, '../public') : path.resolve(__dirname, '../../ui/public'),
44
+ };
45
+ }
46
+
47
+ function ensurePodmanAvailable() {
48
+ try {
49
+ execFileSync('podman', ['--version'], { stdio: 'ignore' });
50
+ } catch {
51
+ console.error('❌ Podman CLI not found in PATH. Please install Podman first: https://podman.io/docs/installation');
52
+ process.exit(1);
53
+ }
54
+ }
55
+
56
+ function openBrowserDetached(url) {
57
+ const [command, args] =
58
+ process.platform === 'darwin'
59
+ ? ['open', [url]]
60
+ : process.platform === 'win32'
61
+ ? ['cmd', ['/c', 'start', '', url]]
62
+ : ['xdg-open', [url]];
63
+
64
+ const child = spawn(command, args, { stdio: 'ignore', detached: true });
65
+ child.on('error', () => {});
66
+ child.unref();
67
+ }
68
+
69
+ function createHostApp(srcDir, uiDir) {
70
+ const { createApp } = require(path.join(srcDir, 'app'));
71
+ const hostApp = express();
72
+
73
+ hostApp.use(express.static(uiDir));
74
+ hostApp.use(createApp());
75
+ hostApp.use((req, res, next) => {
76
+ if (req.method === 'GET' && !req.path.startsWith('/api')) {
77
+ return res.sendFile(path.join(uiDir, 'index.html'));
78
+ }
79
+ next();
80
+ });
81
+
82
+ return hostApp;
83
+ }
84
+
85
+ function main() {
86
+ const { values } = parseArgs({
87
+ options: {
88
+ port: { type: 'string', short: 'p' },
89
+ host: { type: 'string', short: 'H' },
90
+ open: { type: 'boolean', short: 'o', default: false },
91
+ version: { type: 'boolean', short: 'v', default: false },
92
+ help: { type: 'boolean', short: 'h', default: false },
93
+ },
94
+ strict: true,
95
+ });
96
+
97
+ if (values.help) {
98
+ printHelp();
99
+ process.exit(0);
100
+ }
101
+
102
+ if (values.version) {
103
+ console.log(pkg.version);
104
+ process.exit(0);
105
+ }
106
+
107
+ const port = parsePort(values.port);
108
+ ensurePodmanAvailable();
109
+
110
+ const { srcDir, uiDir } = resolveRuntimePaths();
111
+ const { startServer } = require(path.join(srcDir, 'index'));
112
+
113
+ startServer({
114
+ port,
115
+ host: values.host,
116
+ app: createHostApp(srcDir, uiDir),
117
+ onReady: ({ url }) => {
118
+ if (values.open) {
119
+ openBrowserDetached(url);
120
+ }
121
+ },
122
+ });
123
+ }
124
+
125
+ main();
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "podmanager",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "description": "The lightweight, native, and modern web based interface for Podman environments",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/rgdlr/podmanager#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/rgdlr/podmanager.git",
10
+ "directory": "apps/podmanager"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/rgdlr/podmanager/issues"
14
+ },
15
+ "bin": {
16
+ "podmanager": "bin/podmanager.js"
17
+ },
18
+ "files": [
19
+ "bin/",
20
+ "src/",
21
+ "public/",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "scripts": {
26
+ "prepublishOnly": "npm --prefix ../.. test",
27
+ "prepack": "node scripts/prepare.js",
28
+ "postpack": "node scripts/clean.js",
29
+ "start": "node bin/podmanager.js"
30
+ },
31
+ "dependencies": {
32
+ "express": "^5.3.0"
33
+ },
34
+ "engines": {
35
+ "node": ">=20.0.0"
36
+ },
37
+ "keywords": [
38
+ "podmanager",
39
+ "podman",
40
+ "web-ui",
41
+ "containers",
42
+ "pods",
43
+ "cli"
44
+ ]
45
+ }