Alpha chat app using streams for communication
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A chat app using streams

Live at:

The interesting bits

Demonstrates usage of using to build distributed apps

The server is a static file server

Distributed peer to peer apps are served from static file servers and use a discovery network in the cloud to establish peer to peer connections (through a relay server due to browser limitations)

Connections to the discovery network

Open a connection to a cloud based discovery network. Then simply discover your peers and open connections to them

Open relay streams to a named relay network

Once you have a connection to the discovery network you can open a fresh named connection to a relay network. Each relay network has a unique name and only contains the peers attached to that unique name.

Manipulate direct stream connections to peers

When a peer enters the network you get a direct stream connection to him. Now just talk to him!

Your UI component is a stream

If your UI component is a stream then you can pipe it directly to another peer. Once you get data from that peer simply render it. If you have data to send to the peer simply emit it.

Start building distributed apps on the cloud today!


  • Raynos

MIT Licenced