All Projects → tableflip → ipfs-pubsub-chat-example

tableflip / ipfs-pubsub-chat-example

Licence: MIT License
An example pubsub app that uses window.ipfs, provided by the IPFS Companion web extension

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

IPFS pubsub chat example

A ~76KB example chat app that uses window.ipfs, provided by the IPFS Companion web extension

Demo: https://tableflip.github.io/ipfs-pubsub-chat-example/dist/

screen shot of IPFS pubsub chat example

Install

  1. This app requires window.ipfs. Install the IPFS Companion web extension:

  2. You need to be using the embedded JS-IPFS node, click the extension icon in the top right of your browser and toggle the switch to "embedded"

  3. Open the preferences and paste in the following to configure your JS-IPFS node to use pubsub:

    {
      "config": {
        "Addresses": {
          "Swarm": [
            "/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star"
          ]
        }
      },
      "EXPERIMENTAL": {
        "pubsub": true
      }
    }
  4. Install dependencies npm install

  5. Build the app npm run build

  6. Start the app npm start

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].
OSZAR »