query vs zustand
query and zustand are two comparable TypeScript projects, each with trade-offs depending on your needs. Both have comparable adoption (49,751 and 58,297 stars). Both are MIT-licensed.
| query | zustand | |
|---|---|---|
| Summary | TanStack Query is an async state management library for fetching, caching, synchronizing, and updating server state in web apps. It abstracts the lifecycle of asynchronous data with declarative queries and mutations, supporting any data source (REST, GraphQL, promises) across React, Vue, Svelte, Solid, and Angular. | Zustand is a minimal, hook-based state management library for React (with a framework-agnostic vanilla core) built on simplified flux principles. It avoids context providers and boilerplate while handling React's tricky edge cases like zombie children and concurrency. |
| Category | State management | State management |
| Language | TypeScript | TypeScript |
| License | MIT | MIT |
| Stars | 49,751 | 58,297 |
| Downloads/wk | — | — |
| Security | — | — |
| Health | 100 | 100 |
| Last commit | 6/14/2026 | 6/14/2026 |
| Source | GitHub | GitHub |