Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WebWeWantBot opened this issue Feb 15, 2024 · 0 comments

Comments

@WebWeWantBot
Copy link


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:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

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:

  • They are usually blocked or cleared by privacy-focused web browsers
  • They are temporary and are deleted after a certain amount of time
  • They are not uniformly encrypted or otherwise protected, which makes session ID sharing impractical and unsafe
  • Websites can only access third-party cookies using embedded web content, which prevents the websites from meaningfully using the cookie's data in non-embedded contexts

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant