colinhacks/zod

TypeScript-first schema validation with static type inference

View on GitHub ↗Jump to charts ↓Open shareable report →

colinhacks/zod has 44k+ stars and 2k+ forks on GitHub, is written in TypeScript, and was last pushed on Oct 18, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on August 31st, 2026
Created on March 7th, 2020
Open Issues & Pull Requests: 93 (+0)
GitHub issues: Enabled
Number of forks: 2,268
Total Stargazers: 44,151 (-1)
Total Subscribers: 84 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 25.4 hours
Mean response time: 26.7 days
90th percentile: 71.9 days
Tracked items: 1,709

Maintainer activity

1 person did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 18, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits. How this is counted.

How this project is maintained

About 8% of issues opened in the past year have never received a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 19% of tracked open issues have had no activity in three months. 84% of issues opened in the past year have been closed, leaving a working backlog. Three people close 77% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 75
New in 7 days: 12
Closed in 7 days: 4
Avg open age: 179 days
Stale 30+ days: 36
Stale 90+ days: 17

Recent activity

Opened in 7 days: 8
Closed in 7 days: 4
Comments in 7 days: 6
Events in 7 days: 21

Top labels

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

Most active issues this week

Sign in to see which issues are moving.
Sign in

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.