logoalt Hacker News

xnx10/01/20245 repliesview on HN

Is there some version of local-first that doesn't require a webserver, but does seamlessly sync state to a consumer cloud service like Google Drive? I'd love to write apps that have all the speed and portability of local apps, but the data isn't tied to a specific device. It seems like it would be feasible to have a large JSON blog background synced to a cloud file service after some threshold of accumulated change or time.


Replies

chris_pie10/01/2024

https://remotestorage.io while it's a specific protocol for storing user data on a compatible server, their library also provides Google Drive integration

ochiba10/01/2024

This made the rounds on HN recently: https://tonsky.me/blog/crdt-filesync/

A PoC of using Dropbox for a local-first app

yunusefendi5210/02/2024

I built my habit tool app using Google Drive (app-spesific directory), it can sync between device, though it has a bug (in my code) sometimes cannot sync some data so I have to resync everything from scratch. No server needed.

Currently android only, don't have ios dev subscription https://play.google.com/store/apps/details?id=com.yedev.habi...

felipefar10/02/2024

There's already been some talk of using consumer cloud providers. One shortcoming however is that to work well you have to duplicate the users' data for each client app, so you'll consume x times more storage space of the user. This is fine for apps with little data, but is impractical for other apps.

michaelmure10/01/2024

Not a file storage but https://github.com/git-bug/git-bug push and sync with any git remote. There is a generic data structure you can use to build your conflict-free type.