Hacker News new | ask | show | jobs
by deanclatworthy 1787 days ago
Nothing stopping you doing that right now with localStorage or IndexedDB. The issue is the browser cannot be trusted to keep that data, or at least these APIs aren't designed for long-term persistent storage. If we could solve this problem, we could go a long way towards some level of decentralisation. On the other hand, which is more secure? Your service or the user's machine. So there's a lot to consider.
2 comments

>> If we could solve this problem, we could go a long way towards some level of decentralisation

I've heard variations of this batted around recently. Specifically, if we could allow web apps out of the sandbox so they could work like native apps, or have more access to the file system, we could maybe work our way out of the walled gardens and into totally distributed storage / processing / hosting. And it's true, it's just that...

>> On the other hand, which is more secure? Your service or the user's machine.

This.

Wouldn't such a model limit the user to just one device? Usually there's no sync of localStorage across devices.
If I'm understanding your scenario, I think PouchDB and CouchDB kind of address this concern, but for IndexexDB.