.docs/introduction.md
Docs/introduction.md

Introduction

Monarch is a four-part Linux virtualization and host management stack. Each piece has a narrow job and works standalone or together:

Component Stack Role Repository
Monarch.linux Arch + CachyOS generic x86-64, Nuxt 4 Live ISO, browser-based installer, firstboot provisioning, dm-cache SMART guard monarch/linux
Monarch.panel Nuxt 4, Nitro, node:sqlite Single-admin web control plane for VMs, storage, networking, logs, Caddy, certs, and alerts monarch/panel
Monarch.daemon .NET 10 (C#) Root agent running on each node; connects outbound over WSS /ws/daemon monarch/daemon
Monarch.android Kotlin, Jetpack Compose Phone companion with QR pairing, cert pinning, VM power control, and alert polling monarch/android

Design principles

  • No inbound ports or SSH keys on managed nodes. monarch-daemon dials out to the panel over WSS /ws/daemon using an ECDSA P-256 key pair and SHA-256 certificate pinning. If a host sits behind NAT or CGNAT, it still connects.
  • Generic x86-64 compatibility. Monarch.linux uses Arch core/extra plus the CachyOS generic x86-64 repository — no x86-64-v3 or v4 packages — so older server CPUs without AVX2 (such as Xeon E5-2680 v2) run cleanly.
  • No shell interpolation for system actions. Both the web installer (runner.ts) and monarch-daemon execute external tools using argv arrays (shell: false), passing passwords and secrets over stdin or 0600 files.
  • Standard Arch maintenance. Once installed, a Monarch host updates with yay -Syu. /etc/os-release (ID=monarch, ID_LIKE=arch) is protected via NoUpgrade in pacman.conf.

Quick start paths

  1. Bare-metal KVM host: Boot the Monarch.linux ISO via USB or IPMI/iDRAC, open the printed LAN URL, verify the certificate fingerprint, enter the one-time access code, and run the wizard. See OS & Live Installer.
  2. Existing Linux server: Run Monarch.panel on a control host (yay -S monarch-panel or from source on port 4382), then install monarch-daemon on any Linux box you want to manage. See Panel Setup and Node Agent (Daemon).
  3. Full development workspace: Clone all repositories and the shared Monarch.graph knowledge graph in one command:
curl -fsSL "https://code.weexnes.dev/monarch/~files/main/setup.sh?raw=true" | bash

Pass --deps to also install npm dependencies (Monarch.panel, Monarch.linux/installer) and restore .NET packages (Monarch.daemon).