Open linonetwo opened 6 years ago
IPFS(with AES crypto) <- IPNS <2- automerge <1- slate
We can just regard server as a normal peer if we are using socket or ipfs to send operations in a p2p way.
So you can share a file with others, and you own this file, actual saving will only be performed by you.
If there is a file belongs to an organization, you should pay for us to host a server, and that server actually holds the files and to perform file saving.
Others just can send operations to the peer that is a server.
Seems there is no need to use automerge, just https://github.com/aravindballa/teamup/blob/master/web/src/components/SocketEditor.js#L34
Maybe we could make something likes https://github.com/automerge/hypermerge/, which use https://docs.datproject.org/hypercore as storage layer(which could be replaced by IPFS) and use https://github.com/automerge/automerge as CRDT.