
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
WebRTC/RTCPeerConnection signaling library to allow browser-based users to act as signaling servers for other peers.
Bonfire allows you to connect peers to other peers using existing peer connections. It won't create a peer network for you. Instead, it gives you the power to easily create your own network without having to worrying about the signaling process.
Bonfire allows you to do 3 things:
npm install bonfires
bonfire.js
SignalFire.js/client/src/signalfire-client.js
SignalFire.js/client/src/adaptor.js
SignalFire.js/client/src/socket.io.js
These files can also be found in the SignalFire.js GitHub repo: SignalFire.js
Bonfire is intended to easily integrate with SignalFire.js, which is used in the example below:
var mySignalingOptions = {
// A function that will be called when another peer calls `requestPeer`
onSignalingRequest: function(configData){
// Must return a datachannel. The requesting peer will then be connected to the
// peer at the other end of the datachannel
return datachannelOfAnotherPeer;
},
respondingConnector: function(newPeerConnection, configData, callback){
var signalFireOptions = {
// newPeerConnection must be passed as the SignalFire `server` option.
// This automates the RTCPeerConnection setup
server: newPeerConnection,
// there are more required options for SignalFire.js
// More info can be found at: https://github.com/traviswimer/SignalFire.js
};
theSocket = signalfire.connect(signalFireOptions, function(theConnection){});
},
initiatingConnector: function(newPeerConnection, configData, callback){
var signalFireOptions = {
// newPeerConnection must be passed as the SignalFire `server` option.
// This automates the RTCPeerConnection setup
server: newPeerConnection,
// there are more required options for SignalFire.js
// More info can be found at: https://github.com/traviswimer/SignalFire.js
};
theSocket = signalfire.connect(signalFireOptions, function(theConnection){});
}
};
var bonfireObject = bonfire(datachannelOfAPeer, mySignalingOptions);
bonfireObject.requestPeer({
// optional parameters to pass to the signaling server
});
To get a better understanding of how to use Bonfire, try out the code in the "examples" directory.
FAQs
Enables WebRTC Peers to act as Signaling Servers
The npm package bonfires receives a total of 1 weekly downloads. As such, bonfires popularity was classified as not popular.
We found that bonfires demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.