package-trendsv0.2.1

Download trends, small enough for a footer

A package's npm downloads as a sparkline, a line of text or a KPI block. No dependencies, no stylesheet, no chart library — 8.3 kB for the core and 6.8 kB for the React entry, gzipped as a bundler ships them.

974,362,450 downloads for react between 2026-09-28 and 2026-10-27, up 1.5% against the half before.

974.4M downloads · +1.5% · 2026-09-28 to 2026-10-27 · 7 days repaired

Install

npm install package-trends

Three shapes, one component

The npm API needs no key

It sends access-control-allow-origin: *, so this works straight from a browser with no proxy of your own. Every chart on this site was fetched by your browser as you loaded it — change the package in the header and watch them all follow.

Questions

Does it need an API key or a proxy?

No. The npm downloads API is public and sends access-control-allow-origin: *, so a browser can call it directly.

How big is it?

8.3 kB gzipped for the framework-agnostic core, 6.8 kB for the React entry, 6.9 kB for the comparison chart and 3.6 kB for the heatmap. Each figure is that entry on its own, minified and gzipped, measured on every build. There are no dependencies, and react is a peer you already have.

Does it work without React?

Yes. sparklineSvg returns an SVG string and the core has no framework in it. This site uses that path and loads no framework at all.