
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@tanstack/react-query
Advanced tools
Hooks for managing, caching and syncing asynchronous and remote data in React

Hooks for fetching, caching and updating asynchronous data in React
Enjoy this library? Try the entire TanStack! TanStack Table, TanStack Router, TanStack Virtual, React Charts, React Ranger
SWR is a React hooks library for data fetching, similar to @tanstack/react-query. It also provides features like caching, revalidation on focus, and more. SWR focuses on simplicity and ease of use, with a slightly different API design compared to React Query.
Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. It offers more extensive features for working with GraphQL APIs compared to @tanstack/react-query, which is more agnostic in terms of data fetching strategy.
React Fetch Hook is a simpler alternative for data fetching in React. It provides a straightforward useFetch hook for making HTTP requests. While it offers ease of use for simple use cases, it lacks the advanced caching, synchronization, and mutation features of @tanstack/react-query.
FAQs
Hooks for managing, caching and syncing asynchronous and remote data in React
The npm package @tanstack/react-query receives a total of 6,050,450 weekly downloads. As such, @tanstack/react-query popularity was classified as popular.
We found that @tanstack/react-query demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.