• Picks
  • Discover
  • Alternatives
  • About

© 2026 Willet

  • Newsletter
  • About
  • FAQ
  • Terms
  • Privacy & Cookies
Join the Discord (opens in a new tab)
Colin McDonnell avatar

Zod

Schema validation library for TypeScript with inferred static types

  • Languages and frameworks
  • Developer tools
View on GitHub
Website

What it is

Zod lets you declare a schema once, then parse untrusted data against it and get back a typed, validated result or a detailed list of issues. Types are inferred from the schema, so TypeScript and JavaScript developers avoid writing the same shape twice. It has no dependencies, runs in Node.js and browsers, converts schemas to JSON Schema, and offers an ahead-of-time compile step for hot validation paths.

Images

Facts

Stars
44,164 GitHub stars.
44,164

Forks
2,269
Commits
3,250
Contributors
500+
Language
TypeScript
License
MIT
Last commit
Oct 19, 2026
On GitHub since
March 2020
First release
April 2020
Platforms
library
Self-hostable
No
Author
Colin McDonnell
Tags
  • utility-library
  • structured-output

Last synced from GitHub on Oct 20, 2026

The 10 best overlooked open-source projects, every Monday.

Share and more

Comments

No comments yet. Start the conversation.

Similar projects

  • Effect avatar

    Effect

    TypeScript library for typed errors, concurrency, and dependency injection

    17.3k
  • Prisma avatar

    Prisma

    Type-safe ORM and database toolkit for TypeScript and Node.js

    47.7k
  • Microsoft avatar

    TypeScript

    Typed superset of JavaScript with a compiler and type checker

    112k

What people are saying

Updated Oct 21, 2026
  • Hacker NewsZod 4.6.6 compromised by malware?Oct 12, 2026 · 183 points · 52 comments (opens Hacker News in a new tab)
  • Bluesky“There are few other JS/TS libraries I like as much as zod.dev. I use it for everything from tRPC, REST API types, database types (via drizzle-zod) and even…”Dec 4, 2024 · 6 likes · 1 reply (opens Bluesky in a new tab)
  • Hacker NewsZod 4.5Aug 28, 2026 · 4 points · 1 comment (opens Hacker News in a new tab)
  • Bluesky“For big projects? Absolutely. It's looking good, but you haven't checked that `typeof id === "number"` and such for all the fields though. You might be better…”Jun 20, 2025 · 5 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Try ArkType 2.1 alongside your existing Zod schemas: arktype.io or vice-versa: zod.dev”Jul 19, 2025 · 4 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Working a lot with zod.dev and it's unions zod.dev?id=unions, I've often run into the issue where the default representation of an error is truncated beyond…”Sep 24, 2024 · 4 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Don't forget about zod.dev”Aug 4, 2025 · 2 likes · 1 reply (opens Bluesky in a new tab)
  • Bluesky“The SkyflowAgent uses zod.dev for runtime type safety and implements a flexible hook system. This makes it super easy for other devs to integrate Skyflow into…”Jan 29, 2025 · 2 likes · 1 reply (opens Bluesky in a new tab)
  • Hacker NewsZod 4.6Oct 2, 2026 · 2 points · 0 comments (opens Hacker News in a new tab)
  • Bluesky“Using the schema definitions defined from older data models (formerly Aldeed Schema) has been showing some teeth in our refactoring efforts. This should put…”Jan 14, 2026 · 1 like · 1 reply (opens Bluesky in a new tab)
  • Bluesky“We have JSON parse at home Home: zod.dev”Dec 6, 2024 · 1 like · 1 reply (opens Bluesky in a new tab)
  • Bluesky“There's a Javascript library called Zod. If they have Javascript in Superman's reality that would be like having a library that validates form data called…”Apr 20, 2026 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“I'm learning about zod, a JS package for working with TypeScript data schemes (going well beyond just types). I want to ensure that my compiled TypeScript…”Jul 25, 2025 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Zod 4 is out – TypeScript-first schema validation Zod 4 brings major improvements in type-safe schema validation for TypeScript devs. Cleaner syntax, better…”May 28, 2025 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“I have used express-validator before to validate requests and payloads. But here are some alternatives to explore. - Zod - zod.dev - Joi - joi.dev - vinejs…”May 16, 2025 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“(re)discovered zod.dev together with shadcn while doing some client work and I must say, having your form fields typed and validated against that schema takes…”Mar 12, 2025 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“It's not _that_ new to me (I think I've mentioned it to you), but I wish I'd had zod.dev in my tool belt years ago.”Nov 11, 2024 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Zod: TypeScript-first schema validation with static type inference Discussion”Oct 10, 2024 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“cc: @colinhacks.com I noticed there's no v4 entry for z.lazy() zod.dev, it's only shown once in sample code for z.json() might be a good addition”Sep 13, 2025 · 0 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“zod.dev is so handy. It's quick and painless to update validations on this API I'm building at work. Granted, it's been a minute since I had to do something…”Jan 14, 2025 · 0 likes · 0 replies (opens Bluesky in a new tab)