More feedback

This commit is contained in:
Franck Royer 2021-06-02 14:01:53 +10:00
parent 2bab4f616a
commit 04a89d5222
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -1,14 +1,15 @@
2021-05-21-js-waku.md---
---
layout: post
name: "Presenting JS-Waku: Waku v2 in the browser"
title: "Presenting JS-Waku: Waku v2 in the browser"
date: 2021-05-21 12:00:00 +0800
name: "Presenting JS-Waku: Waku v2 in the Browser"
title: "Presenting JS-Waku: Waku v2 in the Browser"
date: 2021-06-04 12:00:00 +0800
author: franck
published: true
permalink: /2021-05-21-js-waku
permalink: /presenting-js-waku
categories: platform
summary: "We are summarizing the Waku v2 status, introducing JS-Waku, what we achieved so far and what is next."
discuss:
summary: "JS-Waku is bringing Waku v2 to the browser. Learn what we achieved so far and what is next in our pipeline!"
image: /assets/img/todo
discuss: TODO
---
After almost three months working on JS-Waku,
@ -16,17 +17,17 @@ we thought it would be a good time to give it a proper introduction.
## Waku v2
First, let's review what is Waku v2.
First, let's review what Waku v2 is and what problem it is trying to solve.
Waku v2 comes from a need to have a more scalable, better optimised solution for the Status app to achieve decentralised
communications on resource restricted devices (ie, phones).
communications on resource restricted devices (i.e., mobile phones).
The Status chat feature was initially built over Whisper.
However, Whisper has a number of caveats which makes it inefficient for mobile phones.
For example, with Whisper, all devices are receiving all messages which is not ideal for limited data plans.
To remediate this, a Waku mode (then Waku v1), based on devp2p, was introduced.
To further enable web and restricted resource devices, Waku v2 has been created based on libp2p.
To further enable web and restricted resource environments, Waku v2 was created based on libp2p.
The migration of the Status chat feature to Waku v2 is currently in progress.
We see the need of such solution in the broader Ethereum ecosystem, beyond Status.
@ -50,9 +51,10 @@ Waku could be used for gas-less voting.
Enabling the DAO to notify their users of a new vote,
and users to vote without interacting with the blockchain and spending gas.
[Murmur](https://github.com/status-im/murmur) was the first attempt to bring Waku to the browser,
acting as a bridge between Whisper and Waku.
Then, a web chat [POC](https://github.com/vacp2p/waku-web-chat) was created to demonstrate the potential of Waku v2
[Murmur](https://github.com/status-im/murmur) was the first attempt to bring Whisper to the browser,
acting as a bridge between devp2p and libp2p.
Once Waku v2 was started and there was a native implementation on top of libp2p,
a [chat POC](https://github.com/vacp2p/waku-web-chat) was created to demonstrate the potential of Waku v2
in web environment.
It showed how using js-libp2p with few modifications enabled access to the Waku v2 network.
There was still some unresolved challenges.
@ -65,7 +67,9 @@ we need to give them a library that is easy to use and works out of the box:
introducing [JS-Waku](https://github.com/status-im/js-waku).
JS-Waku is a JavaScript library that allows your dApp, wallet or other web app to interact with the Waku v2 network.
It is available right now on [npm](https://www.npmjs.com/package/js-waku): `npm install js-waku`.
It is available right now on [npm](https://www.npmjs.com/package/js-waku):
`npm install js-waku`.
As it is written in TypeScript, types are included in the npm package to allow easy integration with TypeScript, ClojureScript and other typed languages that compile to JavaScript.
@ -167,5 +171,3 @@ Whether you are a developer, you can come chat with us using [WakuJS Web Chat](h
or [chat2](https://github.com/status-im/nim-waku/blob/master/docs/tutorial/chat2.md).
You can get support on Discord [#waku-support (dev support)](https://discord.gg/VChNsDdj).
If you have any ideas on how Waku could enable a specific dapp or use case, do share, we are always keen to hear it.