npmpulse

vitest vs mocha downloads

mocha took 195M downloads in the last 90 days against vitest's 1.4B — 14% of it. vitest leads over the last twelve months, on 2.7B. The lead last changed hands in Feb 2025, when vitest overtook mocha. npm's record for vitest begins on 2021-12-03, and for mocha on 2015-02-27.

vitest against mocha
 vitestmocha
Last 90 days1.4B195M
Last 12 months2.7B685M
All time3.7B3.1B
Record begins2021-12-032015-02-27
Last 12 months vs the 12 before5.03×1.26×

Granularity

Scale

Range

Custom range

Mar 2015 → Sep 2026

PackageTotalLatestPeak

vitest

3.5B

504M

504M

mocha

3.1B

69M

69M

57 monthly periods

Monthly downloads for both, each line starting where that package's own record does.

vitest downloads · mocha downloads · open both in the interactive chart

Also compared

Put this chart in a README

Both series, redrawn from npm's figures whenever the image is fetched, so the comparison stays current on its own.

<img src="https://npmpulse.com/api/svg?q=vitest,mocha&range=5y&granularity=monthly" alt="vitest compared with mocha npm downloads" />

Where these numbers come from

Download counts are npm's own, published through its downloads API. They count installs rather than people, so they include CI, mirrors and repeated installs, and a package pulled in as a dependency counts for that package too.

npm's API returns at most 549 days for a single package and 365 when several are compared, and truncates an over-long range rather than refusing it. npmpulse asks for the whole span in 365-day chunks and stitches the answers together, which is what makes a chart that starts in 2015 possible at all.

npm reports 0 for every package from 2015-01-10 until 2015-02-27, when its real records begin; those leading zeros are trimmed rather than charted. Individual days it lost entirely are interpolated, and the most recent day or two, which it has not finalised, is dropped. The monthly figures here are complete calendar months, so a package that started mid-month begins with the following one.

A handful of months are inflated in npm's own figures. svelte's 2022-11-23 records 5.0M downloads against a norm nearer 80K, and November 2022 is a spike in several packages at once; they are left alone here, because they are what the source says, but a one-month jump is treated as a spike rather than as a change of fortune. That is why the comparisons below only call a lead change a lead change when it held for a second month.

A package's record can also begin before the package did: npm names get reused. Where a first day is a handful of downloads, that is what you are looking at — the earlier life of the name rather than a slow launch. Where it is hundreds of thousands, the opposite is true, and what is missing is upstream history rather than usage.

Snapshot of 2026-10-13. Figures run through 2026-10-11.