zod
npmv4.4.3TypeScriptTypeScript-first schema declaration and validation library with static type inference
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 212.7M downloads per week. The latest version is 4.4.3, 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 (212.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.
Relationship graph
Dependencies (left) and dependents (right) of zod.
Used by
Popular packages that depend on zod.
Drizzle ORM package for SQL databases
Babel plugin for React Compiler.
Runtime typescript and ESM support for Node.js
Minimal H(TTP) framework built for high performance and portability.
Alternatives to zod
A family of specs for interoperable TypeScript
Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.
An object schema merger/validator
Media Type Database
Strict TypeScript and Flow types for style based on MDN data
Infer the content-type of a request.
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
The official runtime utils for Standard Schema
Delightful JavaScript Testing.
Drizzle ORM package for SQL databases
Type safe SQL query builder
Stringify your JSON at max speed
Frequently installed together
React is a JavaScript library for building user interfaces.
TypeScript definitions for node
React package for working with the DOM.
Next generation testing framework powered by Vite
An AST-based pattern checker for JavaScript.
TypeScript definitions for react
TypeScript definitions for pg
PostgreSQL client - pure javascript & libpq with the same API
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Fastest full featured PostgreSQL client for Node.js
Type safe SQL query builder
Type definitions and documentation for Bun, an incredibly fast JavaScript runtime
Version history
| Version | Published | License |
|---|---|---|
| 4.5.0-canary.20260504T180558 | 2 months ago | MIT |
| 4.5.0-canary.20260504T173427 | 2 months ago | MIT |
| 4.5.0-canary.20260504T173320 | 2 months ago | MIT |
| 4.5.0-canary.20260504T165552 | 2 months ago | MIT |
| 4.4.3latest | 2 months ago | MIT |
| 4.5.0-canary.20260504T070434 | 2 months ago | MIT |
| 4.5.0-canary.20260503T214107 | 2 months ago | MIT |
| 4.4.2 | 2 months ago | MIT |
| 4.5.0-canary.20260430T040905 | 2 months ago | MIT |
| 4.4.1 | 2 months ago | MIT |
| 4.5.0-canary.20260429T231203 | 2 months ago | MIT |
| 4.5.0-canary.20260429T225357 | 2 months ago | MIT |
| 4.4.0 | 2 months ago | MIT |
| 4.4.0-canary.20260429T195257 | 2 months ago | MIT |
| 4.4.0-canary.20260429T194540 | 2 months ago | MIT |
| 4.4.0-canary.20260125T215152 | 5 months ago | MIT |
| 4.4.0-canary.20260125T200840 | 5 months ago | MIT |
| 4.4.0-canary.20260125T200534 | 5 months ago | MIT |
| 4.4.0-canary.20260122T192419 | 5 months ago | MIT |
| 4.3.6 | 5 months ago | MIT |
Maintainers
Funding
Frequently asked questions
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 212,737,786 downloads per week.