2026-03-18 19:24:52 +00:00
|
|
|
# Archipelago Web UI
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
Vue 3 + TypeScript + Vite + Tailwind CSS + Pinia
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
The web interface for Archipelago — a self-sovereign Bitcoin Node OS.
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Quick Start
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
```bash
|
|
|
|
|
cd neode-ui
|
|
|
|
|
npm install
|
|
|
|
|
npm start
|
2026-01-24 22:59:20 +00:00
|
|
|
```
|
|
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
Visit **http://localhost:8100** — login with password: `password123`
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
This starts:
|
|
|
|
|
- Mock backend on port 5959 (no Docker required)
|
|
|
|
|
- Vite dev server on port 8100 with HMR
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
Stop with `npm stop`.
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Architecture
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
```
|
|
|
|
|
neode-ui/
|
|
|
|
|
├── src/
|
|
|
|
|
│ ├── api/ # RPC client (rpc-client.ts), WebSocket, container client
|
|
|
|
|
│ ├── stores/ # Pinia stores (app, container, appLauncher, monitoring)
|
|
|
|
|
│ ├── views/ # Page components (Dashboard, Marketplace, Settings, etc.)
|
|
|
|
|
│ ├── components/ # Reusable components (SplashScreen, AppSession, etc.)
|
|
|
|
|
│ ├── router/ # Vue Router configuration
|
|
|
|
|
│ ├── types/ # TypeScript type definitions
|
|
|
|
|
│ └── style.css # Global styles + Tailwind utilities
|
|
|
|
|
├── public/assets/ # Static assets (images, fonts, app icons, audio)
|
|
|
|
|
├── mock-backend.js # Mock backend server (simulates Rust backend)
|
|
|
|
|
├── docker/ # Docker configs (nginx, entrypoint)
|
|
|
|
|
└── vite.config.ts # Vite config with backend proxy
|
2026-01-24 22:59:20 +00:00
|
|
|
```
|
|
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Dev Modes
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
The mock backend supports multiple startup modes via `VITE_DEV_MODE`:
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
| Mode | Command | Behavior |
|
|
|
|
|
|------|---------|----------|
|
|
|
|
|
| **default** | `npm start` | Fully set up, login screen |
|
|
|
|
|
| **existing** | `VITE_DEV_MODE=existing npm run dev:mock` | Same as default |
|
|
|
|
|
| **setup** | `VITE_DEV_MODE=setup npm run dev:mock` | First-time password setup flow |
|
|
|
|
|
| **onboarding** | `VITE_DEV_MODE=onboarding npm run dev:mock` | Post-setup onboarding flow |
|
|
|
|
|
| **boot** | `npm run dev:boot` | 25s simulated boot sequence |
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Mock Backend
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
The mock backend (`mock-backend.js`) simulates the full Rust backend for local development:
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
**Pre-installed apps** (always visible in My Apps):
|
2026-06-12 03:00:15 -04:00
|
|
|
- Bitcoin Core, LND, Electrs, Mempool, FileBrowser, LoraBell, Fedimint
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
**Marketplace**: 30+ curated apps with Docker images, install/uninstall simulation
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
**Features simulated**:
|
|
|
|
|
- Authentication (login, password change, TOTP 2FA)
|
|
|
|
|
- System metrics (CPU, memory, disk — randomized for realism)
|
|
|
|
|
- Node identity (DID, Nostr pubkey, Tor address)
|
|
|
|
|
- Federation (3 mock nodes with apps, metrics, trust levels)
|
|
|
|
|
- Mesh networking (4 LoRa peers, encrypted messaging, invoices)
|
|
|
|
|
- Peer-to-peer messaging
|
|
|
|
|
- FileBrowser API (mock file system with Music, Documents, Photos, Videos)
|
|
|
|
|
- DWN sync status
|
|
|
|
|
- Transport layer (mesh/LAN/Tor routing)
|
|
|
|
|
- Notifications (5 realistic entries)
|
|
|
|
|
- Claude AI chat proxy (requires `ANTHROPIC_API_KEY`)
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
**Container runtime**: If Docker/Podman is available, the mock backend will run real containers for installed apps. Otherwise, it simulates them.
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Demo Deployment (Portainer)
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
Deploy the demo via Docker Compose for showcasing:
|
2026-01-24 22:59:20 +00:00
|
|
|
|
|
|
|
|
```bash
|
2026-03-18 19:24:52 +00:00
|
|
|
docker compose -f docker-compose.demo.yml build
|
|
|
|
|
docker compose -f docker-compose.demo.yml up -d
|
2026-01-24 22:59:20 +00:00
|
|
|
```
|
|
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
Or deploy through **Portainer Stacks**:
|
|
|
|
|
1. Stacks > Add stack > name: `archy-demo`
|
|
|
|
|
2. Web editor: paste `docker-compose.demo.yml` contents
|
|
|
|
|
3. Add environment variable: `ANTHROPIC_API_KEY` (for Claude chat)
|
|
|
|
|
4. Deploy
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
Access at **http://your-host:4848** — password: `password123`
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Development Commands
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
```bash
|
|
|
|
|
npm start # Start mock backend + Vite (recommended)
|
|
|
|
|
npm stop # Stop all servers
|
|
|
|
|
npm run dev:mock # Same as start, without port cleanup
|
|
|
|
|
npm run dev:boot # Boot mode (simulated startup delay)
|
|
|
|
|
npm run backend:mock # Mock backend only
|
|
|
|
|
npm run dev # Vite only (needs backend running separately)
|
|
|
|
|
npm run dev:real # Vite with real Rust backend
|
|
|
|
|
|
|
|
|
|
npm run build # Production build (outputs to ../web/dist/neode-ui/)
|
|
|
|
|
npm run build:docker # Build for Docker (no type checking)
|
|
|
|
|
npm run type-check # TypeScript type checking
|
|
|
|
|
npm test # Run tests
|
|
|
|
|
```
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Design System
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
### Glass Classes
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
| Class | Use |
|
|
|
|
|
|-------|-----|
|
|
|
|
|
| `.glass-card` | Content containers, modals, panels |
|
|
|
|
|
| `.glass-button` | ALL buttons (primary and secondary) |
|
|
|
|
|
| `.path-option-card` | Interactive cards with hover lift |
|
|
|
|
|
| `.info-card` | Status badges, metric displays |
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
### Tokens
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
- **Font**: Avenir Next (primary), Montserrat (`font-archipelago`)
|
|
|
|
|
- **Glass**: `bg: rgba(0,0,0,0.60)`, `blur: 24px`, `border: rgba(255,255,255,0.22)`
|
|
|
|
|
- **Accent**: `#fb923c` (Bitcoin orange), `#4ade80` (green), `#ef4444` (red)
|
|
|
|
|
- **Text**: `rgba(255,255,255,0.9)` primary, `rgba(255,255,255,0.6)` muted
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
### Rules
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
- Global CSS classes in `style.css` only — never inline Tailwind in components
|
|
|
|
|
- `.gradient-button` is **banned** — use `.glass-button`
|
|
|
|
|
- All components use `<script setup lang="ts">`
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## API
|
2026-01-24 22:59:20 +00:00
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
|
import { rpcClient } from '@/api/rpc-client'
|
|
|
|
|
|
|
|
|
|
await rpcClient.login('password')
|
|
|
|
|
await rpcClient.startPackage('bitcoin')
|
|
|
|
|
const metrics = await rpcClient.getMetrics()
|
|
|
|
|
```
|
|
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
State management via Pinia stores. WebSocket patches applied automatically.
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## Build Output
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
- **Dev build**: `../web/dist/neode-ui/`
|
|
|
|
|
- **Docker build**: `dist/` (deployed to nginx)
|
|
|
|
|
- **Production deploy**: via `scripts/deploy-to-target.sh --live`
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
## License
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-18 19:24:52 +00:00
|
|
|
MIT
|