{"library":"ws-sync","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.8.3","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ws-sync","imports":["import { Session } from 'ws-sync'","import { synced } from 'ws-sync'","import { useSync } from 'ws-sync'"]},{"cmd":"yarn add ws-sync","imports":[]},{"cmd":"pnpm add ws-sync","imports":[]}],"homepage":"https://github.com/JoongWonSeo/ws-sync-react#readme","github":"https://github.com/JoongWonSeo/ws-sync-react","docs":null,"changelog":null,"pypi":null,"npm":"ws-sync","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}