
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
notify-over-http
Advanced tools
Listen and broadcast changes to id's across a clustered network simply over http.
Listen and broadcast changes to id's across a clustered network simply over http.
const http = require('http');
const createNotifyServer = require('notify-over-http');
// Create an instance of the notify server specifing all servers in the cluster
const notifyServer = createNotifyServer({
servers: [{
url: `https://localhost:8000/notify`,
headers: {
'x-secret': 'supersecret'
}
}]
});
// Broadcast to the network that ID 1 has changed every second
// -- Method 1 - Via the internal API
setInterval(() => {
notifyServer.broadcast('1');
}, 1000);
// -- Method 2 - Via an HTTP post to any node
setInterval(() => {
http.request('http://localhost:8000/notify?id=3', { method: 'POST' }).end();
}, 2000);
// Create an http server to handle the notification requests
http.createServer((request, response) => {
// Only pass to the handler if the url starts with '/notify'
// This path can be whatever you want
if (request.url.startsWith('/notify')) {
return notifyServer.handle(request, response);
}
// If it's not for the notifier, do whatever you want...
response.writeHead(404);
response.end('not found');
}).listen(8000);
// Watch for notifications
http.request('http://localhost:8000/notify?id=1&id=3', function (response) {
response.on('data', data => console.log(data.toString()));
}).end();
FAQs
Listen and broadcast changes to id's across a clustered network simply over http.
We found that notify-over-http 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.