Mantle is Omni's business operations suite: people, invoices, quotes and contracts, and inventory in one workspace. This metarepo orchestrates the Mantle services for local development and self-hosting.
Product documentation lives at docs.omni.dev.
Services:
mantle-api: the GraphQL API, built with Elysia and PostGraphilemantle-app: the web app, built with TanStack Start
The quickest path is Run, which generates secrets and prompts for your sign-in provider:
omni run up mantleTo run the stack with Docker Compose instead, you need Docker and an OpenID Connect provider to sign in with. Register Mantle with the provider as a confidential client whose redirect URI is <APP_URL>/api/auth/callback/omni, then:
cp .env.local.template .env.local # fill in the required values
docker compose --env-file .env.local up -dThe app serves at http://localhost:3000 and the API at http://localhost:4000. Data lives in the db_data volume.
- Tilt
- Bun
- PostgreSQL (or Docker to run it in a container)
- mkcert, for the local TLS certificates both services serve over HTTPS
- Copy the template configuration:
cp services.yaml.template services.yaml-
Configure the services as needed. To disable a service, comment it out. Any included services will be locally cloned.
-
Set up each service (environment variables, a database for
mantle-api, TLS certificates) as described in its README. -
Start the development environment:
tilt upThe Tiltfile will automatically pull in resources from any nested Tiltfiles it discovers. A Weaver workspace (weaver.yaml) also declares the repositories, including the platform stacks Mantle depends on (HIDRA, Aether, Vortex).
Each service in services.yaml can specify:
| Key | Description |
|---|---|
repo |
Git repository URL for cloning |
path |
Local path override (defaults to services/service-name) |
metarepo |
Load every services/*/Tiltfile under path (for platform stacks) |
env |
Environment variables to set before the service's Tiltfile loads |
π‘ If nested repos are cloned within this metarepo and you open it in your IDE, directories may be marked as ignored due to
.gitignorepatterns. To work around this, open services in their own directory (e.g., a separate VS Code workspace unit).
β οΈ Services might have their own setup requirements, such as environment variable configuration. Consult each service's README to ensure all initial requirements are satisfied.
To build the Compose stack from local source instead of pulling images, layer the dev override (requires the services to be cloned):
docker compose --env-file .env.local -f compose.yaml -f compose.dev.yaml up --builddocker compose ps # health of each service
docker compose logs -f api app # boot and request logs
curl http://localhost:4000/ready # API and database readiness- Optional integrations that are not configured log
<VAR> not set, <feature> disabledon boot; that is expected when self-hosting - Signed in but no workspace: set
PERSONAL_WORKSPACE_FALLBACK=true(the default incompose.yaml) unless your provider is Omni Gatekeeper - Signed in but data does not load: check that
AUTH_JWKS_URLbelongs to the same provider asAUTH_BASE_URL
The code in this repository is licensed under Apache 2.0, Β© Omni LLC. See LICENSE.md for more information.