buildwithnexus 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 +73 -0
- package/dist/bin.js +1551 -0
- package/dist/nexus-release.tar.gz +0 -0
- package/package.json +63 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Garrett Eaglin
|
|
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
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# buildwithnexus
|
|
2
|
+
|
|
3
|
+
Auto-scaffold and launch a fully autonomous NEXUS runtime with mandatory triple-nested VM isolation.
|
|
4
|
+
|
|
5
|
+
## What It Does
|
|
6
|
+
|
|
7
|
+
One command bootstraps a complete NEXUS instance:
|
|
8
|
+
|
|
9
|
+
- **QEMU VM** running Ubuntu 24.04 (auto-installed if missing)
|
|
10
|
+
- **Docker** inside the VM for isolated CLI sessions
|
|
11
|
+
- **KVM** inside the VM for inner virtual machines (triple nesting)
|
|
12
|
+
- **NEXUS server** running on port 4200 with full agent orchestration
|
|
13
|
+
- **Cloudflare tunnel** (optional) for remote access
|
|
14
|
+
|
|
15
|
+
All isolation is mandatory — NEXUS refuses to start unless it detects proper nesting (VM + Docker + KVM).
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx buildwithnexus init
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
This walks you through API key setup, VM resource allocation, and boots a fully provisioned NEXUS instance in ~10-25 minutes (first run). Subsequent starts take ~30 seconds.
|
|
24
|
+
|
|
25
|
+
## Requirements
|
|
26
|
+
|
|
27
|
+
- **Node.js** >= 18
|
|
28
|
+
- **macOS** (ARM or Intel) or **Linux** (x64)
|
|
29
|
+
- ~4GB RAM and ~20GB disk available for the VM
|
|
30
|
+
- An Anthropic API key
|
|
31
|
+
|
|
32
|
+
QEMU is installed automatically if not present (`brew install qemu` on macOS, `apt install qemu-system` on Linux).
|
|
33
|
+
|
|
34
|
+
## Commands
|
|
35
|
+
|
|
36
|
+
| Command | Description |
|
|
37
|
+
|---------|-------------|
|
|
38
|
+
| `buildwithnexus init` | Full scaffolding + VM boot (10 phases) |
|
|
39
|
+
| `buildwithnexus start` | Start an existing VM + server |
|
|
40
|
+
| `buildwithnexus stop` | Graceful shutdown |
|
|
41
|
+
| `buildwithnexus status` | VM / Docker / server / tunnel health |
|
|
42
|
+
| `buildwithnexus doctor` | Diagnose QEMU, ports, SSH, disk |
|
|
43
|
+
| `buildwithnexus logs [-f]` | Stream server logs |
|
|
44
|
+
| `buildwithnexus update` | Upload latest release, rebuild, restart |
|
|
45
|
+
| `buildwithnexus destroy [--force]` | Remove VM + all data |
|
|
46
|
+
| `buildwithnexus keys set\|list` | Manage API keys |
|
|
47
|
+
| `buildwithnexus ssh` | Direct SSH into the VM |
|
|
48
|
+
|
|
49
|
+
## Architecture
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
Host (your machine)
|
|
53
|
+
└─ QEMU VM (Ubuntu 24.04)
|
|
54
|
+
├─ Docker (nexus-cli-sandbox)
|
|
55
|
+
├─ KVM / libvirt (inner VMs)
|
|
56
|
+
└─ NEXUS server (:4200)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Port forwarding: SSH `localhost:2222`, NEXUS `localhost:4200`, HTTPS `localhost:8443`.
|
|
60
|
+
|
|
61
|
+
## Security
|
|
62
|
+
|
|
63
|
+
- SSH key-only auth (ed25519, no passwords)
|
|
64
|
+
- UFW firewall (deny all, allow 22/80/443/4200)
|
|
65
|
+
- auditd enabled (SOC 2 compliance)
|
|
66
|
+
- Docker hardened (no-new-privileges, log rotation, cap-drop ALL)
|
|
67
|
+
- API keys stored in `~/.buildwithnexus/.env.keys` with `0600` permissions
|
|
68
|
+
- All directories created with `0700` permissions
|
|
69
|
+
- Nesting enforcement guard prevents running outside VM isolation
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT
|