Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/st3b1t/libp2p-nodejs-playground
PeerToPeer libp2p NodeJS Playground
https://github.com/st3b1t/libp2p-nodejs-playground
decentralized distributed-systems js-libp2p libp2p nodejs p2p
Last synced: 8 days ago
JSON representation
PeerToPeer libp2p NodeJS Playground
- Host: GitHub
- URL: https://github.com/st3b1t/libp2p-nodejs-playground
- Owner: st3b1t
- Created: 2024-06-05T17:46:05.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-09-22T15:20:18.000Z (4 months ago)
- Last Synced: 2024-11-15T03:08:34.115Z (2 months ago)
- Topics: decentralized, distributed-systems, js-libp2p, libp2p, nodejs, p2p
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libp2p NodeJS Playground
install all dependencies
```bash
$ npm install
```## 1. Local Area Network Messages Broadcasting
Run in one terminals with different PORT or in differente machines in the same Local netowork
`node tcp_pubsub_message.js PORT`
and type a message ENTER to send in brocast to all other peers
## 2. Local Area Network p2p via Multicast DNS
Run in one terminals with different PORT or in differente machines in the same Local netowork
`node websocket_lan.js PORT`
any new peer is connected and discover automatically the others
[![image](https://raw.githubusercontent.com/st3b1t/st3b1t/main/donate.png)](https://getalby.com/p/st3b1t)