Global state that
avoids provider hell.
Stop wrestling with <Provider> or complex boilerplate. SuperState is built on useSyncExternalStore for fine-grained reactivity and zero-setup global state.
Zero Boilerplate
No store files, no <Provider> at the root, no complex configuration. Just a string key to share state.
Fine-grained Reactivity
Built on useSyncExternalStore. Only components watching a specific key (or sub-key) re-render.
TypeScript First
Full type safety and intelligent inference out of the box. No generics required for basic usage.
Production Ready
Minimal footprint, persistent global state, and robust batching for high-performance applications.
Getting Started
SuperState uses an **Owner / Consumer** pattern. If you know how to use useState, you already know SuperState. Promote any local state to a global one just by adding a string key.
Standard Hook Usage
Global vs Local
Remove the key to make it local. Add it back to share it. Works exactly like React's useState.
Dot-Notation
Subscribe directly to nested object properties. Your component will only re-render if that specific property changes.
Store Utilities
Access and manipulate your global state outside of React components. Perfect for API headers, middleware, or utility functions.
Build faster, cleaner apps.
SuperState is developed by Sheikh Ahsan Talal and the open-source community. Join developers using global state that feels like a native React hook.