GitHub

@tanstack/react-query vs swr

Real installs, week by week

  • @tanstack/react-query
  • swr
  • npm downloads (same color, dashed)

The 12-month chart is drawn in the browser from the npm API.

@tanstack/react-query vs swr: which is more popular?

packagenpm / weekreal installs / week noiseconfidence
@tanstack/react-query 82,427,046 82.4M under 1% high
swr 26,672,336 26.7M under 1% high

Noise: the share of npm's count that mirror spikes and crawlers account for. What remains still includes CI and dependency installs.

Snapshot from the daily build of Nov 6, 2026, last 7 days of npm data. With JavaScript on, this page recomputes it live with a 12-month chart.

By real installs, @tanstack/react-query is ahead of swr by about 3.1×: about 82.4M vs 26.7M a week. npm's raw counts are 82,427,046 for @tanstack/react-query and 26,672,336 for swr, which include mirrors, scanners and crawlers. Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count.

How the estimate works

  1. Cut the spike every new version gets from mirrors in its first days.
  2. Subtract the flat floor robots download from every version each week.
  3. Show what is left as a range, with a confidence level. It still includes CI and dependency installs, so it is not a count of people.

Read the methodology