Welcome to Moul
A lightweight, self-contained dynamic database, authentication, and background job processing engine in Go.
Moul is a lightweight, modern backend ecosystem written in Go, inspired by PocketBase and Elixir's Oban. It unifies dynamic schema management, multi-factor authentication, background job queues, and real-time events into a clean, single-binary architecture.
Moul consists of three core components:
moul: The backend daemon engine that runs the database, REST API, background workers, SSE, and serves the web admin console.moul-ctl: The keyboard-driven Terminal User Interface (TUI) client built with Bubble Tea for fast terminal administration.- Web Admin Console: The full-featured browser dashboard served at
/_moul_/for visual schema modeling and management.
Single Binary Philosophy: No Docker orchestration or microservice sprawl required. Run dynamic SQLite schema management, authentication, background job queues, first-party analytics, and real-time Server-Sent Events with zero external dependencies.
Core Pillars
Architecture & Tools
Understand the relationship between the moul engine, moul-ctl TUI, and Web Admin Console.
Dynamic Collections & CRUD
Model schemas across 10 field types at runtime with fine-grained HCL-like access control rules.
Modern Authentication
Out-of-the-box Password, Email OTP, WebAuthn Passkeys, Social OAuth2, and Device Flow.
Background Worker Engine
SQLite-backed Oban-style job queues with automatic exponential retries and dead-letter queue (DLQ).
Real-Time SSE Subscriptions
High-performance Server-Sent Events for instant frontend updates on record mutations.
Built-in MCP Server
Native Model Context Protocol server exposing database CRUD, workers, and metrics to AI assistants.
Admin Consoles (Web & TUI)
Responsive Web Admin UI at /_moul_/ alongside a full-featured Bubble Tea Terminal UI (moul-ctl).
Go Extensibility (pkg/app)
Embed the full engine in your Go binary, register custom HTTP endpoints, and run custom workers.
Next Steps
Follow the guides below to get started in less than two minutes:
- Quick Start Guide: Install Moul and start your local engine.
- Architecture & Tools: Explore how
moul,moul-ctl, and the Web Admin work together. - Collections & Data Modeling: Learn how collections and field types work.
- API Reference: Explore the interactive OpenAPI 3.0 specification and endpoint catalog.