Zod
Zod is a TypeScript-first schema validation library that provides static type inference, allowing developers to ensure type safety and accuracy in their code.
There are 5 open-source alternatives to Yup in this directory. The most popular is Zod with 42.4k GitHub stars, followed by Valibot(7.8k stars). All are open source, free to use, and many can be self-hosted.
| # | Tool | Stars | Language | License |
|---|---|---|---|---|
| 1 | Zod Zod is a TypeScript-first schema validation library that provides static type inference, allowing developers to ensure type safety and accuracy in their code. | 42.4k | TypeScript | MIT License |
| 2 | Valibot Valibot is a modular and type safe schema library designed for validating structural data with ease and reliability. 🤖 | 7.8k | TypeScript | MIT License |
| 3 | Superstruct A simple, composable, and powerful way to validate data structures in JavaScript and TypeScript applications. | 7.1k | TypeScript | MIT License |
| 4 | Zod-validation-error A utility library that wraps Zod validation errors into clear, user-friendly readable messages for easier error handling in JavaScript and TypeScript applications. | 1.0k | TypeScript | MIT License |
| 5 | Zod-plugins Plugins and utilities to enhance the functionality of Zod, a TypeScript-first schema declaration and validation library. | 769 | TypeScript | — |
Zod is a TypeScript-first schema validation library that provides static type inference, allowing developers to ensure type safety and accuracy in their code.
Valibot is a modular and type safe schema library designed for validating structural data with ease and reliability. 🤖
A simple, composable, and powerful way to validate data structures in JavaScript and TypeScript applications.
A utility library that wraps Zod validation errors into clear, user-friendly readable messages for easier error handling in JavaScript and TypeScript applications.
Plugins and utilities to enhance the functionality of Zod, a TypeScript-first schema declaration and validation library.
The top three are Zod(42.4k stars), Valibot(7.8k stars), Superstruct(7.1k stars). All are open source and free to use.
Yes. Every tool listed here is open source and free to use in your own projects. Many can be self-hosted on your own infrastructure, which means no subscription fees and full control over your data.
Many of the alternatives listed are self-hostable. Each tool's page lists hosting details, system requirements, and licensing terms.
Get notified about new tools and updates to existing ones.