-
Notifications
You must be signed in to change notification settings - Fork 475
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
Sync chats across machines #364
Comments
@Niek are you open to this if I work on it? I wouldn't get into complicated sync protocols. Probably some simple restriction such as: chats created from one session are read-only from other sessions. I'm already doing a very hacky non-automated version of this in a fork of your repo, where i've added "Backup all JSON" and "import many JSON" choices next to the single-chat ones. |
Interesting idea, what would be an option is https://remote.storage/ (https://github.com/FrigadeHQ/remote-storage). However, when we implement this people should be aware that their data is stored on a 3rd party host. |
It could be opt-in, right? Put the remoteStorage config on the same page as the OpenAI key. Also, from a brief look at Storage.svelte, it seems plausible that end-to-end encryption of individual serialized I think 5apps is another company that offers free hosting for remoteStorage. |
Oh, or using json chat import/export. Maybe that's what you had it mind, since it would require very few changes to your code. I just made it so it won't import a json chat if there's already a Chat with the same hash of |
@Niek was easy to get a proof-of-concept working this way. Only problem for me is that the default community server from Frigate (I haven't gotten 5apps working) appears to enforce a size limit of 1 MB (uncompressed), smaller than google chrome's enforced localStorage limit. Incidentally, I recall seeing a note from you somewhere about thinking of switching to IndexDB to avoid localStorage's size limits. |
Oh, silly me. That limit appears to be per-key. Well, we should compress the chats as gracious users of the free server anyway. I'll do that, and also encryption. LMK if you want me to share it. |
Sounds great! If you can do a PR that would be amazing! |
FYI the |
Quick update; remoteStorage caching, which it uses for background syncing, uses too much localStorage, so I'm reworking this sync feature to make it efficient without remoteStorage caching. They supposedly support caching with IndexedDB too, but provide no way to choose it manually; |
@sandeeps- @Niek I have a fork with sync running here https://chatgptweb-dust.vercel.app/. Hope to put it on github soon. There are a few very minor extra things added in this fork, just because I use them regularly, but with the exception of a couple new menu items ( Notes:
Setup:
|
Here's the fork https://github.com/DustinWehr/chatgpt-web-syncing |
Is it possible to add an option to auto sync the chats across different machines? For example in chrome use the sync features.
Or add an option to change the location where the chats are stored; so the user can use a 3rd party sync service like dropbox, google drive, box etc to sync chats between multiple machines
The text was updated successfully, but these errors were encountered: