Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)