P
P (GitHub: oztu / p, License: Apache 2, npm: onramp, bower: p) by Ozan Turgut is a client-side library with a WebSocket server for creating P2P networks by allowing browser-to-browser connections.
The onramp Node module is used to establish connections, but after that it isn’t necessary for communication between clients. The author has...
P
P (GitHub: oztu / p, License: Apache 2, npm: onramp, bower: p) by Ozan Turgut is a client-side library with a WebSocket server for creating P2P networks by allowing browser-to-browser connections.
The onramp Node module is used to establish connections, but after that it isn’t necessary for communication between clients. The author has written up documentation with diagrams to explain how it works. Like other similar projects, the underlying technology is WebRTC, so it only works in Chrome or Firefox Nightly.
EasyWebWorker
EasyWebWorker (GitHub: ramesaliyev / EasyWebWorker, License: MIT) by Rameş Aliyev is a wrapper for web workers which allows functions to be executed directly, and can execute global functions in the worker.
A fallback is provided for older browsers:
# Create web worker fallback if browser doesnt support Web Workers.ifthis.documentisntundefinedand!window.Workerand!window._WorkerPreparedwindow.Worker = _WorkerFallback
The _WorkerFallback
class is provided, and uses XMLHttpRequest
or ActiveXObject
.
The source code is nicely commented if you want to look at what it does in more detail: easy-web-worker.coffee.
OpenPGP.js
Jeremy Darling sent in OpenPGP.js (GitHub: openpgpjs / openpgpjs, License: LGPL), which is an OpenPGP implementation for JavaScript:
This is a JavaScript implementation of OpenPGP with the ability to generate public and private keys. Key generation can be a bit slow but you can also import your own keys.
Jeremy found that OpenPGP.js is used by Mailvelope, which is a browser extension that brings OpenPGP to webmail services like Gmail. That means Mailvelope can encrypt messages without having to upload a private key to a server.
Read more https://feedproxy.google.com/~r/dailyjs/~3/u78qJmakMzw/p-openpgpjs-easywebworker