World’s First Decentralized Web App (ÐApp) Powered by Computes!

@ChrisMatthieu
computes
Published in
2 min readMay 29, 2018

We’ve implemented our decentralized Node.JS Sentiment Analysis algorithm to run in a Web page powered by the Computes localhost REST APIs! This is a major breakthrough for several reasons:

  1. Decentralized API web requests can now be initiated from a web browser with the results being returned back to the browser upon successful computations performed by Lattice.
  2. These API requests can be single computations as well as many serial computations (commonly used in machine learning) or massively parallel computations (commonly used in modeling and research).
  3. This technique demonstrates how to build new ÐApps on top of Computes using our localhost REST API!

Here’s a quick demo of our Decentralized Web App (ÐApp) in action!

The source code for this demo is on GitHub. It requires both the IPFS daemon and the Computes daemon running on localhost; however, these IP addresses could be pointed elsewhere.

Here’s high-level architectural diagram of the web page interacting with the localhost REST APIs and Lattice.

No DNS, CDN, or Database was used in this example! The only reason we used a Node.JS web server was to enable JS-IPFS in the browser to communicate with our Go-IPFS daemon. The Protocol Labs team is working hard to enable client/server communications soon.

UPDATE: JS-IPFS V0.29 released the same day as this article. This version now supports both IPFS relaying allowing JS-IPFS and Go-IPFS to communicate and it now supports the IPFS DAG required by our ledger. I am happy to report that web servers are no longer required for building decentralized Web apps (DApps) with Computes!

Learn more about the Computes vision. Learn more about the Computes architecture. Join our beta program and start mesh computing today!

Stay tuned to this blog for more exciting information about our new technology stack and development progress! You can also reach us on Twitter, Facebook, and GitHub.

--

--

@ChrisMatthieu
computes

Builder of companies, robots, supercomputers, & motorcycles. @xrpanet & @twelephone CEO. Formerly @magicleap @computesio @citrix @octoblu @nodester @teleku