I'm interested in the upcoming local
I'm interested in the upcoming local sync engine. Until then... does anyone have recommendations on libraries you would use to implement a "single player", offline-first expo/mobile app architecture? More details in 🧵.
6 Replies
I'd like to have these features:
1. local caching of documents in sqlite or whatever
2. long term storage in convex
Additionally, in our app every document has a single owner/writer and we can assume last write wins.
What libraries would you reach for or would you hand roll it?
I'm going to explore replicache via https://github.com/sujayakar/replicache-convex and https://github.com/Braden1996/react-native-replicache. I'll report my progress.
Still open to suggestions 🙂
Replicache is "in maintenance mode", FYI: https://replicache.dev/#status
I don't have a good suggestion for you (though others might), but I can tell you that this is something that Convex has plans to solve in a first-class way in the future: https://stack.convex.dev/object-sync-engine
An Object Sync Engine for Local-first Apps
Object sync engines manage a rich object graph across multiple clients and a centralized server and are a great fit for building local-first apps.
thanks. that's okay I think. I intend to migrate to convex's solution eventually or at least give me some ideas to hand roll my own
Oh oops, you cited this in your original message, sorry!
Sounds good, sorry I couldn't be more help!
No worries. Convex has an awesome community.