- app-manifest-spec.md: full rewrite from the real schema in core/container/src/manifest.rs — it was 5 months stale and missing the entire modern feature set (build, network/network_aliases, derived_env, secret_env, generated_secrets/certs, data_uid, files, interfaces, hooks, extensions flatten) and documented wrong network_policy values. - app-developer-guide.md: add generated_secrets/generated_certs/ network_aliases/hooks to the field table. - APP-PACKAGING-MIGRATION-PLAN.md: phase status stamped (1-3 done, 5 mostly, 4+6 open); deleted meshtastic app removed from regression-proof lists. - registry-manifest-design.md: status design → implemented (phases 1-3), stale manifest_dir:Option line fixed. - marketplace-protocol.md: reframed proposal → as-built (marketplace.rs + RPCs + UI shipped; create-invoice noted; schema disambiguated). - manifest-hooks-design.md: phase 3 (indeedhub) done, phase 4 resolved via orchestrator+generated_secrets instead of hooks. - README/architecture: restore the NIP-07 signer-bridge claim — it is real (neode-ui/public/nostr-provider.js), the earlier audit only grepped Rust. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
203 lines
11 KiB
Markdown
203 lines
11 KiB
Markdown
# Archipelago
|
|
|
|
> Self-Sovereign Bitcoin Node OS
|
|
|
|
**Archipelago** is a bootable personal server OS. Flash it to a USB drive, install on any x86_64 or ARM64 machine, and manage Bitcoin infrastructure, self-hosted apps, mesh communication, and decentralized identity through a glassmorphism web UI.
|
|
|
|
[](https://www.debian.org/)
|
|
[](LICENSE)
|
|
[](https://www.rust-lang.org/)
|
|
[](https://vuejs.org/)
|
|
[]()
|
|
|
|
## Philosophy
|
|
|
|
Archipelago is being built as a **developer-ready app platform**, not a fixed appliance:
|
|
|
|
- **Manifest-driven apps.** Every app is declared in a single `manifest.yml` — image, ports, volumes, secrets, health checks, security policy. The orchestrator owns the entire lifecycle; there is no per-app installer code and no host-level provisioning.
|
|
- **Signed distribution.** App manifests ship inside an Ed25519-signed catalog verified against a pinned release-root key, not as loose files on disk. OTA release manifests are signed the same way.
|
|
- **Decentralized marketplace.** Third-party developers publish apps via Nostr-based discovery (NIP-78) with DID-signed manifests and federation-weighted trust scoring — no gatekept central store.
|
|
- **Rootless and secure by default.** Rootless Podman only. Read-only root, no-new-privileges, capability allow-list, secrets materialised 0600 and never logged. Never rootful, never a Docker socket mount.
|
|
- **100%-uptime-capable.** Every container is a systemd Quadlet unit under `user.slice` that survives backend restarts; a level-triggered reconciler self-heals drift every 30 seconds; migrations never destroy data.
|
|
|
|
## Features
|
|
|
|
### Bitcoin Infrastructure
|
|
- **Bitcoin Core and Bitcoin Knots** full nodes with per-app version pinning and bulletproof version switching, automatic prune/full mode based on disk size
|
|
- **LND** and **Core Lightning** with channel management
|
|
- **ElectrumX** Electrum server for wallet connectivity
|
|
- **BTCPay Server** for accepting Bitcoin payments
|
|
- **Mempool** block explorer and fee estimator
|
|
- **Fedimint** federation guardian, gateway, and client — plus Cashu ecash wallet support
|
|
|
|
### Self-Hosted Apps (50+)
|
|
Storage (FileBrowser, Immich, Nextcloud), Productivity (Vaultwarden), Media (Jellyfin, PhotoPrism, IndeeHub), Search (SearXNG), Network (NetBird, Tailscale), Home (Home Assistant), Nostr (nostr-rs-relay, strfry), Dev/Ops (Gitea, Grafana, Portainer, Uptime Kuma), and more — 27 curated in the store UI, 50+ packaged as manifests.
|
|
|
|
### Mesh Networking (tri-protocol)
|
|
- **Meshtastic**, **MeshCore**, and **Reticulum (RNS/LXMF)** LoRa transports behind one mesh chat UI
|
|
- End-to-end encryption with X3DH key agreement + double-ratchet
|
|
- RNode radio support with an OS-level `archy-rnodeconf` tool; interop verified against Sideband
|
|
- Image/voice attachments, mesh AI assistant (`!ai`), Bitcoin balance relay over mesh
|
|
|
|
### Decentralized Identity
|
|
- Ed25519 node identity with DID Documents (did:key)
|
|
- Multi-identity management (Personal/Business/Anonymous)
|
|
- W3C Verifiable Credentials issuance and verification
|
|
- Nostr integration: NIP-33 node discovery, NIP-44/NIP-04 encryption, NIP-07 signer bridge for iframe apps, relay hosting
|
|
- Decentralized Web Node (DWN) record sync between federated nodes over Tor
|
|
|
|
### Multi-Node Federation
|
|
- Invite-based node joining over Tor hidden services
|
|
- Trust levels (Trusted/Verified/Untrusted) with DID-based auth
|
|
- State sync and app deployment across federated nodes
|
|
- File sharing with access controls (free/peers-only/paid via Lightning, on-chain, or ecash)
|
|
|
|
### System Updates
|
|
- OTA updates from a self-hosted Gitea release server, Ed25519-signature-verified against a pinned release-root key
|
|
- Resumable downloads, automatic pre-update backup, rollback with a post-update self-verify window
|
|
- Manual, scheduled-check, and auto-apply modes (auto-apply refuses unsigned manifests)
|
|
|
|
### Security
|
|
- Argon2id password hashing (transparent upgrade from legacy hashes), ChaCha20-Poly1305 encrypted secrets at rest
|
|
- Rootless Podman: read-only root, cap-drop ALL with a reviewed allow-list, no-new-privileges
|
|
- Signed release manifests and signed app catalog (Ed25519, pinned trust anchor)
|
|
- TOTP two-factor authentication, per-endpoint rate limiting, CSRF protection
|
|
- AppArmor profiles for container confinement; Tor hidden services for inter-node traffic
|
|
- Independent security audit of an early version archived in [`docs/archive/`](docs/archive/security-code-audit-2026-03.md); top findings since remediated
|
|
|
|
## Roadmap
|
|
|
|
**Done**
|
|
- Single-node production gate **green** — install / stop / start / restart / reinstall / reboot-survive / uninstall, 5 consecutive full runs with zero failures on real hardware
|
|
- Quadlet migration validated (all backends as `user.slice` services on the canary node)
|
|
- Release signing ceremony completed — release-root key pinned, catalog and OTA manifests signed
|
|
- Reticulum third mesh transport (real-RF LoRa gates passed), Bitcoin Core/Knots multi-version switching, decentralized marketplace backend, public demo
|
|
|
|
**In progress**
|
|
- Multinode pass: the same production gate across the whole test fleet ([`docs/multinode-testing-plan.md`](docs/multinode-testing-plan.md))
|
|
- Quadlet default flip fleet-wide + container-flapping elimination
|
|
- 1.8.0 release hardening tail ([`docs/1.8.0-RELEASE-HARDENING-PLAN.md`](docs/1.8.0-RELEASE-HARDENING-PLAN.md)): OTA upgrade soak on real hardware, ISO/image hardening (per-device keys, no default creds, signed ISO)
|
|
|
|
**Planned**
|
|
- Developer CLI (`archy app validate/render/install/test`) to open third-party app publishing
|
|
- External marketplace trust UX + publishing tooling ([`docs/marketplace-protocol.md`](docs/marketplace-protocol.md))
|
|
- DHT/P2P distribution of releases and app images ([`docs/dht-distribution-design.md`](docs/dht-distribution-design.md))
|
|
- P2P encrypted voice/video over Tor, dual-ecash (Fedimint + Cashu) phases, paid streaming, hardware signer support
|
|
|
|
The live, priority-ordered task list is [`docs/UNIFIED-TASK-TRACKER.md`](docs/UNIFIED-TASK-TRACKER.md); the full narrative plan is [`docs/PRODUCTION-MASTER-PLAN.md`](docs/PRODUCTION-MASTER-PLAN.md).
|
|
|
|
## Quick Start
|
|
|
|
### Install from ISO
|
|
|
|
1. Build or download the ISO for your architecture (x86_64 or ARM64) — see [`image-recipe/`](image-recipe/)
|
|
2. Flash to USB drive with Balena Etcher or `dd`
|
|
3. Boot from USB on target hardware and follow the automated installer
|
|
4. Access the web UI at `http://<device-ip>`
|
|
5. Set your password and complete the onboarding wizard (seed backup, DID identity)
|
|
|
|
### Supported Hardware
|
|
|
|
| Platform | Examples | Minimum |
|
|
|----------|----------|---------|
|
|
| **x86_64** | Intel NUC, mini PCs, any 64-bit PC | 4GB RAM, 32GB storage |
|
|
| **ARM64** | Raspberry Pi 5, ARM64 SBCs | 4GB RAM, 32GB storage |
|
|
|
|
**Recommended**: 8GB+ RAM, 1TB+ NVMe SSD (for a full Bitcoin node). Optional: an RNode-compatible LoRa radio for mesh networking.
|
|
|
|
## Development
|
|
|
|
### Prerequisites
|
|
- macOS or Linux for frontend development
|
|
- Linux dev server (Debian 13) for backend builds — **never build Rust on macOS for Linux**
|
|
- Node.js 20+, Rust stable toolchain
|
|
|
|
### Frontend Development
|
|
|
|
```bash
|
|
cd neode-ui
|
|
npm install
|
|
npm start # Dev server on http://localhost:8100 (mock backend on :5959)
|
|
npm run type-check # TypeScript validation
|
|
npm run build # Production build → web/dist/neode-ui/
|
|
```
|
|
|
|
### Backend Development
|
|
|
|
```bash
|
|
cd core # Rust workspace root (no Cargo.toml at repo root)
|
|
cargo build
|
|
cargo test
|
|
```
|
|
|
|
### Deploy to a Test Node
|
|
|
|
```bash
|
|
./scripts/deploy-to-target.sh --live # Deploy to primary dev server
|
|
./scripts/deploy-to-target.sh --both # Deploy to both LAN servers
|
|
```
|
|
|
|
### Release (tarball-only)
|
|
|
|
Releases ship as a backend binary and a frontend tarball referenced by
|
|
`releases/manifest.json`, published to the self-hosted Gitea release server.
|
|
|
|
```bash
|
|
./scripts/create-release.sh 1.2.3
|
|
git push origin main --tags
|
|
```
|
|
|
|
## Architecture
|
|
|
|
```
|
|
Debian 13 (Trixie)
|
|
├── Rootless Podman — every app a systemd Quadlet unit under user.slice
|
|
├── Nginx (reverse proxy, security headers, rate limiting)
|
|
├── Rust Backend (JSON-RPC API on 127.0.0.1:5678, ~380 RPC methods)
|
|
│ ├── core/archipelago/ — API, orchestrator + reconciler, mesh, identity,
|
|
│ │ federation, wallet, updates, marketplace
|
|
│ ├── core/container/ — Podman client, manifest schema, Quadlet compiler,
|
|
│ │ health monitor, signed app catalog
|
|
│ ├── core/security/ — AppArmor/seccomp policy, secrets manager
|
|
│ ├── core/openwrt/ — TollGate gateway provisioning (SSH/UCI)
|
|
│ └── core/performance/ — resource limits
|
|
├── Vue 3 Frontend (Composition API + TypeScript strict + Pinia + Tailwind, PWA)
|
|
│ └── Three UI modes (Pro/Easy/Chat) + gamepad navigation + i18n
|
|
├── Reticulum daemon (supervised Python/PyInstaller, one per LoRa radio)
|
|
└── System Tor (hidden services, SOCKS5 proxy)
|
|
```
|
|
|
|
~117,000 lines of Rust | ~69,000 lines of TypeScript/Vue | 51 packaged apps | Android companion app
|
|
|
|
## Documentation
|
|
|
|
| Doc | Purpose |
|
|
|-----|---------|
|
|
| [Architecture](docs/architecture.md) | System design, crate map, data paths |
|
|
| [Developer Guide](docs/developer-guide.md) | Dev setup, workflow, code conventions |
|
|
| [API Reference](docs/api-reference.md) | RPC endpoint reference |
|
|
| [App Developer Guide](docs/app-developer-guide.md) | Building and publishing apps |
|
|
| [App Manifest Spec](docs/app-manifest-spec.md) | The `manifest.yml` schema |
|
|
| [User Walkthrough](docs/user-walkthrough.md) | End-user installation and usage guide |
|
|
| [Troubleshooting](docs/troubleshooting.md) | Diagnostic scenarios and solutions |
|
|
| [Operations Runbook](docs/operations-runbook.md) | Ops commands and emergency recovery |
|
|
| [Production Master Plan](docs/PRODUCTION-MASTER-PLAN.md) | North star and workstream narrative |
|
|
| [Unified Task Tracker](docs/UNIFIED-TASK-TRACKER.md) | Live, priority-ordered open items |
|
|
| [Test Gate](tests/lifecycle/TESTING.md) | Production lifecycle test gate (definition of done) |
|
|
| [Archive](docs/archive/) | Historical audits, session logs, shipped designs |
|
|
|
|
## Contributing
|
|
|
|
1. Fork the repository
|
|
2. Create a feature branch (`feature/description`)
|
|
3. Follow the coding standards in [CONTRIBUTING.md](CONTRIBUTING.md) and [CLAUDE.md](CLAUDE.md)
|
|
4. Submit a pull request
|
|
|
|
## License
|
|
|
|
[MIT License](LICENSE)
|
|
|
|
## Acknowledgments
|
|
|
|
Built with: [Rust](https://www.rust-lang.org/), [Vue.js](https://vuejs.org/), [Podman](https://podman.io/), [Bitcoin Core](https://bitcoin.org/), [LND](https://lightning.engineering/), [Reticulum](https://reticulum.network/), [Debian](https://www.debian.org/)
|