Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

README.md

93 lines4.7 KB

1<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" />
2​
3<div align="center">
4 <img src="./media/header_query.png" alt="TanStack Query" />
5</div>
6​
7An async state management library built to simplify fetching, caching, synchronizing, and updating server state.
8​
9- Protocol‑agnostic fetching (REST, GraphQL, promises, etc.)
10- Caching, refetching, pagination & infinite scroll
11- Mutations, dependent queries & background updates
12- Prefetching, cancellation & React Suspense support
13​
14<a href="https://tanstack.com/query" style="font-weight: bold">Read the Query Docs →</a>
15<br />
16​
17<div align="center" style="display: flex; gap: 10px; flex-direction: column; justify-content: center;">
18​
19<div align="center">
20<a href="https://www.npmjs.com/package/@tanstack/query-core" target="\_parent">
21 <img alt="" src="https://img.shields.io/npm/dm/@tanstack/query-core.svg" alt="npm downloads" />
22</a>
23 <a href="https://github.com/TanStack/query/" target="\_parent">
24 <img alt="" src="https://img.shields.io/github/stars/TanStack/query.svg?style=social&label=Star" alt="GitHub stars" />
25</a>
26<a href="https://bundlejs.com/?q=%40tanstack%2Freact-query&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
27 <img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" alt="Bundle size" />
28</a>
29</div>
30​
31<div align="center">
32<a href="#badge">
33 <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
34 </a>
35<a href="https://bestofjs.org/projects/tanstack-query"><img alt="Best of JS" src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%2Fquery%26since=daily" /></a>
36 <a href="https://twitter.com/tan_stack"><img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/></a>
37</div>
38​
39<div align="center" style="font-size: 2rem; font-weight: bolder;">
40​
41[Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
42​
43</div>
44​
45</div>
46​
47## Get Involved
48​
49- We welcome issues and pull requests!
50- Participate in [GitHub discussions](https://github.com/TanStack/query/discussions)
51- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
52- See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
53​
54## Partners
55​
56<div style="display: flex; flex-wrap: wrap; gap: 50px; justify-content: center; align-items: center;">
57<a href="https://www.speakeasy.com/product/react-query?utm_source=tanstack&utm_campaign=tanstack">
58 <picture>
59 <source
60 srcset="https://tanstack.com/assets/speakeasy-dark-BjP-Hd9M.svg"
61 media="(prefers-color-scheme: dark)"
62 />
63 <source
64 srcset="https://tanstack.com/assets/speakeasy-light-UpY7QmwQ.svg"
65 media="(prefers-color-scheme: light)"
66 />
67 <!-- fallback -->
68 <img
69 src="https://tanstack.com/assets/speakeasy-light-UpY7QmwQ.svg"
70 alt="Speakeasy Logo"
71 />
72 </picture>
73</a>
74</div>
75​
76## Explore the TanStack Ecosystem
77​
78<div align="center">
79<a href="https://github.com/tanstack/config" style="font-weight: bold;">TanStack Config</a> – Tooling for JS/TS packages <br/>
80 <a href="https://github.com/tanstack/db" style="font-weight: bold;">TanStack DB</a> – Reactive sync client store <br/>
81 <a href="https://github.com/tanstack/devtools" style="font-weight: bold;">TanStack DevTools</a> – Unified devtools panel <br/>
82 <a href="https://github.com/tanstack/form" style="font-weight: bold;">TanStack Form</a> – Type‑safe form state <br/>
83 <a href="https://github.com/tanstack/pacer" style="font-weight: bold;">TanStack Pacer</a> – Debouncing, throttling, batching <br/>
84 <a href="https://github.com/tanstack/ranger" style="font-weight: bold;">TanStack Ranger</a> – Range & slider primitives <br/>
85 <a href="https://github.com/tanstack/router" style="font-weight: bold;">TanStack Router</a> – Type‑safe routing, caching & URL state<br/>
86 <a href="https://github.com/tanstack/router" style="font-weight: bold;">TanStack Start</a> – Full‑stack SSR & streaming<br/>
87 <a href="https://github.com/tanstack/store" style="font-weight: bold;">TanStack Store</a> – Reactive data store <br/>
88 <a href="https://github.com/tanstack/table" style="font-weight: bold;">TanStack Table</a> – Headless datagrids <br/>
89 <a href="https://github.com/tanstack/virtual" style="font-weight: bold;">TanStack Virtual</a> – Virtualized rendering <br/>
90 … and more at <a href="https://tanstack.com" style="font-weight: bold;">TanStack.com »</a>
91</div>
92​
93<!-- Use the force, Luke -->