@banou/ripple 0.0.40 → 0.0.42
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 +13 -6
- package/assets/webrtc-DCtPDVeu.wasm +0 -0
- package/assets/worker-BBuQVIu1.js +27 -0
- package/{de-BByk96M5.js → de-f2AVyBur.js} +7 -0
- package/{es-419-BSBCtqRj.js → es-419-CjvXqRKH.js} +9 -2
- package/fkn.json +1 -1
- package/{fr-DTVt1r9F.js → fr-BqAWZMOU.js} +7 -0
- package/index.js +10582 -9671
- package/{it-DFIqX3Zv.js → it-YU3KUI8-.js} +9 -2
- package/{ja-BNOeE4ac.js → ja-B7820KaN.js} +7 -0
- package/{ko-AySLianc.js → ko-CwzPeJqO.js} +7 -0
- package/package.json +1 -1
- package/{pl-CbVJGC-B.js → pl-BbzVHslS.js} +7 -0
- package/{pt-BR-BcfbDHsH.js → pt-BR-ClZSKJdC.js} +9 -2
- package/{ru-BuCRhXdv.js → ru-B030ilIg.js} +7 -0
- package/sw.js +2 -2
- package/{tr-C_v8NzIK.js → tr-Cle6lDex.js} +7 -0
- package/{zh-Hans-D_1CA1C3.js → zh-Hans-E0lR_xLM.js} +7 -0
- package/{zh-Hant-CQCQPnti.js → zh-Hant-DwmkgxT0.js} +7 -0
- package/assets/worker-C2UPJ1F3.js +0 -24
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Download and stream torrents in your browser. Ripple runs a real BitTorrent engine
|
|
4
4
|
([libtorrent](https://www.libtorrent.org), compiled to WebAssembly) in the page, reaches peers
|
|
5
|
-
through the [FKN](https://fkn.app) relay,
|
|
6
|
-
install and no Ripple server.
|
|
5
|
+
through the [FKN](https://fkn.app) relay, or straight from the browser over WebRTC with the VPN
|
|
6
|
+
off, and plays a video while it downloads. There is nothing to install and no Ripple server.
|
|
7
7
|
|
|
8
8
|
- Live at [torrent.fkn.app](https://torrent.fkn.app), and inside FKN at
|
|
9
9
|
[fkn.app/app/npm:@banou/ripple](https://fkn.app/app/npm:@banou/ripple)
|
|
@@ -26,6 +26,8 @@ install and no Ripple server.
|
|
|
26
26
|
- **One engine for all your tabs.** One tab runs it and the others use it.
|
|
27
27
|
- **Speed limits** for everything or per torrent, and the peers, trackers, files and all-time share
|
|
28
28
|
ratio of each torrent.
|
|
29
|
+
- **A VPN switch.** On, peers and trackers see the FKN relay's address. Off, Ripple reaches WebRTC
|
|
30
|
+
peers straight from the browser, unmetered, and they see yours.
|
|
29
31
|
- **No Ripple account and no analytics.**
|
|
30
32
|
|
|
31
33
|
## How it is built
|
|
@@ -37,7 +39,11 @@ install and no Ripple server.
|
|
|
37
39
|
under a Web Lock and the others reach it over a BroadcastChannel (`engine-election.ts`,
|
|
38
40
|
`engine-share.ts`).
|
|
39
41
|
- **Network**: `@fkn/lib/net` and `@fkn/lib/dgram`, carried through the FKN relay (`relayWorker`
|
|
40
|
-
bridges the worker). Inbound peers reach a port the relay reserves.
|
|
42
|
+
bridges the worker). Inbound peers reach a port the relay reserves, and the relay looks names up.
|
|
43
|
+
WebRTC peers come through `libtorrent-wasm/webtorrent` (`src/torrent/webrtc-peers.ts`): with the
|
|
44
|
+
VPN on over the engine's own WebRTC stack and a UDP socket of the relay, with it off over the
|
|
45
|
+
browser's `RTCPeerConnection`, in an engine that has no relay at all. `src/torrent/vpn-config.ts`
|
|
46
|
+
names the trackers and the STUN host, and holds the one constant that stops all of it.
|
|
41
47
|
- **Storage**: OPFS, or a folder you grant (`src/torrent/hybrid-storage.ts`). The list, resume data
|
|
42
48
|
and thumbnails are in IndexedDB.
|
|
43
49
|
- **Player**: [`@banou/media-player`](https://www.npmjs.com/package/@banou/media-player) at
|
|
@@ -126,9 +132,10 @@ Why each part works the way it does is in [docs/embedding.md](./docs/embedding.m
|
|
|
126
132
|
|
|
127
133
|
Ripple needs no account and runs no analytics. Your list and your files stay in your browser, or in
|
|
128
134
|
a folder you choose. Signed in to FKN, your list and its thumbnails sync to your FKN account,
|
|
129
|
-
encrypted in your browser first. Peers see the FKN relay's address, not yours
|
|
130
|
-
|
|
131
|
-
(
|
|
135
|
+
encrypted in your browser first. Peers and trackers see the FKN relay's address, not yours, unless
|
|
136
|
+
you turn the VPN off: they then see your own, and so does the STUN server that tells your browser
|
|
137
|
+
its address. The [privacy page](https://torrent.fkn.app/privacy) lists what Ripple keeps and names
|
|
138
|
+
each of those hosts (`src/router/privacy.tsx`).
|
|
132
139
|
|
|
133
140
|
## License
|
|
134
141
|
|
|
Binary file
|