Zustand cookie storage
JSON →zustand-cookie-storage v1.1.1 is a lightweight utility for persisting Zustand store state in cookies. It integrates with Zustand's built-in persist middleware via `createJSONStorage(() => cookieStorage)`. Key differentiator: purely cookie-based persistence (no localStorage/IndexedDB), making it suitable for server-side rendering or scenarios where cookies are mandatory. The library is actively maintained, with TypeScript types included. It offers limited customization of cookie attributes but does not support asynchronous storage adapters. Alternatives include zustand/middleware's default storage and zustand-persist.
Traffic · last 30 days ↑75% vs prev 7d
total hits 19
actors 4 distinct systems
last hit 12d ago MJ12bot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · BD · 🇨🇦 Canada
Resources
packagezustand-cookie-storage ↗
API endpoints
full doc /v1/registry/zustand-cookie-storage