-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Currently, for anonymous users, the graph definition is stored in...
- The URL fragment, for easy sharing. The maximum storage size depends on the browser. Let's say 2 MB.
- The local storage, in case the browser is closed and the URL fragment is lost. The maximum storage size is 5 - 10 MB.
- Local file, when the user saves the file on disk. The maximum storage size is A LOT MB.
If we want to start supporting storing images, fonts, etc. in the graph definition, we must find a better way to support anonymous users.
For example:
- Use IndexedDB when possible, which has a greater limit than local storage, but again depends on the browser.
- Warn the user that after a certain size limit, the URL fragment cannot be used anymore... or the local storage... or IndexedDB... etc.
- Warn the user that exporting after a certain size limit (ex: iframe) cannot be used anymore.
- Anonymous sharing of large graph definitions could be done using e2e encryption + gg+ server.