</>PackageGraphPackageGraph

zod

npmv4.5.4TypeScript

TypeScript-first schema declaration and validation library with static type inference

Safe to adopt

Yes — zod scores well across adoption, maintenance, weight, supply chain, and licensing. 246.7M downloads per week and 13 known dependents. Last published 11 days ago. 50 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    246.7M downloads per week and 13 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 11 days ago. 50 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 5.5 MB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding zod to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

5.5 MB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the zod README.

import * as z from "zod";

const User = z.object({
  name: z.string(),
});

// some untrusted data...
const input = {
  /* stuff */
};

// the parsed result is validated and type safe!
const data = User.parse(input);
Example truncated — see the full README.

zod vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
zodthis page246.7M13MIT11 days ago
@standard-schema/spec99.1M9MIT1 day ago
valibot16.8M5MIT1 day ago
@eslint/object-schema01Apache-2.01 day ago
joi03BSD-3-Clause1 day ago
json-schema-typed01BSD-2-Clause1 day ago

Used by

Popular packages that depend on zod.

Relationship graph

Dependencies (left) and dependents (right) of zod.

Frequently installed together

Release history

50 releases in the last two years, typically about 0 days apart.

Recent versions of zod
VersionPublishedSizeLicense
4.5.4latest11 days ago5.5 MBMIT
4.5.311 days ago5.5 MBMIT
4.5.212 days ago5.5 MBMIT
4.5.0-canary.20260825T05132112 days ago5.4 MBMIT
4.5.0-canary.20260828T16362212 days ago5.5 MBMIT
4.5.012 days ago5.5 MBMIT
4.5.112 days ago5.5 MBMIT
4.5.0-canary.20260828T17175312 days ago5.5 MBMIT
4.5.0-canary.20260828T16340212 days ago5.5 MBMIT
4.5.0-canary.20260828T16135412 days ago5.5 MBMIT
4.5.0-canary.20260828T16075512 days ago5.5 MBMIT
4.5.0-canary.20260828T06231513 days ago5.4 MBMIT
4.5.0-canary.20260828T05304013 days ago5.4 MBMIT
4.5.0-canary.20260827T05404914 days ago5.4 MBMIT
4.5.0-canary.20260827T00505014 days ago5.4 MBMIT

Overview

zod is an npm package that typeScript-first schema declaration and validation library with static type inference. It is extremely widely used, with about 246.7M downloads per week and 13 known dependents in the graph. The latest version is 4.5.4, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need typeScript-first schema declaration and validation library with static type inference and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (246.7M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use zod?

Yes — zod scores well across adoption, maintenance, weight, supply chain, and licensing. 246.7M downloads per week and 13 known dependents. Last published 11 days ago. 50 releases in the last 2 years.

How do I install zod?

Run `npm install zod` to add zod to your npm project.

What license is zod released under?

zod is distributed under the MIT license.

How popular is zod?

zod has approximately 246,731,317 downloads per week and 13 known dependent packages.

Is zod still maintained?

The most recent release of zod (v4.5.4) was published 11 days ago.

Does zod run install scripts?

No. zod does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.