{"library":"persist-and-sync","type":"library","category":null,"description":"Zustand middleware for persisting and syncing state across browser tabs, windows, and iframes (same origin). Current stable version is 1.2.3, released regularly with a focus on reliability. It uses the Broadcast Channel API for instant cross-tab synchronization and localStorage (or sessionStorage/cookies) for persistence. Differentiators include sub-1kB size, full TypeScript support, fire-and-forget state updates optimized for single-user systems, and exclude/include filters for selective syncing. Alternatives like zustand's built-in persist middleware lack cross-tab sync out of the box.","language":"javascript","status":"active","version":"1.2.3","tags":["javascript","web","api","broadcast","channel","sync-tabs","sync-windows","sync","broadcast-channel","typescript"],"install":[{"cmd":"npm install persist-and-sync","imports":["import { persistNSync } from 'persist-and-sync'","import type { PersistNSyncOptions } from 'persist-and-sync'","const { persistNSync } = require('persist-and-sync')"]},{"cmd":"yarn add persist-and-sync","imports":[]},{"cmd":"pnpm add persist-and-sync","imports":[]}],"homepage":null,"github":"https://github.com/react18-tools/persist-and-sync","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/persist-and-sync","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/persist-and-sync/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}