Remix.run Logo
mg 9 hours ago

> but trying to save data required hosting it somewhere

With the File System Access API, webpages nowadays can read and write local files just like desktop applications:

https://developer.chrome.com/docs/capabilities/web-apis/file...

Try this text editor for example:

https://googlechromelabs.github.io/text-editor/

It works nicely on Desktop and Mobile.

emaro 9 hours ago | parent | next [-]

*In Chrome.

simongray 8 hours ago | parent [-]

That file editor seems to work in Firefox. I just tested the save/open functionality.

tbrockman 7 hours ago | parent | next [-]

It's not using the File System Access API, on Firefox it uses <input type="file"> for file-picking, and the save just downloads it. It's not synchronizing anything with your filesystem.

simongray 7 hours ago | parent [-]

I see. Thanks for enlightening me.

maelito 8 hours ago | parent | prev [-]

It just downloaded the file on my firefox.

pspeter3 9 hours ago | parent | prev | next [-]

My dream is that you could write to Google Drive or iCloud Drive transparently too if the browser allows you to

jg0r 8 hours ago | parent [-]

I believe you are able to connect to a Google Drive account with a purely client side site via google oauth and then using the Google Drive rest api. There was an article in particular that I liked that walked through it. Let me see if I can find it

Lord_Zero 7 hours ago | parent [-]

Yes but Google OAuth is a nightmare if you want to "publish" your client so that anyone can use it. If only you use it, you can add yourself as a test user. Just know your access token expires super fast and you will have to frequently re-auth. Its crazy annoying.

darkvertex 9 hours ago | parent | prev [-]

Even better how about a fully functional VSCode: https://vscode.dev

The File System Access API makes it possible.