
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.
Install. npm i relay-js
Establish a connection. Use Relay class and a link from backend:
const Relay = require('relay-js');
const relay = new Relay('http://example.com/?id=259360a3-0082-4503-94bf-9385a5df42');
Subscribe to channels. Ask backend about available channels and join them if you need to. Example:
relay.connect().then(() => {
relay.subscribe(['notifications'], {token: 'secret'}, (channel, data) => {
if(channel === 'notifications') {
Notification.show(data.message);
}
});
});
Make a request to the server. With Relay you can respond to channels messages or make independent requests. Relay will transmit the server's response.
let data = await relay.request({action: "notification_read", id: 795});
FAQs
POST messages through websockets
The npm package relay-js receives a total of 0 weekly downloads. As such, relay-js popularity was classified as not popular.
We found that relay-js 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.