Live data from Hacker News

Show HN: RemoteStorage – sync localStorage across devices and browsers

github.com

11–20 of 69 posts

Re: Show HN: RemoteStorage – sync localStorage across devices and browsers

#11
post #9

Your landing page at https://remote.storage/ is so good, I love the minimalism. Six lines of code tell me exactly what it does.

It's pretty good... but what if it showed a different landing page after visiting the website on a second machine? :)

Re: Show HN: RemoteStorage – sync localStorage across devices and browsers

#13
post #9

Your landing page at https://remote.storage/ is so good, I love the minimalism. Six lines of code tell me exactly what it does.

It's pretty good... but what if it showed a different landing page after visiting the website on a second machine? :)

Haha good call! Let's do it.

Re: Show HN: RemoteStorage – sync localStorage across devices and browsers

#15
On the authentication front - JWTs would be a great fit here!

The developer's backend could issue a JWT, which is validated by the remoteStorage backend. Then, use the `sub` field as the user ID. JWTs are pretty ubiquitous in frontend applications, so many people would be able to reuse their existing auth setup.

Re: Show HN: RemoteStorage – sync localStorage across devices and browsers

#16

On the authentication front - JWTs would be a great fit here! The developer's backend could issue a JWT, which is validated by the remoteStorage backend. Then, use the `sub` field as the user ID. JWTs are pretty ubiquitous in frontend applications, so many people would be able to reuse their existing auth setup.

Love this idea. Especially because JWTs are so ubiquitous like you mentioned, this could be a very lightweight way to secure the calls without doing too much if any backend work. My main goal is to make it as easy to use as localStorage itself but with all the benefits and security of having a centralized state/store.

Re: Show HN: RemoteStorage – sync localStorage across devices and browsers

#18

How does this compare to PouchDB[1]? [1]: https://pouchdb.com/

I didn't actually know about PouchDB but it looks very useful!

I think the main difference here is the use case. remoteStorage is not intended to be used as a database (just like localStorage is not intended to either), but rather to store non PII data such as preferences, impression events, etc. without having to roll and stand up your own DB and API.

Re: Show HN: RemoteStorage – sync localStorage across devices and browsers

#20

What is special with the server? I was surprised you offered a community-hosted server. An OpenAPI spec should be enough, right?

Yes, I'll get an OpenAPI spec rolling soon. You can easily infer the API here for now: https://github.com/FrigadeHQ/remote-storage/blob/main/packag...

The server is nothing special by design, just essentially Docker/Node/Redis with persistence enabled.

The free hosted community server is supposed to be used for testing / proof of concept.

Post reply on HN