query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

50.6k
Stars
+3.3k
Gained
7.0%
Growth
TypeScript
Language

💡 Why It Matters

This library addresses the complexity of managing asynchronous server state in web applications by providing a unified approach to fetching, caching, synchronizing, and updating data. Unlike basic data fetching libraries, it supports protocol-agnostic fetching, handling REST, GraphQL, and promises with features like pagination, infinite scroll, mutations, and dependent queries. Its integration with React Suspense and support for background updates and query cancellation differentiate it from simpler alternatives. Frontend developers and engineering leads benefit most, especially when working with dynamic data that requires fine-grained cache management and synchronization. With over 50,000 stars, active development as recent as November 2026, and steady growth, it is a mature and widely adopted solution. It is not suitable if you need a full-fledged global state management library or server-side caching outside the client context; alternatives like Redux Toolkit Query or Apollo Client might then be better fits.

🎯 When to Use

Choose this library when you need efficient client-side asynchronous state management with advanced caching and background updating in React or other supported frameworks. If your project requires deep integration with GraphQL or more opinionated server state handling, Apollo Client or Relay are worth considering instead.

👥 Team Fit & Use Cases

Commonly used in frontend applications that consume REST or GraphQL APIs with complex caching needs, such as dashboards with live updates, paginated feeds, or infinite scroll interfaces. It also fits well in teams building React, Solid, Svelte, or Vue apps where fine control over server state synchronization improves user experience.

🎭 Best For

🏷️ Topics & Ecosystem

async cache data fetch graphql hooks query react rest solid stale stale-while-revalidate svelte typescript update vue

📊 Activity

Latest commit: 2026-11-23. Over the past 373 days, this repository gained 3.3k stars (+7.0% growth). Activity data is based on daily RepoPi snapshots of the GitHub repository.