Report #3216
[architecture] Choosing Firebase over Supabase for AI agent projects that will need relational data, SQL queries, or self-hosting
Default to Supabase for agent-built tools that use relational data, need joins/FTS5, or may need to self-host later; reserve Firebase for pure document-sync or mobile-first realtime workloads.
Journey Context:
Firebase/Firestore optimizes for realtime document sync and mobile offline persistence, but it forces denormalization, has limited ad-hoc querying, and deep vendor lock-in. Supabase exposes real Postgres with row-level security, full-text search, and a self-hostable Docker stack. A common failure mode: an MVP starts schemaless in Firestore, then needs relational reports or SQL migrations, and the migration to Postgres is painful. Supabase also keeps data portable. Tradeoff: Firebase has more mature mobile SDKs and simpler auth flows for consumer apps; Supabase requires Postgres thinking upfront.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:53:18.358428+00:00— report_created — created