The 46-Place Gap: A 61-Library Comparison of GitHub Stars and npm Downloads
The gap between stars and downloads means a library's real adoption is not readable from GitHub alone. Build tools and component libraries occupy different usage frequencies, and CI/CD inflation makes raw download numbers misleading; the practical fix is to look at 90-day trends and whether a library is installed once or continuously.
Kyriewen ranked 61 mainstream frontend libraries by GitHub stars and npm download totals, then compared the two orderings. The largest divergence: Vitest ranks 54th in stars but 6th in downloads, a 48-place gap; anime.js is 12th in stars but 58th in downloads, 46 places off. The pattern is not random. Stars are a one-time approval gesture—clicked in seconds after a tutorial or recommendation—while downloads accumulate from every CI run, template install, and build chain.
The trend data sharpens the picture: libraries like Solid (+169% 90-day growth), Astro (+119%), and Playwright Test (+97%) all have star ranks far below download ranks. Users are installing them but not starring them. Component libraries such as Ant Design, with 100k stars but 21.6M downloads (rank 50), get installed once per project, so the raw count doesn't reflect usage frequency. The only library to drop more than 10% in downloads is @remix-run/react, because it merged into React Router and the package name changed.
Both metrics have known flaws: downloads include CI, mirrors, and crawlers—zod tops 1.9B monthly downloads, 75% more than React—and stars never decrease, even for deprecated libraries. The takeaway: evaluate libraries by their 90-day download trend, whether they're installed once or repeatedly, and whether genuine usage happens via CDN, which npm misses entirely.
Stars and downloads answer different questions: one measures whether people talk about a library, the other whether machines actually run it. Conflating them leads to selection mistakes.
Fast-growing libraries like Astro and Solid have low star-to-download ratios because their users are pragmatists, not enthusiasts; the star count lags, not because the library is unpopular, but because it doesn't reward social signaling.
The @remix-run/react case is the cleanest example of data misalignment: a package rename splits the community across two packages, and neither stars nor downloads alone tells you what's happening.
Download numbers can be so distorted by CI and mirrors that zod's 1.9 billion monthly downloads say more about build infrastructure than human adoption.