JavaScript HTTP and data fetching libraries
Explore Axios, TanStack Query, SWR, and other packages for HTTP requests and asynchronous application data.
8 indexed packages. Inspect package specifications and compare alternatives according to their actual role in your application.
Packages in this category
- TanStack Query: Powerful asynchronous state management for your applications.
- SWR: React Hooks for data fetching with a stale-while-revalidate strategy.
- axios: Promise based HTTP client for the browser and node.js
- graphql-request: Minimal GraphQL client supporting Node and browsers for scripts or simple apps.
- @apollo/client: A fully-featured caching GraphQL client.
- urql: A highly customizable and versatile GraphQL client for React
- ky: Tiny and elegant HTTP client based on the Fetch API
- ofetch: A better fetch API. Works on node, browser and workers.
What to compare
- Separate an HTTP request client from a data-cache and synchronization layer.
- Check documented cancellation, retries, authentication hooks, and request/response handling.
- Inspect browser and server requirements and any required framework integration.
- Treat download counts as adoption signals, not proof that the API fits your network workflow.
Example package specifications
@tanstack/react-query
| Latest version | 5.105.0 |
|---|---|
| Runtime dependencies | 1 |
| Bundled types | Bundled declarations |
| Gzip measurement | 12.89 KiB |
Evidence and freshness
- https://registry.npmjs.org/%40tanstack%2Freact-query/5.105.0 — retrieved 2026-10-29T05:08:40.777Z
- https://api.deps.dev/v3/systems/npm/packages/%40tanstack%2Freact-query/versions/5.105.0 — retrieved 2026-10-29T05:08:40.923Z
- https://api.deps.dev/v3/systems/npm/packages/%40tanstack%2Freact-query/versions/5.105.0:dependencies — retrieved 2026-10-28T23:29:56.315Z
- https://bundlephobia.com/api/size?package=%40tanstack%2Freact-query%405.105.0 — retrieved 2026-10-28T23:29:56.391Z
- https://api.deps.dev/v3/projects/github.com%2FTanStack%2Fquery — retrieved 2026-10-29T05:08:41.110Z
swr
| Latest version | 2.5.1 |
|---|---|
| Runtime dependencies | 2 |
| Bundled types | Bundled declarations |
| Gzip measurement | 5.58 KiB |
Evidence and freshness
- https://registry.npmjs.org/swr/2.5.1 — retrieved 2026-10-29T05:09:02.277Z
- https://api.deps.dev/v3/systems/npm/packages/swr/versions/2.5.1:dependencies — retrieved 2026-10-28T23:29:57.483Z
- https://api.deps.dev/v3/systems/npm/packages/swr/versions/2.5.1 — retrieved 2026-10-29T05:09:02.427Z
- https://bundlephobia.com/api/size?package=swr%402.5.1 — retrieved 2026-10-28T23:29:57.401Z
- https://api.deps.dev/v3/projects/github.com%2Fvercel%2Fswr — retrieved 2026-10-29T05:09:02.666Z