https://github.com/tableflip/ipfs-pubsub-chat-example
An example pubsub app that uses window.ipfs, provided by the IPFS Companion web extension
https://github.com/tableflip/ipfs-pubsub-chat-example
Last synced: about 1 year ago
JSON representation
An example pubsub app that uses window.ipfs, provided by the IPFS Companion web extension
- Host: GitHub
- URL: https://github.com/tableflip/ipfs-pubsub-chat-example
- Owner: tableflip
- License: mit
- Created: 2018-02-22T16:20:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T17:23:00.000Z (over 6 years ago)
- Last Synced: 2025-03-21T18:02:02.554Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://tableflip.github.io/ipfs-pubsub-chat-example/dist/
- Size: 2.42 MB
- Stars: 31
- Watchers: 4
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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/

## 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:
```json
{
"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`

