
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
actually-serverless
Advanced tools
Connecting peers using torrent technologies.
Easily create serverless web rtc connections based on a connection string.
npm install --save actually-serverless
or yarn
yarn add actually-serverless
Here is a very basic usage.
import actuallyServerless from "actually-serverless"
let peers = []
const stopLookingForPeers = actuallyServerless({
connectionString: "Any string you want to use to discover peers.",
// each peer is an extended version of https://github.com/feross/simple-peer
// with onMessage and sendMessage added.
onPeer: peer => {
peers.push(peer)
peer.on('close', () => {
peers = peers.filter(p => p !== peer)
})
peer.onMessage((meesage) => {
console.log('message from a peer: ', message)
}))
peer.sendMessage("welcome to my peer group, I know about " + peers.length + " peers")
}
})
// to teardown
stopLookingForPeers()
peers.forEach(peer => peer.destroy())
Try out the serverless chat room! See the source for more advanced usage.
See the readme for create react app, if you want to play with the demo src.
Webtorrent is kind of a PITA with webpack. See: https://github.com/webtorrent/webtorrent/issues/347
You will probably run into issues with minifying, what you end up needing to do is split webpack into it's own bundle and ignore that bundle for minificaiton.
FAQs
Connecting peers using torrent technologies.
We found that actually-serverless 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.