# A guide to IPFS connectivity in web browsers | IPFS Blog & News

**URL:** <https://discuss.ipfs.tech/t/a-guide-to-ipfs-connectivity-in-web-browsers-ipfs-blog-news/11513>\
**Category:** Blog Posts\
**Created:** [June 10, 2021, 9:19pm UTC](https://discuss.ipfs.tech/t/a-guide-to-ipfs-connectivity-in-web-browsers-ipfs-blog-news/11513 "2021-06-10T21:19:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/1X/035cb0e41547e8c019cdfd4466a4736c843af1c9.png) [@system](https://discuss.ipfs.tech/u/system)\
**Post date:** [June 10, 2021, 9:19pm UTC](https://discuss.ipfs.tech/t/a-guide-to-ipfs-connectivity-in-web-browsers-ipfs-blog-news/11513/1 "2021-06-10T21:19:49Z")

</div>

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/](https://blog.ipfs.io/2021-06-10-guide-to-ipfs-connectivity-in-browsers/)
