DOCS
LaunchCrate docs
LaunchCrate is a SaaS starter kit: an Axum JSON API on PostgreSQL with a React single-page app. It ships what a multi-tenant product needs before its first real feature: accounts, organizations and roles, billing, email, file uploads, webhooks, single sign-on, background work, and an operator panel.
Production runs as one binary and one Postgres. The Docker image builds the SPA, embeds the migrations, and serves the API and the static frontend from the same process. The job worker and the scheduler run inside that process too, so there is no separate queue, cron container, or Redis to operate.
Who it is for
- Solo developers and small teams who want a working, tested base they can read end to end in an afternoon and extend without fighting a framework.
- Teams with enterprise customers, who need these done properly from day one: revocable sessions, a permission catalog that guards check, audit trails with operator provenance, scoped and expiring API keys, signed outbound webhooks, single sign-on with verified domains, per-seat billing, and a superadmin panel that records each action.
The code favours explicit layering and compile-time checks over magic. SQLx checks SQL at compile time, ids are distinct newtypes, error responses share one envelope, and every route is described in an OpenAPI spec that CI keeps in sync with the code.
Getting started 6
- Quick startTwo commands, just setup and just dev, take a fresh clone of LaunchCrate to a running API and SPA. You need a handful of tools installed first.
- Project layoutThe LaunchCrate repository is a Cargo workspace with one crate (api) next to a Vite app (web), and the API and the SPA deploy together as a single Docker image.
- CommandsDevelopment runs through the just recipes in the root justfile, some of which call npm scripts in web/. Run just on its own to list every recipe in order.
- ConfigurationThe API takes its configuration from environment variables, which Config::from_env in api/src/config.rs parses and validates once at startup.
- Working with AI agentsLaunchCrate's documentation serves two readers, people and AI tools, from one set of sources.
- Pulling kit updatesA project built on LaunchCrate takes kit updates with a git merge from the repository you were invited to, and their migrations run at the next start next to…
Features 27
- AuthenticationLaunchCrate authenticates each kind of caller with its own credential: browser sessions for the SPA, JWTs with refresh tokens for API clients, and API keys…
- Two-factor authenticationWith two-factor turned on, a password or magic-link sign-in also asks for a TOTP code (RFC 6238) or a single-use recovery code.
- PasskeysPeople sign in with their fingerprint, face or screen lock instead of a password.
- Organizations, roles & invitationsAn organization is a tenant. Its data is kept apart from other orgs' at the row level, each person in it holds the owner, admin or member role, and newcomers…
- Custom rolesOn the Scale plan, an organization can define its own roles: a name and a set of permissions, held instead of admin or member.
- BillingLaunchCrate bills each organization per seat, monthly or yearly, through a pluggable payment provider (Stripe, Paddle, Polar or Lemon Squeezy).
- Superadmin panel & impersonationOperators get a cross-tenant panel for support and abuse handling. It lists every account and organization, and from it an operator can disable an account,…
- Audit logWho did what, inside an organization or from the superadmin panel, is recorded in one audit_events table. It holds two separate trails:
- API keysA server or script can act for one organization, with no user behind it, by presenting an API key that belongs to that org.
- MCP serverAn AI assistant such as Claude Code, Claude, Cursor or VS Code can work with one organization over the Model Context Protocol, served on POST /api/mcp.
- AI chatMembers can ask an assistant about their organization, from an Ask the assistant link on the org page.
- WebhooksAn organization's admins register endpoints, and the app POSTs each event in the org's audit log to them, signed with the Standard Webhooks scheme and retried…
- Background jobs & scheduled tasksQueued work and recurring tasks run from Postgres, inside the API process. There is no Redis and no separate worker process: the workers are Tokio tasks…
- EmailTransactional email is sent from a background job through a pluggable Mailer: Resend in production, the console in development.
- NotificationsPeople get an in-app notice when something that concerns them happens: they were added to an organization, their role changed, a passkey was added to their…
- Text catalogsThe words the app shows live in catalogs, not in the code, so they're written and reviewed in one place.
- ObservabilityThe API writes structured tracing logs tagged with a per-request id, can export OpenTelemetry traces, exposes a health check, and shuts down gracefully.
- Error trackingFailures that need a person, such as a 500, a panic or a dead-lettered job, go to Sentry once each, grouped and tagged with the request id already in the…
- Product analyticsThe API records six product events (sign-ups, new orgs, members joining, checkouts, subscription changes and API keys) in the app's own database.
- API & OpenAPIThe JSON API is described by an OpenAPI 3.1 spec, generated from handler annotations with utoipa and assembled in api/src/docs.rs.
- File uploadsEach organization gets a shared file area. The browser sends bytes straight to S3-compatible or local-disk storage through short-lived presigned URLs, and the…
- Magic linksExisting accounts can sign in without a password by asking for a link by email. The link carries a single-use token that lasts 15 minutes, and two-factor is…
- Single sign-onPeople at an organization's verified email domains can sign in through the org's own OpenID Connect identity provider.
- SCIM provisioningAn organization's identity provider can add, update and remove its members over SCIM 2.0 (RFC 7643 and RFC 7644), instead of people joining on first single…
- Org security policiesAn org owner on the Scale plan can require two-factor authentication of all members and restrict the organization to an IP allowlist.
- Account deletion & data exportUsers can download everything held about them and delete their account, and org admins can export their organization's data.
- BlogMarketing posts are Markdown files in api/content/blog/, compiled into the API binary and served as server-rendered HTML, along with an RSS feed, a sitemap,…
[ in the repo ]
These pages are previews. Buyers get every guide in full, plus 9 more.
Architecture
- Backend module shape
- Frontend structure
- Adding a feature
Operations
- Deploying
- Production checklist
- Testing
- Benchmarks
- Monthly partitions
- Security notes