tableflip/ipfs-pubsub-chat-example

Name: ipfs-pubsub-chat-example

Owner: TABLEFLIP

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

Created: 2018-02-22 16:20:36.0

Updated: 2018-03-21 11:53:19.0

Pushed: 2018-03-21 11:53:18.0

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

Size: 2664

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

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

  5. Build the app npm run build

  6. Start the app npm start


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.