colinhacks/zod

TypeScript-first schema validation with static type inference

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 41 minutes ago
Added to GitGenius on August 31st, 2026
Created on March 7th, 2020
Open Issues & Pull Requests: 72 (-8)
Number of forks: 2,162
Total Stargazers: 43,730 (+2)
Total Subscribers: 79 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 24.6 hours
Mean response time: 27.4 days
90th percentile: 72.0 days
Tracked items: 1,637

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 40% of tracked open issues have had no activity in three months. Only 7% of issues opened in the past year have been closed. Three people close 76% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 63
New in 7 days: 21
Closed in 7 days: 15
Avg open age: 351 days
Stale 30+ days: 36
Stale 90+ days: 27

Recent activity

Opened in 7 days: 20
Closed in 7 days: 14
Comments in 7 days: 4
Events in 7 days: 12

Top labels

  • enhancement (100)
  • stale (40)
  • needs-info (4)
  • bug (2)
  • duplicate (1)
  • working-as-intended (1)

Detailed Description

Zod is a TypeScript-first schema validation library that combines runtime validation with static type inference.

Zod solves the problem of validating data at runtime while maintaining type safety in TypeScript. It works by letting you define a schema that describes the shape and constraints of your data, then parse incoming data against that schema. If validation succeeds, you receive a strongly-typed deep clone of the input; if it fails, you get detailed error information. The library includes an ahead-of-time compilation feature that optimizes hot validation paths, achieving median speedups of 2.4x across typical schemas by eliminating per-node dispatch and allocation overhead.

You should choose Zod if you need runtime validation in a TypeScript codebase and want type inference to flow automatically from your schema definitions without maintaining separate type declarations. It suits projects handling API requests, form submissions, or any scenario where external data needs validation before use. The tool works in both Node.js and modern browsers, has zero external dependencies, and maintains a small core bundle size. The library provides built-in JSON Schema conversion and supports an extensive ecosystem of integrations.

Development on the project shows consistent activity with regular test runs and maintenance of the codebase. The maintainer actively engages with the community through Discord and social media channels, indicating ongoing support for users. The project maintains comprehensive documentation and provides multiple communication channels for questions and discussion.