All the community can hope for now is to pressure MongoDB into open sourcing the backend. I don’t know if they’ll so quickly give away their paid product though, even now shuttering.
I’ll offer at least an alternative from my experience. I adopted Realm cautiously, to mitigate lock-in risk yes but also to protect my margins as a full-time indie dev.
I have app logic and UI across SwiftUI, in-app web views, and server-side with social/email auth. I store data on-device, in the backend, on iCloud, and inside transient in-app web views. I sync all of those in realtime. So let me share how I do it and what I can do to make this easier for the community by open sourcing more of it too.
On-device: local Realm
Backend: Django with Django-REST-Framework and a couple popular auth packages that give me batteries-included auth for email and social oauth. I run it on a $5 to $15 per month VPS on OVH Canada, because they have “unlimited” up/down monthly bandwidth (no risk of overage costs), and because Canada has easier worldwide compliance than US generally (apart from US-specific compliance needs that can happen in enterprise). I have Cloudflare in front of this and using Cloudflare Tunnels to avoid exposing to VPS to the internet at all via firewall, besides to Cloudflare. I wrote a realtime sync for Django models + a Swift client that is offline friendly. I could open source this if there’s interest in helping to make it more generic and reusable, because the approach is sound from my experience so far. It is pretty generic already but a bit hard coded to my specific models, though the approach is definitely generic and reusable.
iCloud: I made this iOS/macOS-friendly lib for syncing RealmSwift with iCloud / CloudKit: GitHub - lake-of-fire/BigSyncKit: Realm-specific fork of SyncKit to use IceCream's scalable approach to object subscriptions I’m using it in production with at least hundreds of thousands of rows per typical user.
Web views: I have RealmSwift syncing in real-time with web views (WKWebView) using RxDB: https://rxdb.info a JS DB with reactive hooks and realtime sync mechanism that I integrated. This lets me write app logic in any web tech (nice when I want to reuse on actual web deployment too later) or in native Swift as I like. The web views read and mutate user data via RxDB syncing back to Realm. I could also open source this, it mimics closely the realtime sync logic used in BigSyncKit above. I don’t need to pay for RxDB.
I would love to get help in extending and maintaining an integrated package of the above stuff if it would be useful for the community, since it’s so Realm oriented. It’s currently only helpful for iOS but the client logic could be ported and may have equivalent parts on other platforms too.
The above could be a valuable, basically free, open-source, and pretty straightforward transition for Atlas users. You can plug any DB into Django, not just SQL, there’s also some kind of MongoDB support, and there are a lot of batteries-included packages so it doesn’t require a lot of development and integration work.
The app I use the above in btw is Manabi Reader https://reader.manabi.io