webpeerjs 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/dist/esm/webpeerjs.js +17 -17
- package/dist/umd/webpeerjs.js +18 -18
- package/package.json +3 -3
- package/src/config.js +1 -1
- package/src/utils.js +6 -5
- package/src/webpeerjs.js +155 -29
package/README.md
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
# WebPEER.js
|
|
2
2
|
> Decentralized P2P JS library for communication between applications in browser.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
[WebPEER.js](https://github.com/nuzulul/webpeerjs) enables browser to browser connectivity without a central server. Build completely peer-to-peer web applications, no trackers or relay servers required. Connecting projects safely, privately, and reliably.
|
|
5
5
|
|
|
6
6
|
[Basic Connection Demo](https://nuzulul.github.io/webpeerjs/demo/)
|
|
7
7
|
|
|
8
|
+
## Security
|
|
9
|
+
|
|
10
|
+
WebPEER.js uses [`libp2p gossipsub`](https://docs.libp2p.io/concepts/security/security-considerations/#publish--subscribe) to enables communication between peers.
|
|
11
|
+
> By default, the gossipsub implementation will sign all messages with the author’s private key, and require a valid signature before accepting or propagating a message further. This prevents messages from being altered in flight, and allows recipients to authenticate the sender.
|
|
12
|
+
|
|
13
|
+
> However, as a cooperative protocol, it may be possible for peers to interfere with the message routing algorithm in a way that disrupts the flow of messages through the network.
|
|
14
|
+
|
|
8
15
|
## Features
|
|
9
16
|
|
|
10
17
|
* ✅ Decentralized P2P
|
|
11
|
-
* ✅
|
|
18
|
+
* ✅ Scalable Peers
|
|
12
19
|
* ✅ Works in Browsers
|
|
13
|
-
* ✅ Broadcast
|
|
14
|
-
|
|
15
|
-
## Security
|
|
20
|
+
* ✅ Broadcast Messages
|
|
21
|
+
* ✅ Censorship Resistant
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
## Browser Support
|
|
24
|
+
 |  |  |  |  |  |
|
|
25
|
+
--- | --- | --- | --- | --- | --- |
|
|
26
|
+
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
|
|
18
27
|
|
|
19
28
|
## Quickstart
|
|
20
29
|
|