Moul

Web Admin & TUI Consoles

Manage your engine via the rich browser Web Admin at /_moul_/ or the terminal-native Bubble Tea TUI (moul-ctl).

Moul provides two dedicated administrative interfaces to manage and inspect your running moul engine:

  1. Web Admin Console (/_moul_/): Modern responsive browser dashboard embedded directly into moul.
  2. Moul Terminal User Interface (moul-ctl): Fast, keyboard-driven CLI console built with Charm's Bubble Tea.

1. Web Admin Console (/_moul_/)

Accessed at http://localhost:8090/_moul_/ (or your production domain).

Architecture & Capabilities

  • Frontend Stack: Built on Moul UI (@moul-dev/ui), React Aria Components, and StyleX for atomic compile-time CSS-in-JS.
  • Visual Schema Designer: Drag-and-drop field modeling, real-time expression validator, and relationship configuration.
  • Data Browser & Grid: Full-screen paginated record explorer with dynamic filtering, sorting, and inline editing.
  • Live Worker Queue Monitor: Inspect running jobs, retry failed items from DLQ, or discard pending tasks.
  • Telemetry Charts: Interactive request latency, throughput, and error rate graphs.
  • Real-Time Stream Viewer: Server-Sent Events (SSE) live logs viewer with syntax highlighting and auto-follow.
  • Feature Flag Playground: Test gate targeting rules against custom JSON payloads with live reason code breakdowns.
  • Form Divergence Guards: AlertDialog confirmation dialogs protect against unsaved settings loss.

2. Moul TUI Console (moul-ctl)

The TUI provides complete headless server administration directly from your command line.

Launching the TUI

# Launch interactive connection prompt
moul-ctl

On first launch, enter your server URL (http://localhost:8090 or remote URL) and your MOUL_ADMIN_KEY. Credentials are saved securely to ~/.config/moul.json for subsequent runs.

# Connect directly by specifying server and admin key
moul-ctl -server http://localhost:8090 -admin-key test-admin-key-1234
# Launch via moul convenience subcommand
moul ctl

CLI Options

FlagDescriptionExample
-server <url>moul server URL-server https://api.myapp.com
-admin-key <key>Master administrative key-admin-key my-secret-key
update, -u, --updateSelf-update moul-ctl binary to the latest releasemoul-ctl update
-f, --forceForce update even if already at latest versionmoul-ctl update -f
-v, --versionPrint version information and exitmoul-ctl --version

TUI Keyboard Shortcuts Reference

ScreenKeyAction
Globalctrl+cExit program
Dashboard / (or k / j)Navigate collections & menu items
Enter / l / Open selected item
rRefresh schemas from server
EscDisconnect and return to connection screen
Record List / (or k / j)Scroll records list
> / <Next / Previous page
/Activate live search & filter query
Enter / vInspect JSON payload
nCreate new record
eEdit selected record
dDelete selected record
Record / Job DetailcCopy JSON payload to OS clipboard
Esc / qReturn to list
Worker MonitorrForce-retry failed job
cDiscard / cancel job
fRefresh worker status immediately
Settings Panel / Switch settings tabs
RTrigger instant server-side hot-reload

On this page