bonfireDB vs Supabase / Convex (general backend)

Supabase (Postgres + PostgREST + Realtime + Auth) and Convex (reactive TypeScript backend) are two of the best ways to ship an app fast, and both can legally hold PHI under a BAA. Neither knows anything about FHIR, clinical terminology, consent, or resource-level audit — that entire healthcare-domain layer is yours to build.

TL;DR

Supabase and Convex are mature, well-funded, genuinely delightful general-purpose backends: Supabase gives you raw Postgres with instant REST/GraphQL/realtime/auth/storage and pgvector; Convex gives you end-to-end-typed TypeScript with automatic, transactionally-consistent reactive queries. Both are HIPAA-eligible with a signed BAA and SOC 2 Type 2, so they are a perfectly valid substrate to store PHI. What they are not is healthcare-aware: there is no FHIR resource model, no /fhir/R4 endpoints, no terminology (SNOMED/LOINC/ICD/RxNorm), no consent engine, and no resource-level clinical audit — and clinical authorization is hand-built (intricate Supabase RLS, or all-in-code checks on Convex, which has no row-level security at all). bonfire is early-stage and largely vision today, but it is positioned to give you typed clinical primitives, fresh-on-commit reads, an ABAC-enforced semantic layer, automatic audit, and FHIR R4 generated underneath — so you own the app, not the healthcare plumbing.

At a glance

Supabase and Convex are excellent general-purpose backends — but they hand you a database and realtime plumbing, not a healthcare data layer; with them you build the FHIR server, the terminology, and the clinical access control yourself, whereas bonfire ships those as the product.

Supabase / Convex (general backend)bonfireDB
TypeGeneral-purpose app backend (BaaS); not healthcare- or FHIR-awareAgent-native clinical backend; FHIR generated underneath
Language / stackSupabase: Postgres + PostgREST/GoTrue/Realtime. Convex: Rust + TypeScript reactive backendTypeScript + Postgres + pgvector
License / costSupabase Apache-2.0, HIPAA needs a paid Team plan + HIPAA add-on; Convex FSL→Apache-2.0, BAA on a paid tier (verify current pricing, 2026)Apache-2.0 core (free) + managed tier
HostingBoth managed (primary) or self-host; HIPAA controls only on hosted + BAAYour AWS (OSS) or managed
App-native typed APIYes (generic): Supabase auto REST/GraphQL; Convex end-to-end typed TS — no clinical modelYes — typed clinical primitives
Fresh-on-commit app readsYes — Postgres MVCC / Convex OCC; strongly consistent (but no clinical read model)Yes — committed operational read models
Reactive realtime cacheYes — Convex live queries; Supabase Postgres-Changes/Broadcast/Presence (single-thread WAL limits)Yes — useClinicalQuery
Built-in semantic searchGeneric only — pgvector (Supabase) / native vector search + RAG (Convex); not PHI/ABAC-awareBuilt in — pgvector, ABAC-enforced
Agent / MCP layerGeneric AI/RAG/agent components; build your own — no clinical/consent-aware retrievalBuild-your-own-MCP over clean projections
Clinical authorization (write-enforced)No clinical authz: Supabase RLS hand-written SQL; Convex has no RLS, all checks in codeRead + write enforced ABAC, auto-audit
Automatic audit / provenanceNo clinical audit — generic DB logging only; no AuditEvent/ProvenanceAutomatic
FHIR conformance / exportNone — no FHIR model, endpoints, validation, $-ops, _history, or bulk exportFHIR R4 generated underneath; scoped conformance (honest: not a full enterprise FHIR server)
Best forSmall teams shipping a general app fast and willing to build the entire healthcare layer themselvesBuilders of AI-native health apps (scribes, copilots, agents)

