
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.
A `(state, action) => state` key-value event emitting store for TypeScript and JavaScript apps
Store app state as key-value pairs.
Update state using a reactive (state, action) => state pattern.
Listen for changes to a key; get notified if-and-only-if it changes (never when another key changes).
npm install dyad
const Dyad = require('dyad')
const store = Dyad.getInstance()
// Set initial `counter` state.
store.initialize({counter: 0})
// Register listener for changes to `counter`.
store.on('counter', (nextValue) => {
console.log(nextValue)
})
// Register reducers.
store.bind({
DECREMENT: (_, set, action) => set('counter', (prevValue) => --prevValue),
INCREMENT: (_, set, action) => set('counter', (prevValue) => ++prevValue)
})
// Dispatch actions.
store.dispatch({type: 'INCREMENT'})
store.dispatch({type: 'INCREMENT'})
store.dispatch({type: 'INCREMENT'})
store.dispatch({type: 'DECREMENT'})
store.dispatch({type: 'DECREMENT'})
// Logs `1` exactly once.
FAQs
A `(state, action) => state` key-value event emitting store for TypeScript and JavaScript apps
We found that dyad 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.