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.
*In Chrome.
My dream is that you could write to Google Drive or iCloud Drive transparently too if the browser allows you to
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
This is possible with RxDB, you can sync from browser to google drive or ms onedrive
it's not only about saving data but easily sharing too. I think the capsule file is great for sharing one's work without the hassle of hosting.
Ease of backup too. One of the issues I take with browsers allowing web apps to save data locally is that they don’t also expose a way to easily locate the data in the filesystem or export it, and to my knowledge on-disk format isn’t standardized and so portability between browsers is also a concern. The effect of this is that unless the user uses migration assistants or similar when upgrading to a new computer is that they’ll lose all local web app data. To me to this feels like a serious problem but when it’s brought up it tends to be hand waved away.
Even better how about a fully functional VSCode: https://vscode.dev The File System Access API makes it possible.
