← All projects

Monarch

Monarch is a complete Linux virtualization & server management stack:

  • Monarch.linux — Arch/CachyOS generic x86-64 KVM host distribution, live ISO builder, browser-based installer, first-boot provisioning, and dm-cache SMART guard.
  • Monarch.panel — Nuxt 4 + Nitro + SQLite control plane for managing nodes, libvirt/QEMU VMs, noVNC/serial/PTY consoles, storage, networking, logs, alerts, and mobile pairing.
  • Monarch.daemon — .NET 10 root node agent connecting outbound over WSS /ws/daemon with ECDSA P-256 challenge-response auth and TLS certificate pinning.
  • Monarch.android — Kotlin + Jetpack Compose Android app for QR-paired monitoring, background alerts, and VM power control.
  • Monarch.graph — Persistent graphify knowledge graph mapping every subproject, its functions/modules, and the cross-project connections between them.

Quick dev environment setup

Run this one-liner inside an empty directory (or existing workspace directory) to clone https://code.weexnes.dev/monarch.git, all sub-repositories, Monarch.graph, and the graphify-out symlink:

curl -fsSL "https://code.weexnes.dev/monarch/~files/main/setup.sh?raw=true" | bash

To also install Node and .NET dependencies (Monarch.panel, Monarch.linux/installer, Monarch.daemon):

curl -fsSL "https://code.weexnes.dev/monarch/~files/main/setup.sh?raw=true" | bash -s -- --deps

Workspace layout

.
├── AGENTS.md           # Cross-project instructions & rules for AI coding agents
├── CLAUDE.md           # Claude Code entrypoint (points to AGENTS.md & Monarch.graph)
├── README.md
├── setup.sh            # Workspace bootstrap script
├── .gitignore
├── .graphifyignore
├── graphify-out -> Monarch.graph
├── Monarch.linux/      # https://code.weexnes.dev/monarch/linux.git
├── Monarch.panel/      # https://code.weexnes.dev/monarch/panel.git
├── Monarch.daemon/     # https://code.weexnes.dev/monarch/daemon.git
├── Monarch.android/    # https://code.weexnes.dev/monarch/android.git
└── Monarch.graph/      # https://code.weexnes.dev/monarch/graph

Using the knowledge graph

With graphifyy installed (pipx install graphifyy or uv tool install graphifyy):

graphify query "daemon auth websocket tunnel"
graphify path "MonarchApi" "Libvirt" --undirected
graphify explain "planStorage()"
graphify update .

See AGENTS.md for the full architecture map and per-project development/testing workflows.