KMP sync — Supabase + PowerSync for offline-first cross-platform
Key Takeaways
For family/cross-platform apps needing offline-first sync between Android + iOS: Supabase + PowerSync is the recommended stack. MongoDB Realm Sync was deprecated Sep 2025 — no longer an option.
| Solution | Offline-First | MVP Timeline | 5K MAU Cost |
|---|---|---|---|
| Supabase + PowerSync | Native | 1-2 weeks | ~$75/mo |
| Firebase (GitLive) | Cache only | 1 week | Free-$25/mo |
| Couchbase (Kotbase) | Native | 2-3 weeks | Free-$50/mo |
| Supabase alone | None | 3-5 days | $25/mo |
PowerSync maintains local SQLite on each device, syncs bidirectionally with Supabase Postgres. supabase-kt SDK (v3.3.0) provides full KMP support.
If budget is tight and offline isn’t critical: Firebase via GitLive SDK (simpler, online-first with cache).
What was actually built (Oct 2026)
The recommendation above was never put into practice. Caretta Friends, the one KMP app in the portfolio (project-carettafriends), runs without PowerSync and without supabase-kt: the local store is a single JSON file written through okio, sync is raw PostgREST over ktor, pushed on every change and once on start, and auth is an anonymous GoTrue session. supabase-kt was skipped on purpose because of a Kotlin 2.3 ABI incompatibility, so “full KMP support” in the SDK did not hold for that build. PowerSync stays untested here; treat its row in the table as a vendor claim until a project measures it.
Connections
- privacy-as-architecture — local SQLite + selective sync = user controls what data leaves device
- infra-two-tools — Supabase as backend aligns with the shared auth infrastructure