
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.
@boostbank/stateless
Advanced tools
The goal of stateless is to allow for actions/events to happen in a JavaScript application without forcing coupling to a global state.
npm i @boostbank/stateless --save
const {addEvent, listen, dispatch} = require("@boostbank/stateless");
const NAME = "componentEvent";
const componentEvent = () => {
return {
id: NAME,
payload: {
worksWith: ["Node.js", "React", "Chrome", "Firefox", "Edge", "IE 11", "And many more!"]
}
};
};
function main() {
// You have to add an event to stateless for it to listen for it.
addEvent(NAME);
// Listen to an event passing the name of the event you want to listen to.
// Then an unique identifier for the listener.
// Then a function with 1 parameter for the event.
// Its recommended to use a UUID for the uid.
listen(NAME, "12345", eventCallback);
// Another Example.
listen(NAME, "123456", event => {
console.log("Inline Event");
console.log(event.payload);
});
// Dispatching Events
dispatch(componentEvent());
}
const eventCallback = event => {
console.log("Component Event");
console.log(event.payload);
};
main();
// Pure Node.
const Stateless = require("@boostbank/stateless");
/**
* You dispatch events much like actions in redux but they do not directly modify state.
* The main difference between an action in redux and an event is you make a function that returns an object instead.
* The required property on an event is the id the rest is up to you.
*/
const NAME = "componentEvent";
const componentEvent = () => {
return {
id: NAME,
payload: {
worksWith: ["Node.js", "React", "Chrome", "Firefox", "Edge", "Opera", "IE 11", "And many more!"]
}
};
};
function main() {
// You have to add an event to stateless for it to listen for it.
Stateless.addEvent(NAME);
// Listen to an event passing the name of the event you want to listen to.
// Then an unique identifier for the listener.
// Then a function with 1 parameter for the event.
// Its recommended to use a UUID for the uid.
Stateless.listen(NAME, "12345", eventCallback);
// Another Example.
Stateless.listen(NAME, "123456", event => {
console.log("Inline Event");
console.log(event.payload);
});
// Dispatching Events
Stateless.dispatch(componentEvent());
}
const eventCallback = event => {
console.log("Component Event");
console.log(event.payload);
};
main();
FAQs
Stateless Event System for JS
We found that @boostbank/stateless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.