encryptic-team / encryptic

An encryption-focused open source note taking application
Mozilla Public License 2.0
348 stars 40 forks source link

sync with syncthing? #106

Open ghost opened 4 years ago

ghost commented 4 years ago

Is it possible to use syncthing to sync? I managed to make it somewhat work by sharing the storage/default/https+++app.encryptic.org/idb folder on Firefox, but it's really messy and tends to break the app (stuck on loading) or Firefox itself (websites won't load anymore and it needs a refresh). Is there a better way of doing this, or should I really install a remotestorage server?

daed commented 4 years ago

The answer to that is a complicated maybe. It is something that I am certain could be done with the electron app without problem. The issue with doing it on the web version is that there isn't really a clean way to manipulate files from browser javascript alone. Chrome supports a method (that might also work in Firefox) but Safari and other browsers treat it like it's just a file download, which wouldn't be practical for more than a note or two as it would require user interaction between each one.

I'm not opposed to making this a feature, but I've been wanting to keep the electron version as identical to the web version as possible so that we don't have issues like missing functionality on one compared to the other, but this is probably the 3rd or 4th feature request that would result in divergent code, so maybe that's just how things are going to have to be.

It occurs to me that putting data to the filesystem for this would cover a considerable number of other requested roll-your-own sync methods like scp/rsync/nfs/smb. It might actually also work better for the dropbox implementation. I'm probably just going to have to buckle on the "web same as electron" mentality.