GitHub

class-validator vs zod

Real installs, week by week

  • class-validator
  • zod
  • npm downloads (same color, dashed)

The 12-month chart is drawn in the browser from the npm API.

class-validator vs zod: which is more popular?

packagenpm / weekreal installs / week noiseconfidence
class-validator 17,035,268 17M under 1% high
zod 453,207,139 453M under 1% high

Noise: the share of npm's count that mirror spikes and crawlers account for. What remains still includes CI and dependency installs.

Snapshot from the daily build of Nov 6, 2026, last 7 days of npm data. With JavaScript on, this page recomputes it live with a 12-month chart.

By real installs, zod is ahead of class-validator by about 27×: about 453M vs 17M a week. npm's raw counts are 17,035,268 for class-validator and 453,207,139 for zod, which include mirrors, scanners and crawlers. Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count.

How the estimate works

  1. Cut the spike every new version gets from mirrors in its first days.
  2. Subtract the flat floor robots download from every version each week.
  3. Show what is left as a range, with a confidence level. It still includes CI and dependency installs, so it is not a count of people.

Read the methodology