ws-sync
JSON →A state synchronization library for React frontends that uses a WebSocket and JSON/JSON Patch protocol to keep Zustand stores in sync with a backend (Python reference implementation available). Current stable version is 0.8.3. Release cadence is irregular; actively maintained as of 2025. Key differentiators: follows Zustand's philosophy of state outside React, uses Immer for efficient JSON Patch generation, minimal boilerplate with a synced() middleware, and provides a lightweight Session object for WebSocket management. Requires React 18+, React DOM 18+, and Zustand 5.x. Peer dependencies include zustand@^5.0.0.
Resources
packagews-sync ↗