Zod | Documentation
zod.dev · 339 words · saved by 2 readers
Introduction to Zod - TypeScript-first schema validation library with static type inference
Introduction Zod is a TypeScript-first validation library. Using Zod, you can define schemas you can use to validate data, from a simple string to a complex nested object. 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); // so you can use it with confidence :) console.log(data.name); Features Zero external dependencies Works in Node.js and all modern browsers Tiny: 2kb core bundle (gzipped) Immutable API: methods return a…
saved by
related reading
- Zed — Your last next editorzed.dev
- Redirecting...giancarlobuomprisco.com
- evlog — Digging through logs is not observability. It's hope.evlog.dev
- Shikishiki.style
- AI Elementselements.ai-sdk.dev
- TypeScript: Documentation - TypeScript for the New Programmertypescriptlang.org
- Pretext - Text measurement that never touches the DOM.pretextjs.dev
- Protocollie Claude Code Vibe Coding setupgist.github.com
- GitHub - ajeetdsouza/zoxide: A smarter cd command. Supports all major shells.github.com
- tscircuit - Code Electronics with Reacttscircuit.com
- Home ⚡ Zig Programming Languageziglang.org
- Node.js Server Setup with Type Safety and Testinglinkedin.com