Skip to Main Content

MiraBase: one backend, a private database for every user, tenant and agent. THE PROBLEM A solo developer building a SaaS, team workspace or multi-agent app needs accounts, permissions, records, files, search, schema changes and recovery. Giving each customer or agent private storage should not mean deploying another backend for every database. And once every user has their own database, harder problems appear: running thousands of files cheaply, keeping authority unambiguous, surviving partial failure across files, and trusting a native engine inside your process. HOW WE SOLVED IT - Cost: Turso runs in-process through Go's database/sql. One HTTP server with bounded shared services manages many database files, so there is no process, scheduler or JavaScript VM per database. - Authority: ownership, grants, collection rules and privileged SQL are separate surfaces. Request context is immutable, and unauthorized or contradictory selection is refused with no silent fallback to primary storage. - Partial failure: generation, schema and policy guards, reviewed schema plans, rollouts that show mixed revisions, durable jobs and idempotency receipts. We do not claim cross-file ACID. - Trust: the native engine is pinned by compiled-in digests, and modified payloads are refused. A separate Quint-based Formal Verification harness backs security claims with executable evidence. WHAT WE BUILT Extending PocketBase with Turso, we added: - Shared, per-user, per-tenant and per-agent databases, provisioned automatically, with tenant memberships, invitations, scoped grants and credentials, and agent identities. - Four search modes: vector, full-text, hybrid and fuzzy, with budgets and deadlines. - Schema plans, templates and rollouts; durable change history, record sync and live queries; backups, export/import and durable jobs. - Agent workspaces with historical snapshots and restoration. - A PostgreSQL wire gateway (TLS, SCRAM, prepared statements), tested with node-postgres. - PocketBase adoption with staged cutover, plus JavaScript/TypeScript and Dart clients. - Formal Verification: 17 tools, 15 starter models, a 42-claim catalog. EVIDENCE Recorded Windows runs show 5,236 test passes, 23 package checks and four SDK transport tests. Known limits are stated openly: managed-record rule parity, operator-only workspaces and application isolation are unfinished. Self-hosted only; no cloud offering. Code: github.com/lordolami/mirabase Formal Verification: github.com/lordolami/formal-verification Demo: youtu.be/PVRYAADs-EQ

Team

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview