aitkn
aitkn•2y ago

Offline-first support

Are you planning to support offline-first applications?
8 Replies
Indy
Indy•2y ago
Hi @aitkn this is something we've definitely discussed internally! I used to work on mobile Google Photos so it's a problem close to my heart. We don't have explicit plans around this, but it remains on our radar. In the short term, if you treat Convex queries as simply any query you'd do from your app, you can put the results in a write-through-cache on your local device, you will be able to get most things needed. Alternatively, some folks in our community have had success integrating https://replicache.dev/ and Convex if you want something highly structured and opinionated around offline first.
Replicache
Replicache
BakemonoHouse
BakemonoHouse•4mo ago
@Indy wow this is an old thread... is there any updates with replicache integration at the moment?
Indy
Indy•4mo ago
@sujayakar did put together a sample: https://github.com/sujayakar/replicache-convex
GitHub
GitHub - sujayakar/replicache-convex
Contribute to sujayakar/replicache-convex development by creating an account on GitHub.
Indy
Indy•4mo ago
We are also thinking about this space a lot more actively now.
FleetAdmiralJakob 🗕 🗗 🗙
Replicache is about to get discontinued as rocicorp prioritizes another project (zero) now. Maybe Convex forks Replicache which would be awesome but I tried to look at other solutions like legendapp/state too but have nothing working yet. https://legendapp.com/open-source/state/v3/. See this thread also: https://discord.com/channels/1019350475847499849/1139602956728156270
Legend State
Legend State
No description
Kevin07
Kevin07•4mo ago
I've started playing around with Tanstack Query Offline, Persist Plugin + Vite PWA for offline support, it's going well so far.
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
From An unknown user
From An unknown user
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
From An unknown user
From An unknown user
ballingt
ballingt•3mo ago
@Kevin07 Are you using TanStack Query Offline with Convex queries? I haven't tried this but am curious if it would work
Kevin07
Kevin07•3mo ago
Yeah I tried making a proof of concept last weekend and hopefully will play around with it more this weekend! Its not too much different than the offline example linked above, but I'll try share my example this weekend 😄

Did you find this page helpful?