T
ToolShelf
ZUSTAND SYNC
// A simple, barebones "multiplayer" middleware for zustand

Zustand Sync

A simple, barebones "multiplayer" middleware for zustand

13EmergingUnknown
License
MIT
Updated
Today

What it does

https://github.com/user-attachments/assets/bdb22ca8-0ecc-4185-9c25-f61cab7feb61 A barebones middleware to sync zustand stores across multiple clients. uses JSON Patch (RFC 6902) under the hood to translate state changes into patches that can be sent over a transport layer. In your react project with zustand installed: Then, add to your zustand with the : - [x] Basic WebSocket transport provider -

Getting Started

git
git clone https://github.com/ryanntannn/zustand-sync

Platforms

🪟windows🍎mac🐧linux

Install Difficulty

moderate

Built With

typescript

Community Reactions