Start building.
Stay in control.
An introduction to the LorzoBase core and the current developer preview. The full source repository remains private.
Quickstart
Prerequisites: Docker and Docker Compose, access to the private project repository, and an available local port 3000. The initialization script creates an environment file with random secrets.
./scripts/init-env.sh
docker compose up -d
# then open http://localhost:3000/admin/setupThe setup assistant at /admin/setup walks through a fresh installation or a move from Supabase. It explains every environment variable, generates missing secrets in your browser, checks the database and creates the first administrator. It also works while the configuration is still incomplete: LorzoBase then starts in setup mode and shows exactly what is missing. Keep generated secrets private.
One application. One database.
Fastify composes the TypeScript backend modules. The React admin interface is bundled alongside the server. PostgreSQL provides persistent data, row-level security and the job queue. The minimal deployment consists of the application, PostgreSQL and a persistent volume.
Authentication uses Better Auth. The Data API exposes only explicitly allowed tables, columns and functions. Tenant membership and roles govern access.
What ships in v0.5
- Storage: buckets on local disk, S3-compatible services, FTP or SFTP; encryption at rest, quotas, type checks, malware scanning, signed download and upload links, move and copy, resumable tus uploads and image transformations.
- Functions: TypeScript functions for HTTP, verified webhooks, cron, background jobs and events, with timeouts, rate limits and an SSRF-safe
fetch. - Realtime: SSE with persistent outbox and replay; WebSocket Broadcast and Presence with private channels, including supported Supabase protocol features.
- Secrets: envelope-encrypted vault with versions and master-key rotation.
- Operations: scheduled encrypted database and incremental file backups, consistency markers, automated restore tests, Prometheus metrics and request logs.
- CLI: project folders, migrations, schema diff and type generation compatible with supabase-js.
- Database studio: inspect schemas, policies and data; use read-only SQL, and preview audited table-editor changes before applying them.
- MCP: optional read-only assistant tooling, with separately authorized and confirmed writes for supported actions.
- React:
@lorzobase/reacthooks for sessions, tenants, data, realtime and uploads.
TypeScript SDK
Use the TypeScript SDK @lorzobase/sdk – or keep the official supabase-js client for supported endpoints. This example illustrates the SDK for a configured inventory schema.
import { createClient } from "@lorzobase/sdk";
const client = createClient({
url: "https://api.example.com"
});
await client.auth.signIn({ email, password });
const [household] = await client.tenants.list();
client.tenants.switch(household.id);
const batches = await client
.from("inventory_batches")
.select("id,quantity,product:products(name)")
.gt("quantity", 0)
.order("expiry_date", { nullsFirst: false })
.limit(50);Coming from Supabase?
/auth/v1, /rest/v1, /storage/v1, /functions/v1, auth.uid() and auth.jwt() are tested with the official supabase-js client. Supported WebSocket Broadcast and Presence are also tested with supabase-js. Existing apps may need adapters, policy changes or code updates; Edge Functions must be ported and there is no GraphQL API.
- Run the read-only analysis (admin migration assistant or
lorz supabase:analyze): it sorts everything into automatic, adapter, manual and unsupported. - Apply your Supabase migrations plus the generated grants; turn cron jobs into functions.
- Import users with their password hashes (dry run first), then copy data, files and secrets – each step is verified by counts and checksums.
- Test on an isolated instance, then switch the URL. Supabase stays untouched as a fallback.
Operate responsibly
The project includes a threat model, security documentation and integration tests. Automated restore tests ship in v0.5; a full external security review is still on the roadmap. Treat the current release as pre-1.0; do not expose sensitive production data without your own review.
Use TLS for remote access, protect credentials, restrict database network exposure and review RLS. Platform admins must use two-factor authentication in production. Store the integrated, encrypted backups on a separate system (S3 or SFTP) and keep the master key outside the backups.
Make room for
your next big idea.
Testing a small VPS, migrating an existing application, or building a multi-tenant SaaS? Help shape LorzoBase before its public release.
No signup form, no tracking cookies. Get in touch directly by email.Explore v0.5.0.
Source documentation is currently available to authorized repository users.
MCP setup
Tokens, Claude Code setup and confirmation workflow.
Backups & restore
Consistency snapshots, file recovery and automated restore tests.
Database studio
Read-only SQL, table management and audited migrations.
Upgrade from v0.3
Review configuration changes and run db:bootstrap for the inspection role.