webpeerjs 0.0.10 → 0.1.1

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 CHANGED
@@ -1,20 +1,25 @@
1
1
  # WebpeerJS
2
- > Simple peer-to-peer in the browser.
2
+ > Simple peer-to-peer communication between applications in browser.
3
3
 
4
- Build completely P2P web applications, no trackers or relay servers required. [WebpeerJS](https://github.com/nuzulul/webpeerjs) enables browser to browser connectivity without a central server. Connecting people safely, privately, openly and reliably.
4
+ Build completely P2P web applications, no trackers or relay servers required. [WebpeerJS](https://github.com/nuzulul/webpeerjs) enables browser to browser connectivity without a central server. Connecting people safely, privately, openly and reliably. Let's create a next generation internet that is fair, free and open.
5
5
 
6
- [Live Demo](https://nuzulul.github.io/webpeerjs/demo/)
6
+ [Basic Connection Demo](https://nuzulul.github.io/webpeerjs/demo/)
7
7
 
8
8
  ## Features
9
9
 
10
- * ✅ Decentralized Network
10
+ * ✅ Decentralized P2P
11
11
  * ✅ Unlimited Peers
12
- * ✅ Works in The Browser
13
- * ✅ Broadcast Message / Room
12
+ * ✅ Works in Browsers
13
+ * ✅ Broadcast Message
14
14
 
15
- ## Install
15
+ ## Quickstart
16
16
 
17
- NPM :
17
+ Try now in [Playground](https://jsbin.com/suwesaliro/1/edit?html,output) :
18
+ ```
19
+ https://jsbin.com/suwesaliro/1/edit?html,output
20
+ ```
21
+
22
+ NPM install:
18
23
 
19
24
  ```
20
25
  npm i webpeerjs
@@ -25,7 +30,7 @@ Browser `<script>` tag :
25
30
  Uses built-in JS files from [latest release](https://github.com/nuzulul/webpeerjs/releases/latest) or [CDN](https://www.jsdelivr.com/package/npm/webpeerjs) will make it's exports available as `webpeerjs` in the global namespace.
26
31
 
27
32
  ```
28
- <script src="https://cdn.jsdelivr.net/npm/webpeerjs@0.0/dist/umd/webpeerjs.min.js"></script>
33
+ <script src="https://cdn.jsdelivr.net/npm/webpeerjs@0.1/dist/umd/webpeerjs.min.js"></script>
29
34
  ```
30
35
 
31
36
  ## Usage
@@ -55,22 +60,16 @@ void async function main() {
55
60
 
56
61
  ## API
57
62
 
58
- - `createWebpeer()` Create a new node.
59
- - `id` The unique ID of the node as an identity in the global network.
60
- - `status` Get the node status, returns `connected` or `unconnected`.
61
- - `peers` Get all connected peers.
62
- - `joinRoom(namespace)` Join to the room, returns an array of three functions (Broadcaster, onListenBroadcast, onMembersUpdate).
63
+ - `createWebpeer()` - Create a new node.
64
+ - `id` - The unique ID of the node as an identity in the global network.
65
+ - `status` - Get the node status, returns `connected` or `unconnected`.
66
+ - `peers` - Get all connected peers.
67
+ - `joinRoom(namespace)` - Join to the room, returns an array of three functions (Broadcaster, onListenBroadcast, onMembersUpdate).
63
68
 
64
69
  ## API Docs
65
70
 
66
71
  [https://nuzulul.github.io/webpeerjs](https://nuzulul.github.io/webpeerjs)
67
72
 
68
- ## Related
69
-
70
- - [simple-peer](https://github.com/feross/simple-peer) - Simple WebRTC video, voice, and data channels.
71
- - [peerjs](https://github.com/peers/peerjs) - Simple peer-to-peer with WebRTC.
72
- - [trystero](https://github.com/dmotz/trystero) - Build instant multiplayer webapps, no server required.
73
-
74
73
  ## License
75
74
 
76
75
  MIT