The 46-Place Gap: A 61-Library Comparison of GitHub Stars and npm Downloads
When choosing a library, we look at two numbers: GitHub stars and npm downloads.
I always assumed these two numbers go hand in hand—more stars means more people like it; more downloads means more people use it. Last week I ranked 61 mainstream frontend libraries by both numbers, and the largest gap was 46 places.
The ten with the biggest gaps look like this:
| Library | Monthly downloads (Nov 2026) | Download rank | Stars | Stars rank | Gap |
|---|---|---|---|---|---|
| vitest | 770M | 6 | 17,559 | 54 | +48 |
| rollup | 680M | 8 | 26,317 | 47 | +39 |
| sass | 180M | 25 | 4,240 | 60 | +35 |
| i18next | 150M | 27 | 8,669 | 59 | +32 |
| esbuild | 1.76B | 2 | 40,214 | 32 | +30 |
| anime.js | 4.6M | 58 | 75,283 | 12 | -46 |
| antd | 21.6M | 50 | 100,442 | 6 | -44 |
| @remix-run/react | 3.46M | 59 | 56,655 | 21 | -38 |
| nuxt | 14.17M | 55 | 61,147 | 19 | -36 |
| svelte | 41M | 43 | 90,034 | 10 | -33 |
"Gap" is stars rank minus download rank. The larger the positive number, the more it's installed daily but gets few likes; the smaller the negative number, the more people line up to star it, but few actually install it.
Three samples
vitest, gap +48. 770 million monthly downloads, rank 6 among the 61 libraries; 17,500 stars, rank 54. It's also the fastest-growing library in the last six months, up 82% month-over-month. You npm install it in nearly every project, but fewer than one in ten thousand of its downloads ever clicked star on its GitHub page.
anime.js, gap -46. 75,000 stars, rank 12, higher than svelte and next's download rankings; 4.6 million monthly downloads, rank 58, fourth from last. On a "downloads per star per month" basis, it only gets 62 downloads per star, while sass gets 41,657—a 670x difference.
antd, gap -44. 100,000 stars, rank 6 overall; 21.6 million monthly downloads, rank 50. One reason is straightforward: antd is a component library—you install it once per project and use it for years; esbuild, however, gets reinstalled in every Vite project's CI. Installing and starring are entirely different frequencies.
Stars and downloads measure different things
A star is a one-time statement: you see it in a tutorial, on a release, from a colleague's recommendation—click, a few seconds. A download is an installation: it's in a template, a build chain dependency, reinstalled on every CI run.
As an analogy: stars are like a queue photo posted at a restaurant's entrance; downloads are the number of dishes the kitchen sends out in a day. The photo can hang for ten years, while the dish count is recalculated every day.
So neither number is more "real" than the other; they answer two questions: Is this library discussed? Is this library running?
The other side: downloads are rising, stars haven't caught up
If you only look at the first half of the table, you might conclude "stars are all fake." But look at the trends and you'd revise that: stars aren't proportional, but the direction is largely correct.
I calculated each library's download growth comparing the most recent 90 days to the previous 90 days; only 2 out of 61 were negative.
The fastest growers happen to be the ones with lower star rankings:
| Library | 90-day growth | Stars rank − Download rank |
|---|---|---|
| solid-js | +169% | -6 |
| astro | +119% | -22 |
| @playwright/test | +97% | -6 |
| echarts | +85% | -27 |
| nuxt | +56% | -36 |
| svelte | +53% | -33 |
Astro's downloads more than doubled, yet its stars rank is 22 places lower than its download rank; nuxt, svelte, echarts all follow the same pattern. Users are already voting with their actions, but stars haven't caught up.
This also explains a confusion I had before: why some libraries "feel unmentioned" yet are everywhere in projects. They aren't good at spreading; they're good at solving problems.
Pitfalls in the metrics: these numbers can't be fully trusted
To be clear, both numbers I used have issues.
Download counts include CI, mirrors, and crawlers—a package reinstalled dozens of times by a pipeline counts dozens of times. In this sample, the #1 monthly download is zod with 1.9 billion, 75% higher than react—this number alone shows downloads and "how many people" are not the same thing.
Stars have a flaw too: they only go up. If a library stops maintenance, its 75,000 stars won't drop. So just looking at stars, you can't see who's exiting.
Also, browser-side libraries have a third kind of undercount: many projects use CDN links directly, bypassing npm. Animation libraries like anime.js and gsap likely have real usage higher than their download rank suggests. That's why I insist on comparing ranks rather than absolute values.
The only negative growth
Among the 61, only one saw downloads drop more than 10% in the last 90 days: @remix-run/react, at -10.6%. Its stars are still 56,700, rank 21, which looks normal.
The reason is that it was merged into React Router; the package name changed and downloads migrated. Stars don't follow—they stay in the old repository.
This is the most typical "data misalignment": new users install the new package, old users star the old repository. Both sets of data are real; combined, they mislead.
Three questions I ask when choosing a library
- Is it growing or shrinking over the last 90 days? More useful than total stars. Growing libraries have community investing; shrinking ones, check if it's renamed, merged, or deprecated.
- Is it "installed once" or "installed daily"? Component libraries and build tools shouldn't be compared under the same download metric; the former counts projects, the latter counts CI runs.
- Does its usage bypass npm? Libraries used via CDN have systematically low download counts; don't write them off just for a low rank.
Finally
I tested 61 packages, 12 categories. The download window is 2026-10-31 to 11-29, and stars are a snapshot from Dec 1. The sample is mainstream libraries I picked by category, not exhaustive, so the conclusions only show relative relationships within these 61 libraries, not external generalizability.
The method is nothing fancy: npm's public download API, plus an unauthenticated GitHub stars mirror, rank both datasets, then subtract.
You can run the same on your own project dependencies; you'll probably find a few libraries that are "installed daily but never starred"—click star on one, that's more useful than discussing which is more popular in a group.
Question for you: among these 61 libraries, which do you guess has the most extreme gap between stars and downloads? Leave a comment with one I didn't include, and I'll add it to the next article.