WebWeWant / webwewant.fyi

If you build websites, you inevitably run into problems. Maybe there’s no way to achieve an aspect of your design using CSS. Or maybe there’s a device feature you really wish you could tap into using JavaScript. Or perhaps the in-browser DevTools don’t give you a key insight you need to do your job. We want to hear about it!
https://webwewant.fyi
MIT License
74 stars 23 forks source link

I want for a Web where all modern websites can communicate data to each other freely without using online databases #662

Open WebWeWantBot opened 4 months ago

WebWeWantBot commented 4 months ago

title: I want for a Web where all modern websites can communicate data to each other freely without using online databases date: 2024-02-15T20:03:29.702Z submitter: PRIVATE number: 65ce6e1141467300a12265af tags: [ ] discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/ status: [ discussing || in-progress || complete ] related:

Currently, the only solution for sharing data (like theming preferences and login info) between websites without using complex account databases is using third party cookies, which are bad for several reasons:

and so on..

So, I propose a new JavaScript API for sharing data: The sharedLocalStorage API

In the sharedLocalStorage API, websites read and write data much as in the localStorage API, but they get to choose which domains and subdomains get to read a piece of data stored under the sharedLocalStorage API.

Only the domain that wrote a piece of data using the sharedLocalStorage API gets to rewrite or delete that data.

For privacy purposes, web browsers can disable the sharedLocalStorage API as needed, and websites can display elements whenever this happens using the element in HTML5.


If posted, this will appear at https://webwewant.fyi/wants/65ce6e1141467300a12265af/