https://docs.deno.com/runtime/manual/runtime/web_storage_api
Show HN: RemoteStorage – sync localStorage across devices and browsers
51–60 of 69 posts
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#52Your landing page at https://remote.storage/ is so good, I love the minimalism. Six lines of code tell me exactly what it does.
I like the minimalism too, but I don't think it tells me "exactly what it does". I have no idea from that page what the backend requirements are. Is it a hosted solution? Is it using some browser profile functionality? Do I have to set up a server?
It demonstrates the simplicity of the client side code for sure. But the server stack is obviously where the details are going to be.
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#53Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#54Earlier quoted context omitted.
Your app might not need it but if you want partial replication or relational querying in addition to offline-first syncing then check out https://github.com/aspen-cloud/triplit (disclaimer: I'm working on this)
how does this compare to https://electric-sql.com/
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#55Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#56I love the simplicity and kinda wish that was actually built into Chrome. I know it would probably break things but if Google could automatically sync local storage and IndexedDB when I'm signed into Chrome on all my devices then a lot browser of apps wouldn't require making an account or even a server for that matter.
"built into Chrome" implies that Chrome is the only web browser.
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#57Earlier quoted context omitted.
This is handled by Redis, as such, the last write will win. As the primary key is tied to the user id, there will not really be a concept of Machine A vs Machine B as the end user can only be in one place at a time.
Users can have an app in multiple tabs though, and apps can read/write local storage in the background.
Judging by the title, I thought this tool actually just synced the existing localStorage instead of being its own storage. Since localStorage has onChange events it would be trivial to built, it would still be sync, it wouldn’t require any changes to the existing code, etc
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#58It sounds a bit radical but it may work!
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#59The use case is limited, a project has it's own backend, why need to add a new sub-system for tiny data storage?
To add something new, that needs to persist, will not require going to a backend team and begging for a new API from them.
A common difficulty is the simplest scenario, where do I store this frontend user preference? How do I store this that prevents nagging multiple times across devices?
Backend teams will argue this is a frontend piece of data, and they provide APIs and backend storage that is agnostic of a specific frontend.
This feels like a valuable addition.
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#60The bit about finding a unique ID for the user is the whole pain point though. The only way to do that really is for the user to create an account on some service that I host. And if I have that, I probably have my own hosted data storage anyway.
But it’s dead simple if e.g. using something like Clerk.dev for your auth.