Skip to content
New Bring your history: import it from Google Analytics, Plausible, Simple Analytics, Umami, Matomo or GoatCounter, on every plan

Packages

Follow packages on Packagist, npm, PyPI and crates.io to see their downloads, the versions and runtimes in use and every release beside your traffic.

If your product is also a package (an SDK, a library, a tool people install), its downloads say who picked it up, and its releases explain a rise in traffic. mettr reads them from Packagist, npm, PyPI and crates.io and puts them beside the visits. Packages come with the Pro plan: 10 a site on Pro, 50 on Business.

Follow a package

In the site's settings, Packages, choose Follow package, pick the registry and type the package's name as the registry writes it: vendor/package on Packagist, react or @scope/package on npm, httpx on PyPI, serde on crates.io. mettr asks the registry first and refuses a name it does not have.

Any public package can be followed, your own or anyone's: the numbers are public, so a competitor's downloads can sit beside yours. A package is read once for every site that follows it, and dropped from mettr when the last site stops.

Only people who manage the site can follow or stop following a package. Both are recorded in mettr's audit log.

What is read

  • Downloads by day, once a day, up to yesterday (the registries' days are UTC), the last three days again as the registries settle them. The first read goes back as far as the registry keeps them, up to five years: years on Packagist and npm, 180 days on PyPI, 90 days on crates.io. From then on mettr keeps them.
  • Versions, every ten minutes. A new version is a package.release event of the site, in the feed and in alerts, and a release note under the traffic chart.
  • Known vulnerabilities, once a day, from OSV.dev. A new one is a package.advisory event of the site, with its severity.

The first read brings the past in quietly: only versions and vulnerabilities that appear after it become events.

Packagist npm PyPI crates.io
Downloads by day years since 2015 180 days 90 days
By version by day, by major the last 7 days, taken weekly no by day, the five most downloaded versions apart
Runtime PHP version no Python version no
Operating system no no yes no
Dependents yes yes no yes

PyPI counts no downloads itself: they come from pypistats.org, without mirrors. Packagist's PHP versions come from what its own package page reads; if it stops answering, the rest is still read.

Registries count every download: mirrors, CI runs and security scanners as well as people. A package with no users yet can show hundreds a week. Read the numbers as a trend, not a head count.

Panels

A site that follows a package gets its panels, at the bottom of the default canvas:

  • Downloads: all of the site's packages over the range, against as many days before.
  • Downloads by package: a stacked bar a package, by day.
  • Versions in use: downloads by version line (2.x, or 0.4.x before 1.0), each with its package's name.
  • PHP and Python versions: which runtime ran the installs, across packages of that runtime.
  • Systems (PyPI): Linux, macOS, Windows.
  • Packages: each package with its registry, latest release, dependents, known vulnerabilities and its downloads against the days before.

The page's filters do not narrow them: downloads are not the site's events.

For one package alone, a tile or a chart of its downloads, make a panel of it: Add panel, New panel, then Data, Package downloads, and the package (see your own panels). If the site stops following it, the panel says so until you follow it again.

On the Free plan

A team back on Free keeps the packages it follows and what was read of them, but they are not read again until it upgrades.

Updated · This page as Markdown · Something unclear? [email protected]

Search the docs, features, comparisons, blog and changelog