3 ms·
> Do we still need a back-end, now that Chrome supports the File System Access API on both desktop and mobile? Could this allow accessing a local db as well? W
by nico 1y ago
> Do we still need a back-end, now that Chrome supports the File System Access API on both desktop and mobile?
Could this allow accessing a local db as well? Would love something that could allow an app to talk directly to a db that lives locally in my devices, and that the db could sync across the devices - that way I still get my data in all of my devices, but it always stays only in my devices
Of course this would be relatively straightforward to do with native applications, but it would be great to be able to do it with web applications that run on the browser
Btw, does Chrome sync local storage across devices when logged in?
- porridgeraisin 1y ago> Btw, does Chrome sync local storage across devices when logged in? No, but extensions have an API to a storage which syncs itself across logged-in devices. So potentially you can have a setup where you create a website and an extension and the extension reads the website's localStorage and copies it to `chrome.storage.sync`. Sounds like an interesting idea actually.
- nico 1y agoThat's a clever solution I've been playing with chrome extensions recently, and have made them directly talk to a local server with a db. So using extensions, it's relatively easy to to store data locally and potentially sync it across devices I like the idea of leveraging chrome.storage.sync though, I wonder what the limitations are
- porridgeraisin 1y ago> I wonder what the limitations are https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web... says that there is a 100kb limit, and a 512 KV pair limit per extension. Quite limiting, but if this pattern becomes popular I don't see why it can't be expanded to have the same limit as localStorage (5MB)
- stephenlf 1y ago> Could this allow accessing a local db as well? Like IndexDB? It’s a browser API for an internal key-value storage database. > Btw, does Chrome sync local storage across devices when logged in? Syncing across devices still requires some amount of traffic through Google’s servers, if I’m not mistaken. Maybe you could cook something up with WebRTC, but I can’t imagine you could make something seamless.