
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
scuttler is a module that helps you write distributed, cross-platform network applications that automatically connect their users.
npm install scuttler
// Specify a port for the internal TCP server.
var scuttler = new Scuttler(port)
// Send a message to all peers.
// String, Number, Object, and Array
// objects are all acceptable.
scuttler.write(message)
// Read the latest data from a given user.
// Note: The user argument is an IP address.
scuttler.read(user)
// Listen for messages from all peers.
scuttler.on('message', function(message, user) {})
// Listen for peer connection/disconnection.
scuttler.on('connect', function(user) {})
scuttler.on('disconnect', function(user) {})
This is a really basic (read: shitty) chat application, taken from the project’s example directory. Any computer on the network that runs the program will be automatically connected with everybody else. They’ll also be presented with the most recent messages of all of their peers.
var Scuttler = require('scuttler')
var scuttler = new Scuttler(process.argv[2])
process.stdin.on('data', function(data) {
scuttler.write(data.toString())
})
scuttler.on('message', function(message, user) {
if (user !== this.user)
process.stdout.write(user + ': ' + message)
})
scuttler.on('connect', function(user) {
process.stdout.write('-- ' + user + ' connected --\n')
})
scuttler.on('disconnect', function(user) {
process.stdout.write('-- ' + user + ' disconnected --\n')
})
I love tests, but I’m not really sure how to write them for this module, seeing as it relies on communication with other computers. If you have any ideas, get in touch, but for what it’s worth, all the major dependencies have tests, and the example application runs without error on OS X, Linux, and Windows.
FAQs
Automatic network communication
We found that scuttler 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.