
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
ez-sync-js
Advanced tools
This is an agnostic javascript library that synchronizes shared data/state throughout your app. It is tiny, unopinionated and can interface with and/or replace Redux. It can easily be extended to coordinate with an API or something like firebase or pubnub
This is an agnostic javascript library that synchronizes shared data/state throughout your app. It is tiny, unopinionated and can interface with and/or replace Redux. It can easily be extended to coordinate with an API or something like firebase or pubnub. It is optimized for high performance and low foot print and has zero dependencies.
You can use sync with or without React, Redux, or any other framework.
raw usage without React or Redux:
import sync from 'ez-sync-js/Sync
// update a value
sync.dispatch('myVar', 'some value')
// repeat the last update
sync.echo('myVar')
...
// gets the latest update
const myVar = sync.get('myVar').detail
...
// subscribe to future updates
sync.addListener('myVar', callback)
// unsubscribe
sync.removeListener('myVar', callback)
Is used just like useState except now you can have different React components anywhere in the app or dom that share the same values (sync) without depending on Redux or Context, nor do the components have to be running concurrently to stay syncrhonized.
See the demo
React usage:
import {useSync} from 'ez-sync-js'
const [myVar, setVar] = useSync('myVar','optional initial value')
https://github.com/chadsteele/sync
It's called ez-sync-js https://www.npmjs.com/package/ez-sync-js
FAQs
This is an agnostic javascript library that synchronizes shared data/state throughout your app. It is tiny, unopinionated and can interface with and/or replace Redux. It can easily be extended to coordinate with an API or something like firebase or pubnub
The npm package ez-sync-js receives a total of 0 weekly downloads. As such, ez-sync-js popularity was classified as not popular.
We found that ez-sync-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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.