bonfireDB vs Aidbox (Health Samurai)

Aidbox is one of the most capable FHIR servers in production today — broad version support, ONC certification, element-level access control, and proven scale. bonfire bets on a different shape: a TypeScript/Postgres backend optimized for one team shipping an outpatient or AI app fast, with semantic search and an agent boundary built in rather than assembled.

TL;DR

Aidbox (Health Samurai) is a production-grade, commercial FHIR server: FHIR stored as JSONB in Postgres (so you get SQL, joins, aggregates, and strong read-after-write), STU3 through R6, AccessPolicy + Security Labels with element-level masking, topic-based subscriptions, a Reactive API, automatic BALP AuditEvents, and an ONC (g)(10) certification path. It is closed-source and license-gated — the cheapest production tier is ~$19K/yr before support and add-on modules — and it ships no built-in semantic/vector search or agent/LLM layer; you build that yourself on top. bonfire is early-stage and largely a design direction, so its column describes intended positioning, not shipped maturity: Apache-2.0 TypeScript/Postgres core with typed clinical primitives, an app-frontend reactive live-query cache, ABAC-enforced pgvector semantic search, and a build-your-own-MCP agent surface — with FHIR generated underneath rather than as the primary API. For teams needing certified, battle-tested FHIR breadth today, Aidbox is the safer choice; for founders who want an open, AI-native app backend and accept early-stage risk, bonfire is the fit.

At a glance

Aidbox is a mature, certified, proprietary FHIR-on-Postgres platform you license; bonfire is an early-stage, open-source, app-and-agent-native clinical backend that generates FHIR underneath.

Aidbox (Health Samurai)bonfireDB
TypeCommercial production-grade FHIR server + data platformAgent-native clinical backend; FHIR generated underneath
Language / stackClojure/JVM core; PostgreSQL JSONB storageTypeScript + Postgres + pgvector
License / costProprietary; Dev free (no PHI), Base from ~$19K/yr (verify current pricing, 2026)Apache-2.0 core (free) + managed tier
HostingBoth — self-hosted (Docker/K8s) or managed cloudYour AWS (OSS) or managed
App-native typed APIFHIR-first; custom resources, but not typed app primitivesYes — typed clinical primitives
Fresh-on-commit app readsYes — Postgres ACID gives strong read-after-writeYes — committed operational read models
Reactive realtime cacheServer-push subscriptions + $watch API; no frontend live-query cacheYes — useClinicalQuery
Built-in semantic searchNone built in — you add pgvector/embeddings yourselfBuilt in — pgvector, ABAC-enforced
Agent / MCP layerNo native MCP/agent layer; SQL-on-FHIR/GraphQL building blocks onlyBuild-your-own-MCP over clean projections
Clinical authorization (write-enforced)Strong — AccessPolicy RBAC/ABAC + element-level Security LabelsRead + write enforced ABAC, auto-audit
Automatic audit / provenanceAutomatic BALP AuditEvents (opt-in setting; $import/GraphQL gaps)Automatic
FHIR conformance / exportBroad — STU3–R6, 500+ IGs, ONC (g)(10) certified, Bulk exportFHIR R4 generated underneath; scoped conformance (honest: not a full enterprise FHIR server)
Best forTeams needing certified, broad, scalable FHIR todayBuilders of AI-native health apps (scribes, copilots, agents)

Where Aidbox (Health Samurai) genuinely wins

  • FHIR-on-Postgres done right: resources stored as JSONB give you raw SQL, JOINs, aggregates, and SQL-on-FHIR ViewDefinitions for analytics — plus strong read-after-write consistency from Postgres ACID, so app reads off the primary are fresh, not eventually-consistent.
  • Best-in-class access control for a FHIR server: AccessPolicy (RBAC + ABAC via FHIRPath/SQL/matcho), SMART on FHIR, compartment/org-scoped APIs, and a Security Labels framework with element-level masking — well beyond what most FHIR servers offer.
  • Genuinely current, broad FHIR support — STU3, R4, R4B, R5, and R6 with FHIR Schema validation, 500+ bundled IGs, and first-class custom resources and extensions.
  • ONC (g)(10) certified API module (ICSA Labs, CHPL 15.07.07.3119.AI01.01.00.0.220816) via SMARTbox, with Inferno test-kit support — a real regulatory shortcut if you need a certified API.
  • Production-grade subscriptions with delivery guarantees over Kafka, GCP Pub/Sub, SNS/EventBridge, and webhooks, plus a Reactive API ($snapshot/$watch/$versions with long-polling and txid caching) — strong for event-driven, integration-heavy systems.
  • Proven maturity and scale: 10+ years in market, monthly releases, documented benchmarks (100M-resource export, ~1B-resource load), ISO 27001:2022, BAA on paid plans, and named production customers (Deep 6 AI, Prenosis, Innovaccer, Sonic Healthcare USA, BestNotes).

