peer-base / peer-pad

📝 Online editor providing collaborative editing in really real-time using CRDTs and IPFS.
https://peerpad.net
MIT License
678 stars 56 forks source link

peer-pad via go-ipfs api? #262

Open whyrusleeping opened 5 years ago

whyrusleeping commented 5 years ago

Is it possible to use peer pad backed by a go-ipfs node? If so how do I do it? If not, how can we make that happen?

jimpick commented 5 years ago

I think there is some related discussion in this issue: https://github.com/ipfs-shipyard/peer-star-app/issues/197

parkan commented 5 years ago

@daviddias also brought up the idea of being able to explicitly dial/relay through a local go-ipfs node in bad network conditions, as well

pgte commented 5 years ago

There is some support for relay for LAN discovery and participation in peer-base: https://github.com/peer-base/peer-base/blob/master/src/transport/ipfs-relay.js

It's a bit clunky, as we need to also use the IPFS API to poll swarm addresses, as there's no other source of discovery in that environment. Any suggestions @whyrusleeping ?

parkan commented 5 years ago

ah yes I remember you setting this up at DWeb summit 😄

pgte commented 5 years ago

Depends on:

whyrusleeping commented 5 years ago

Re: Discovery, I think polling is our best bet for now. Youre just trying to find other peers that are local? Or whats going on there?

pgte commented 5 years ago

@whyrusleeping I'm trying to discover peers that are interested in the same collaborations as I am (topic-based peer discovery).