github twitter linkedin email rss
webrtc-explorer - Resource Discovery for decentralized browser networks
Mar 22, 2015
2 minutes read

Following up the thread on my last post, the quest to build a way to have decentralized browser communications hasn’t ended I’m happy to share with you one of latest developments.

UPDATE: The talk I’ve delivered at OpoJS (Oporto JS meetup), has been published here: https://www.youtube.com/watch?v=fNQGGGE__zI

Enter webrtc-explorer

webrtc-explorer brings a Chord based routing scheme to the browser, using WebRTC as the layer of transport, for fully decentralized communications and interactions between the actors of the network. In another words, you get a DHT for browser communications.

The main key differences between webrtc-explorer an webrtc-ring are:

  • Each peer has a real finger-table to optimize routing and reduce the number of hops
  • The fingers used are ajustable (we can select how many fingers each node has)
  • Ids are 48 bit in order to avoid costly big number operations in Javascript
  • webrtc-explorer brings 3 new friends:
    • webrtc-explorer-visualizer - a simple app to observe the state/topology of the network
    • webrtc-explorer-simulator - a simulator service to infer possible topology scenarios
    • webrtc-explorer-browser-process - a way to distribute a mapping function over a network of browsers and collect the results.

The code is and remains fully open source, I welcome you to explore it:

webrtc-explorer demo

I’ve recorded a small video showcasing webrtc-explorer running:

** You can see how I’m not familiar with the concept of being recorded, I’m sorry for the humming, mumbling and for repeating myself.

Thank you for reading my blog, please feel free to contact me with ideas, questions, feedback.


Back to posts