Skip to content

SynState

A lightweight, high-performance state management library for TypeScript/JavaScript. Simple global state that scales to complex async pipelines — with built-in debounce, switchMap, and more. Fully compatible with React Compiler.

Simple State Management

Easy-to-use createState and createReducer similar to React useState / useReducer for global state.

High Performance

Glitch-free O(n) propagation — up to 30× faster than Jotai and 16× faster than Redux. See benchmarks.

Lightweight

~4.5 kB min+gzip with only one external runtime dependency.

Built-in Async Operators

debounce, throttle, switchMap, and more — handle complex async flows in a unified, declarative API without external libraries.

React-Optimized

Fully compatible with React Compiler. synstate-react-hooks lets you add global state to any component in just a few lines.

Framework Agnostic

Core library works as-is with vanilla JavaScript, Vue, Svelte, or any framework. For React and Preact, hooks wrappers are available. For Preact, a Preact Signals integration is also provided.