Appearance
Local setup
Run Postgres and the auth sidecar in Docker, and the orbit binary and the web app on your machine.
Prerequisites
| Tool | Used for |
|---|---|
| Rust stable (1.94+) | the orbit binary |
| Node 24+ and pnpm | the web app and these docs (never npm or yarn) |
| Docker with Compose | Postgres, the auth sidecar, integration tests |
| openssl | generating secrets |
Start the stack
- Generate secrets and start Postgres and the sidecar:bash
deploy/gen-env.sh # writes deploy/.env, never overwrites it docker compose -f deploy/docker-compose.dev.yml up -d --wait set -a; . deploy/.env; set +a - Run every migration (the only command that uses the owner login):bash
cargo run -p orbit --all-features -- migrate - Start the serving roles without the owner URL (they refuse it):bash
env -u ORBIT_MIGRATION_DATABASE_URL cargo run -p orbit --all-features -- --role all - Start the web app on http://localhost:5173. Vite proxies
/api/auth,/graphql,/mcpand/filesto the sidecar and the API:bashcd web && pnpm install && pnpm dev
The dev sidecar allows open sign-up and organisation creation, and logs email links instead of sending them. The self-hosted stack keeps both off.
Create a tenant
Sign up in the web app (or use services/auth/src/bootstrap.ts), then provision the tenant for that organisation. Tenants are never created from a sign-in.
bash
cargo run -p orbit --all-features -- tenant provision \
--org-id <sidecar organisation id> --name "Acme" --module coreEnable more modules as an admin, through any door:
bash
orbit kernel module enable --module leaveSmall machine?
CARGO_PROFILE_DEV_DEBUG=0 CARGO_BUILD_JOBS=3 cargo build -p orbit --all-features builds the binary without debug info, with less memory.
Tests
bash
ORBIT_REQUIRE_DOCKER=1 cargo test --workspace # unit, integration (testcontainers) and authz
cd web && pnpm typecheck && pnpm lint && pnpm test
deploy/smoke.sh # the whole self-hosted stack, end to endThese docs
bash
cd docs && pnpm install && pnpm dev # http://localhost:5173/docs/
pnpm build # fails on a dead linkRefreshing the screenshots is described in Contributing.