Where Supabase / Convex (general backend) genuinely wins

  • Outstanding general-purpose DX with real production scale: Supabase is a full Postgres platform (instant REST + pg_graphql + Auth + Storage + Edge Functions), well-funded, with tens of thousands of GitHub stars and broad adoption across startups and large teams; Convex gives zero-boilerplate, fully typed TypeScript backend code. (Check each vendor's site for current funding and adoption figures.)
  • Best-in-class realtime/reactivity: Convex makes every query a live, transactionally-consistent subscription that auto-updates clients with no wiring, and Supabase Realtime offers Postgres Changes, low-latency Broadcast, and Presence — making collaborative live UIs trivial.
  • Strong consistency and ACID transactions in both (Postgres MVCC; Convex OCC), avoiding the eventual-consistency footguns of Firebase-style stores.
  • Open-source with credible self-host paths (Supabase Apache-2.0; Convex FSL-1.1 that auto-converts to Apache-2.0 two years after each release), reducing hard vendor lock-in versus closed BaaS.
  • HIPAA-eligible with a signed BAA + SOC 2 Type 2, so they can legally hold PHI as a storage/compute substrate (Supabase via its paid Team plan + HIPAA add-on, Convex on a paid tier — verify current pricing for 2026).
  • Built-in vector search and AI primitives — pgvector + Edge Functions on Supabase; native vector search, a RAG component, and AI Agent components on Convex — make them solid foundations for generic AI features.

Where bonfireDB is built different

  • No FHIR layer at all: neither product has a FHIR resource model, /fhir/R4 endpoints, CapabilityStatement, validation, $-operations, _history versioning, or bulk export — you must reimplement a FHIR server yourself. bonfire generates FHIR R4 underneath your typed primitives (scoped conformance, not a full enterprise FHIR server — stated honestly).
  • No healthcare terminology: no SNOMED/LOINC/ICD/RxNorm/CVX, no ValueSet/CodeSystem, no $expand/$validate-code/$translate. Coded data and value-set binding are entirely DIY on both. (Note: SNOMED CT is free for US use via the NLM UMLS license — the burden is integration, not licensing.)
  • No clinical, write-enforced authorization or consent engine: Convex has no row-level security at all (every function must remember to check access in code, verified in its own docs), and Supabase RLS for care-teams/guardian/break-glass/consent is intricate hand-written SQL that is a known data-exposure risk class. bonfire's design is read-AND-write-enforced ABAC with consent as a first-class primitive.
  • No resource-level clinical audit/provenance: generic DB-row logging is not interoperable AuditEvent/Provenance. bonfire is positioned to emit audit automatically on every access.
  • bonfire frames app/draft/operational state as first-class typed clinical primitives with fresh-on-commit read models — so you do not bolt a healthcare schema onto a generic store and reconcile two shapes by hand.
  • No interoperability/export path (no FHIR bulk export, HL7v2, C-CDA, or patient-access API) on either, so EHR data-exchange expectations require building it from scratch.

Which should you choose?

Choose Supabase / Convex (general backend) if…

Choose Supabase or Convex if you want the most mature, best-DX general-purpose backend to ship fast and you are comfortable owning the entire healthcare-domain layer yourself — or if your app is only lightly clinical and a HIPAA-eligible Postgres/reactive store under a BAA is genuinely all you need.

Choose bonfireDB if…

Choose bonfire if you are a small team building an outpatient or AI healthcare app and don't want to spend months reimplementing a FHIR server, terminology, consent-enforced authz, and clinical audit on top of a generic backend — you want typed clinical primitives, fresh reads, ABAC-enforced semantic search, and FHIR generated underneath, accepting that bonfire is early-stage today.

bonfireDB is early-stage; this compares its design and positioning against Supabase / Convex (general backend) as it ships today (2026). Verify current Supabase / Convex (general backend) capabilities before deciding.

You build the app. Bonfire is the clinical data layer underneath.

Open source. Runs in your AWS. The clinical layer is handled.

FAQ

Frequently asked questions

Is Supabase HIPAA compliant?

As of 2026, Supabase is HIPAA-eligible with a signed BAA and SOC 2 Type 2 on its paid Team plan plus the HIPAA add-on, so it can legally store PHI. But HIPAA-eligible storage is not the same as a clinical backend: it has no FHIR model, terminology, consent engine, or resource-level audit. Verify current pricing and terms.

Is Convex HIPAA compliant?

As of 2026, Convex offers a BAA on a paid tier and is SOC 2 Type 2, so it can hold PHI. Note that Convex has no row-level security at all, so every clinical access check lives in your code, by hand. Verify current capabilities before deciding.

Can I use Supabase or Convex as a clinical backend for a healthcare app?

You can store PHI on either under a BAA, but neither is healthcare-aware: no FHIR R4, no SNOMED/LOINC/ICD/RxNorm, no consent or write-enforced clinical authorization, and no AuditEvent/Provenance. That entire healthcare-domain layer is yours to build. bonfireDB is designed to ship those clinical primitives as the product.

What's the difference between bonfireDB and Supabase or Convex?

Supabase and Convex are excellent general-purpose backends that hand you a database and realtime plumbing. bonfireDB is an OSS clinical backend (Convex-like) designed to add typed clinical primitives, fresh-on-commit reads, ABAC-enforced semantic search, automatic audit, and FHIR R4 generated underneath. bonfireDB is early-stage and largely vision today.

Is there a Convex for healthcare?

bonfireDB is designed to be exactly that: a Convex-like TypeScript backend (TypeScript + Postgres + pgvector) but with FHIR R4 generated underneath and clinical authorization, consent, and audit built in. It's open source, runs in your AWS, and is in early access. Demand today is n=1 (it's us dogfooding).