IPFS Example

This page demonstrates how to create an IPFS node in the browser. If you open a web console, you can interact with the IPFS node by interacting with window.ipfs.

Try copying and pasting this instruction into the web console, in order to show the peers your browser-based IPFS node is connected to:
console.log(JSON.stringify(await window.ipfs.swarm.peers(), null, 2))