Where bonfireDB is built different

  • Open-source and forkable: bonfire's core is Apache-2.0, so you can read, patch, and self-host the backend. Aidbox's core is proprietary and closed-source (its own FAQ confirms 'not open source') and license-gated by JWT keys with max-instances counting — when you hit a deep bug you depend on (paid) Health Samurai support rather than patching it yourself.
  • Free path to a real PHI MVP: Aidbox's free Development license forbids real PHI and caps the DB at 5GB, so the cheapest production tier with PHI starts at ~$19K/yr (Aidbox Base, before support and add-on modules — verify current 2026 pricing). bonfire's design is an Apache-2.0 core you can run on your own AWS at no license cost, with a managed tier optional.
  • Built-in, ABAC-enforced semantic search: bonfire bakes pgvector semantic search into the backend under the same authorization boundary. Aidbox ships no built-in vector/semantic search or embeddings — it's a structured FHIR platform, and you build the entire embedding/RAG layer yourself on top.
  • An owned agent/MCP surface: bonfire's design is a build-your-own-MCP layer over clean typed projections, with the authz boundary applied to agent reads. Aidbox ships no native LLM/agent framework or MCP server; it exposes the building blocks (SQL-on-FHIR, GraphQL, bulk export) but you assemble the agent layer and its guardrails yourself.
  • App-state as a first-class citizen: bonfire's typed clinical primitives are meant to hold operational/draft/app state alongside clinical data in one backend. With a pure FHIR-server model, non-clinical app and draft state has no natural home, which often pushes teams to run a second database beside the FHIR store.
  • A reactive client cache for app frontends: bonfire's design includes a useClinicalQuery-style live-query cache that updates UI automatically on commit. Aidbox's realtime is server-side push (topic-based subscriptions over Kafka/PubSub/webhooks) and a $watch/long-polling Reactive API — powerful for integration, but you still wire UI updates yourself rather than getting a frontend live-query hook out of the box.

Which should you choose?

Choose Aidbox (Health Samurai) if…

Choose Aidbox if you need a mature, certified, broadly-conformant FHIR server today — multi-version support (STU3–R6), element-level access control, ONC (g)(10) certification, proven scale, and enterprise compliance (ISO 27001, BAA) — and you're comfortable with a proprietary, license-gated platform and building any AI/agent layer yourself.

Choose bonfireDB if…

Choose bonfire if you're a founder shipping an outpatient or AI-native healthcare app and want an open-source TypeScript/Postgres backend with typed primitives, a reactive frontend cache, built-in ABAC-enforced semantic search, and an owned MCP/agent surface — and you accept that bonfire is early-stage with scoped (not full enterprise) FHIR conformance, where Aidbox is the safer pick for certified breadth.

bonfireDB is pre-launch / early access — its column reflects design and positioning, not shipped maturity or production traction. This compares that direction against Aidbox (Health Samurai) as it ships today (2026). Verify current Aidbox (Health Samurai) capabilities and pricing 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

What is a good Aidbox alternative?

bonfireDB is an early-access, open-source (Apache-2.0) alternative positioned differently from Aidbox: a TypeScript/Postgres backend for one team shipping an outpatient or AI app, with built-in pgvector semantic search and an agent boundary, generating FHIR underneath. Aidbox is the safer pick if you need certified, broad FHIR breadth today; bonfire fits founders who want an open, AI-native app backend and accept early-stage risk.

How much does Aidbox cost?

As of 2026, Aidbox offers a free Development license that forbids real PHI and caps the DB at 5GB; the cheapest production tier with PHI (Aidbox Base) starts around $19K/yr before support and add-on modules. Verify current Health Samurai pricing before deciding. bonfireDB's design is an Apache-2.0 core you run on your own AWS at no license cost, with a managed tier optional.

Is Aidbox open source?

No. Aidbox's core is proprietary and closed-source (its own FAQ confirms it is not open source) and is license-gated by JWT keys with max-instance counting. bonfireDB's core is designed to be Apache-2.0, so you can read, patch, and self-host the backend rather than depending on paid vendor support for deep bugs.

Does Aidbox have built-in vector or semantic search for clinical notes?

No. As of 2026 Aidbox ships no built-in vector/semantic search or embeddings — it's a structured FHIR platform, so you build the entire embedding/RAG layer yourself on top. bonfireDB is designed to bake pgvector semantic search into the backend under the same ABAC authorization boundary.

Aidbox vs bonfireDB: which should I choose?

Choose Aidbox if you need a mature, ONC (g)(10)-certified FHIR server today with multi-version support (STU3–R6), element-level access control, and proven scale, and you're fine with a proprietary platform. Choose bonfireDB if you're a founder shipping an outpatient or AI app and want an open TypeScript/Postgres backend with typed primitives, a reactive frontend cache, built-in semantic search, and an owned MCP/agent surface — accepting it is early-stage with scoped FHIR conformance.