{"library":"zustand-sync-tabs","type":"library","category":null,"description":"zustand-sync-tabs is a lightweight (~1KB minzipped) middleware for Zustand that facilitates seamless state synchronization across multiple browser tabs, windows, and iframes, provided they share the same origin. The current stable version is 0.2.3. It offers a 'fire and forget' setup, making it ideal for single-user applications that need consistent state across browsing contexts. Key differentiators include its small bundle size, full TypeScript support, and robust handling of one-writer/many-reader scenarios. It leverages the Broadcast Channel API (or localStorage fallback) for communication and supports both full and partial state sharing via include/exclude options for specific fields.","language":"javascript","status":"active","version":"0.2.3","tags":["javascript","web","api","broadcast","channel","sync-tabs","sync-windows","sync","broadcast-channel","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install zustand-sync-tabs","imports":["import { syncTabs } from 'zustand-sync-tabs';","import { create } from 'zustand';\nimport { syncTabs } from 'zustand-sync-tabs';\n\ntype MyStore = {\n  count: number;\n  set: (n: number) => void;\n};"]},{"cmd":"yarn add zustand-sync-tabs","imports":[]},{"cmd":"pnpm add zustand-sync-tabs","imports":[]}],"homepage":null,"github":"https://github.com/react18-tools/zustand-sync-tabs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/zustand-sync-tabs","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/zustand-sync-tabs/compatibility"}}