←back to thread

200 points dcu | 3 comments | | HN request time: 0.001s | source
Show context
TekMol ◴[] No.44456461[source]
Do we still need a back-end, now that Chrome supports the File System Access API on both desktop and mobile?

I have started writing web apps that simply store the user data as a file, and I am very pleased with this approach.

It works perfectly for Desktop and Android.

iOS does not allow for real Chrome everywhere (only in Europe, I think), so I also offer to store the data in the "Origin private file system" which all browsers support. Fortunately it has the same API, so implementing it was no additional work. Only downside is that it cannot put files in a user selected directory. So in that mode, I support a backup via an old-fashioned download link.

This way, users do not have to put their data into the cloud. It all stays on their own device.

replies(5): >>44456656 #>>44456687 #>>44457268 #>>44457361 #>>44460545 #
gavmor ◴[] No.44456687[source]
What about those of us who use multiple devices, or multiple browsers? I've been using local storage for years and it's definitely hampering adoption, especially for multiplayer.
replies(1): >>44458427 #
TekMol ◴[] No.44458427[source]
One approach might be to save the file to a shared drive like Google Drive?
replies(2): >>44458770 #>>44459548 #
gavmor ◴[] No.44458770[source]
Not sure I trust Dropbox to merge data. What happens when I want to migrate my data structures to a new schema?
replies(1): >>44461485 #
TekMol ◴[] No.44461485[source]
As far as I know, Dropbox does not merge data.

I never tried it, but from the descriptions I have read, Dropbox detects conflicting file saves (if you save on two devices while they are offline) and stores them as "conflicting copies". So the user can handle the conflict.

As a developer, you would do this in the application. "Hey, you are trying to save your data but the data on disk is newer than when you loaded it ... Here are the differences and your options how to merge.".

replies(1): >>44461636 #
1. gavmor ◴[] No.44461636{3}[source]
> Hey, you are trying to save your data but the data on disk is newer than when you loaded it

You're suggesting an actual API-facilitated data sync via Dropbox? Sure, but at that point why? Unless the data also needs to be read by 3rd party applications, might as well host it myself.

replies(1): >>44461765 #
2. TekMol ◴[] No.44461765[source]
Sure. You brought up Dropbox. Not me.
replies(1): >>44465230 #
3. gavmor ◴[] No.44465230[source]
s/Dropbox/Google Drive/