News for hackers. Stuff that matters.
Re:A Local-First Case Study by xnx on Tuesday October 01, 2024 @03:42PM (#41713259)
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.
Re:A Local-First Case Study by michaelmure on Tuesday October 01, 2024 @03:54PM (#41713394)
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.
Re:A Local-First Case Study by ochiba on Tuesday October 01, 2024 @04:34PM (#41713796)
This made the rounds on HN recently: https://tonsky.me/blog/crdt-filesync/

A PoC of using Dropbox for a local-first app

Re:A Local-First Case Study by chris_pie on Tuesday October 01, 2024 @06:22PM (#41714900)
https://remotestorage.io while it's a specific protocol for storing user data on a compatible server, their library also provides Google Drive integration
Re:A Local-First Case Study by felipefar on Tuesday October 01, 2024 @10:55PM (#41716738)
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.
Re:A Local-First Case Study by yunusefendi52 on Wednesday October 02, 2024 @09:30AM (#41720451)
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...