@blckrose08/rosvex 0.0.0-stage โ 0.1.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.
- package/LICENSE +21 -0
- package/README.md +85 -2
- package/assets/banner.svg +95 -0
- package/bin/rosvex +0 -0
- package/bin/rosvexd +0 -0
- package/index.js +22 -0
- package/package.json +51 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Blckrose
|
|
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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./assets/banner.svg" alt="ROSVEX Banner" width="100%" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
# ROSVEX
|
|
6
|
+
|
|
7
|
+
> **Control Every Process. Own Your Infrastructure.**
|
|
8
|
+
> High-performance, secure, open-source Linux process supervisor built entirely with **Rust** and powered by **RoseDB**.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Key Features
|
|
13
|
+
|
|
14
|
+
- ๐ **100% Native Rust & RoseDB**: Completely independent of Node.js, Python, or external database servers. The daemon requires merely **~5โ15 MB RSS** of memory.
|
|
15
|
+
- โก **Minimal Resource Footprint**: Engineered with zero garbage collection overhead.
|
|
16
|
+
- ๐ก๏ธ **Defence-in-Depth Linux Security**:
|
|
17
|
+
- `PR_SET_NO_NEW_PRIVS` pre-exec sandboxing prevents privilege escalation via SUID/SGID binaries.
|
|
18
|
+
- Verifies IPC caller credentials at the Linux kernel level using `SO_PEERCRED` (UID, GID, and PID validation).
|
|
19
|
+
- Direct executable invocation (`execve`) with separated arguments โ never delegates through shell interpreters (`sh -c` or `bash -c`), neutralising shell injection vectors.
|
|
20
|
+
- Automatic environment variable sanitisation to prevent daemon secrets from leaking to child processes.
|
|
21
|
+
- File-system access hardened with path traversal and canonicalisation checks.
|
|
22
|
+
- ๐ **Runtime-Agnostic Process Supervision**: First-class support for **Bun**, **Node.js**, **Deno**, **Python**, **Go**, **Rust**, Shell scripts, and arbitrary compiled ELF binaries.
|
|
23
|
+
- ๐ **Asynchronous Real-Time Monitoring**: Non-blocking CPU utilisation and RSS memory tracking sampled via Linux interfaces.
|
|
24
|
+
- ๐ฆ **Embedded RoseDB Persistence**: Persistent state and audit events backed by an embedded RoseDB B+Tree and Write-Ahead Log (WAL) engine with strict POSIX permissions (`0700` directory, `0600` files).
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
### Via npm / Bun / pnpm
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Global installation via npm
|
|
34
|
+
npm install -g rosvex
|
|
35
|
+
|
|
36
|
+
# Or with Bun
|
|
37
|
+
bun add -g rosvex
|
|
38
|
+
|
|
39
|
+
# Or run directly without installation
|
|
40
|
+
npx rosvex --help
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Basic Commands
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Start an application with Bun
|
|
49
|
+
rosvex start bun --name api -- index.ts
|
|
50
|
+
|
|
51
|
+
# Start a Node.js process
|
|
52
|
+
rosvex start node --name worker -- worker.js
|
|
53
|
+
|
|
54
|
+
# Start compiled binaries or scripts
|
|
55
|
+
rosvex start ./server --name backend
|
|
56
|
+
rosvex start python3 --name bot -- bot.py
|
|
57
|
+
|
|
58
|
+
# List active processes (Clean, borderless layout)
|
|
59
|
+
rosvex list
|
|
60
|
+
|
|
61
|
+
# Inspect process status by Name or numeric ID
|
|
62
|
+
rosvex status api
|
|
63
|
+
rosvex status 1
|
|
64
|
+
|
|
65
|
+
# View realtime per-process stdout & stderr logs
|
|
66
|
+
rosvex logs api --lines 50
|
|
67
|
+
rosvex logs 1
|
|
68
|
+
|
|
69
|
+
# Stop / Restart / Delete processes
|
|
70
|
+
rosvex restart 1
|
|
71
|
+
rosvex stop 1
|
|
72
|
+
rosvex delete 1
|
|
73
|
+
|
|
74
|
+
# Persistent configuration management
|
|
75
|
+
rosvex save # Save current state to RoseDB
|
|
76
|
+
rosvex resurrect # Restore saved processes after system reboot
|
|
77
|
+
|
|
78
|
+
# Verify system security & Linux kernel capabilities
|
|
79
|
+
rosvex doctor
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Licence
|
|
85
|
+
|
|
86
|
+
Licensed under the **MIT Licence**.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 380" width="100%" height="100%">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4
|
+
<stop offset="0%" stop-color="#0a0f1d"/>
|
|
5
|
+
<stop offset="50%" stop-color="#0f172a"/>
|
|
6
|
+
<stop offset="100%" stop-color="#020617"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
<linearGradient id="roseGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
9
|
+
<stop offset="0%" stop-color="#fb7185"/>
|
|
10
|
+
<stop offset="50%" stop-color="#f43f5e"/>
|
|
11
|
+
<stop offset="100%" stop-color="#e11d48"/>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<linearGradient id="cyanGrad" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
14
|
+
<stop offset="0%" stop-color="#38bdf8"/>
|
|
15
|
+
<stop offset="100%" stop-color="#818cf8"/>
|
|
16
|
+
</linearGradient>
|
|
17
|
+
<linearGradient id="glowGrad" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
18
|
+
<stop offset="0%" stop-color="#f43f5e" stop-opacity="0.3"/>
|
|
19
|
+
<stop offset="100%" stop-color="#f43f5e" stop-opacity="0"/>
|
|
20
|
+
</linearGradient>
|
|
21
|
+
<filter id="glow" x="-20%" y="-20%" width="140%" height="140%">
|
|
22
|
+
<feGaussianBlur stdDeviation="8" result="blur"/>
|
|
23
|
+
<feComposite in="SourceGraphic" in2="blur" operator="over"/>
|
|
24
|
+
</filter>
|
|
25
|
+
</defs>
|
|
26
|
+
|
|
27
|
+
<rect width="900" height="380" rx="16" fill="url(#bg)" stroke="#1e293b" stroke-width="2"/>
|
|
28
|
+
|
|
29
|
+
<g opacity="0.08" stroke="#94a3b8" stroke-width="1">
|
|
30
|
+
<path d="M 0 50 L 900 50 M 0 100 L 900 100 M 0 150 L 900 150 M 0 200 L 900 200 M 0 250 L 900 250 M 0 300 L 900 300 M 0 350 L 900 350" />
|
|
31
|
+
<path d="M 100 0 L 100 380 M 200 0 L 200 380 M 300 0 L 300 380 M 400 0 L 400 380 M 500 0 L 500 380 M 600 0 L 600 380 M 700 0 L 700 380 M 800 0 L 800 380" />
|
|
32
|
+
</g>
|
|
33
|
+
|
|
34
|
+
<circle cx="110" cy="110" r="70" fill="url(#glowGrad)" filter="url(#glow)"/>
|
|
35
|
+
|
|
36
|
+
<g transform="translate(60, 60)">
|
|
37
|
+
<polygon points="50,5 95,30 95,80 50,105 5,80 5,30" fill="#0f172a" stroke="url(#roseGrad)" stroke-width="3.5" filter="url(#glow)"/>
|
|
38
|
+
<path d="M 33 32 L 53 32 C 63 32 68 37 68 44 C 68 51 63 56 53 56 L 43 56 L 43 78 M 43 56 L 63 78" fill="none" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
39
|
+
<circle cx="50" cy="18" r="3" fill="#38bdf8"/>
|
|
40
|
+
<circle cx="85" cy="74" r="3" fill="#f43f5e"/>
|
|
41
|
+
</g>
|
|
42
|
+
|
|
43
|
+
<text x="180" y="105" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="52" font-weight="900" fill="#ffffff" letter-spacing="3">ROSVEX</text>
|
|
44
|
+
<text x="430" y="105" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="20" font-weight="700" fill="#38bdf8" letter-spacing="1">v0.1.0</text>
|
|
45
|
+
|
|
46
|
+
<text x="182" y="138" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="20" font-weight="600" fill="#cbd5e1" letter-spacing="0.5">Native Linux Process Manager</text>
|
|
47
|
+
|
|
48
|
+
<text x="182" y="168" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="14" font-style="italic" font-weight="400" fill="#94a3b8">"Control Every Process. Own Your Infrastructure."</text>
|
|
49
|
+
|
|
50
|
+
<g transform="translate(60, 200)">
|
|
51
|
+
<g transform="translate(0, 0)">
|
|
52
|
+
<rect width="130" height="28" rx="14" fill="#1e293b" stroke="#334155" stroke-width="1"/>
|
|
53
|
+
<circle cx="16" cy="14" r="5" fill="#f97316"/>
|
|
54
|
+
<text x="28" y="19" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="12" font-weight="600" fill="#e2e8f0">100% Rust</text>
|
|
55
|
+
</g>
|
|
56
|
+
|
|
57
|
+
<g transform="translate(142, 0)">
|
|
58
|
+
<rect width="145" height="28" rx="14" fill="#1e293b" stroke="#334155" stroke-width="1"/>
|
|
59
|
+
<circle cx="16" cy="14" r="5" fill="#f43f5e"/>
|
|
60
|
+
<text x="28" y="19" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="12" font-weight="600" fill="#e2e8f0">RoseDB Engine</text>
|
|
61
|
+
</g>
|
|
62
|
+
|
|
63
|
+
<g transform="translate(299, 0)">
|
|
64
|
+
<rect width="150" height="28" rx="14" fill="#1e293b" stroke="#334155" stroke-width="1"/>
|
|
65
|
+
<circle cx="16" cy="14" r="5" fill="#10b981"/>
|
|
66
|
+
<text x="28" y="19" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="12" font-weight="600" fill="#e2e8f0">Zero Dependency</text>
|
|
67
|
+
</g>
|
|
68
|
+
|
|
69
|
+
<g transform="translate(461, 0)">
|
|
70
|
+
<rect width="140" height="28" rx="14" fill="#1e293b" stroke="#334155" stroke-width="1"/>
|
|
71
|
+
<circle cx="16" cy="14" r="5" fill="#38bdf8"/>
|
|
72
|
+
<text x="28" y="19" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="12" font-weight="600" fill="#e2e8f0">Linux Sandbox</text>
|
|
73
|
+
</g>
|
|
74
|
+
|
|
75
|
+
<g transform="translate(613, 0)">
|
|
76
|
+
<rect width="165" height="28" rx="14" fill="#1e293b" stroke="#334155" stroke-width="1"/>
|
|
77
|
+
<circle cx="16" cy="14" r="5" fill="#a855f7"/>
|
|
78
|
+
<text x="28" y="19" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="12" font-weight="600" fill="#e2e8f0">Bun ยท Node ยท Go ยท Py</text>
|
|
79
|
+
</g>
|
|
80
|
+
</g>
|
|
81
|
+
|
|
82
|
+
<g transform="translate(60, 245)">
|
|
83
|
+
<rect width="780" height="105" rx="10" fill="#030712" stroke="#1e293b" stroke-width="1.5"/>
|
|
84
|
+
|
|
85
|
+
<circle cx="20" cy="18" r="4.5" fill="#ef4444"/>
|
|
86
|
+
<circle cx="36" cy="18" r="4.5" fill="#f59e0b"/>
|
|
87
|
+
<circle cx="52" cy="18" r="4.5" fill="#10b981"/>
|
|
88
|
+
<text x="75" y="22" font-family="'JetBrains Mono', 'Fira Code', Menlo, monospace" font-size="11" fill="#64748b">bash - rosvex</text>
|
|
89
|
+
|
|
90
|
+
<text x="20" y="52" font-family="'JetBrains Mono', 'Fira Code', Menlo, monospace" font-size="12" fill="#38bdf8">$ rosvex start bun --name api -- index.ts</text>
|
|
91
|
+
<text x="20" y="74" font-family="'JetBrains Mono', 'Fira Code', Menlo, monospace" font-size="12" fill="#10b981">โ Process 'api' state is ONLINE (PID: 2434865, Memory: 15.8 MB)</text>
|
|
92
|
+
<text x="20" y="96" font-family="'JetBrains Mono', 'Fira Code', Menlo, monospace" font-size="12" fill="#94a3b8"> ID Name PID Status CPU Memory Uptime Restarts</text>
|
|
93
|
+
<text x="20" y="116" font-family="'JetBrains Mono', 'Fira Code', Menlo, monospace" font-size="12" fill="#e2e8f0"> 1 api 2434865 ๐ข ONLINE 0.1% 15.8 MB 1m 20s 0</text>
|
|
94
|
+
</g>
|
|
95
|
+
</svg>
|
package/bin/rosvex
ADDED
|
Binary file
|
package/bin/rosvexd
ADDED
|
Binary file
|
package/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
import { existsSync, chmodSync } from "node:fs";
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const isDaemon = process.argv[1]?.endsWith("rosvexd");
|
|
9
|
+
const binPath = join(__dirname, "bin", isDaemon ? "rosvexd" : "rosvex");
|
|
10
|
+
|
|
11
|
+
if (existsSync(binPath)) {
|
|
12
|
+
try {
|
|
13
|
+
chmodSync(binPath, 0o755);
|
|
14
|
+
} catch {}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const proc = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
18
|
+
proc.on("exit", (code) => process.exit(code ?? 0));
|
|
19
|
+
proc.on("error", (err) => {
|
|
20
|
+
console.error("Failed to execute ROSVEX native binary:", err.message);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blckrose08/rosvex",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Native Linux Process Manager built entirely with Rust & RoseDB. Control Every Process. Own Your Infrastructure.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"rosvex": "./index.js",
|
|
9
|
+
"rosevex": "./index.js",
|
|
10
|
+
"rosvexd": "./index.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"index.js",
|
|
15
|
+
"assets",
|
|
16
|
+
"README.md",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
19
|
+
"os": [
|
|
20
|
+
"linux"
|
|
21
|
+
],
|
|
22
|
+
"cpu": [
|
|
23
|
+
"x64",
|
|
24
|
+
"arm64"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "node index.js --help"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"rosvex",
|
|
31
|
+
"process-manager",
|
|
32
|
+
"supervisor",
|
|
33
|
+
"pm2",
|
|
34
|
+
"rust",
|
|
35
|
+
"rosedb",
|
|
36
|
+
"daemon",
|
|
37
|
+
"linux",
|
|
38
|
+
"systemd"
|
|
39
|
+
],
|
|
40
|
+
"author": "Blckrose",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/Blckrose08/rosvex.git"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/Blckrose08/rosvex/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/Blckrose08/rosvex#readme",
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
}
|
|
53
|
+
}
|