
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.
paragon-sync-client
Advanced tools
[](https://ci.appveyor.com/project/Paragon/sync-client)
This library enables synchronising the state of a redux app across multiple clients. It works with sync-server to distribute the state using a master client and then replicate every redux action across all connected clients.
npm install --save-dev paragon-sync-clientCheck out the sync-client-demo repository for a proof-of-concept redux app using this library.
// Creating an instance of SyncClient begins the process of connecting to the server and preparing
// to receive remote actions
const client = new SyncClient({
// The websocket url of a running sync-server
serverUrl: 'ws://localhost:9090',
// State will be synchronized with all other clients in the specified room
room: 'pdf-client.job.42',
// (optional): you can whitelist only the actions that should be synchronized.
synchronizedActions: ['SOMETHING_HAPPENED', 'SOMETHING_ELSE_HAPPENED'],
// (optional): you can whitelist only the parts of state that should be synchronized.
// Currently if you whitelist any part of the state you must also whitelist every action that might
// cause that state to change. However this will become more flexible in the future.
synchronizedState: [
'annotations.annotationData',
{
documents: ['pdfData', 'pdfCount']
}
]
});
// Wrap the application's root reducer using `synchronizedReducer`, and make sure to install
// the sync middleware into your redux store
const reduxStore = createStore(createSynchronizedReducer(rootReducer), client.middleware);
// After the store is created using the synchronized reducer and middleware, call #synchronize
// to begin synchronizing it with any other clients in the specified room
client.synchronize(reduxStore);
// The connect event will fire as soon as a successful connection has been made to the synchronization server
client.on('connect', () => {
// If possible, it's helpful to load the redux store's initial state from the master client to
// ensure consistency
if (client.hasMaster) client.loadInitialStateFromMaster();
});
FAQs
[](https://ci.appveyor.com/project/Paragon/sync-client)
The npm package paragon-sync-client receives a total of 16 weekly downloads. As such, paragon-sync-client popularity was classified as not popular.
We found that paragon-sync-client 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.