We see a lot of questions about how to get started with using
js-ipfs in the browser. This post demonstrates a minimal chat example in
js-ipfs entirely in the browser. It uses WebRTC to achieve browser-to-browser connectivity where possible, and a circuit relay to connect browser nodes where not. Message passing is done with libp2p's pubsub.
This is a companion discussion topic for the original entry at https://blog.ipfs.io/2021-06-10-guide-to-ipfs-connectivity-in-browsers/