Stack Gems
Menu
← Catalog

Valibot

MIT modular TypeScript schemas — tiny bundle vs Zod

Libraries / Libraries · OSS/MIT · 9k

Reviewed 2026-09-14 · last push 2026-10-17 · repo checked 2026-10-19

What's Good

MIT. fabian-hiller/valibot (open-circle). Modular per-schema imports, TypeScript inference, parse/safeParse-shaped API. Docs at valibot.dev aim at small runtime cost for forms, APIs, and edge. Source github.com/fabian-hiller/valibot.

The Catch

Vs Zod (de-facto TS schema): Valibot wins on *modular/tree-shakeable bundle size*; Zod wins on ecosystem gravity (tRPC/forms/examples assume Zod). Migrating is real work — action APIs and helpers differ. Not a form UI and not an API gateway.

Verdict

MIT tiny TS schemas. Free library; choose Valibot for bytes, Zod for ecosystem defaults.

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

[![Reviewed on Stack Gems](https://stackgems.com/badge/valibot.svg)](https://stackgems.com/gems/valibot)

HTML

<a href="https://stackgems.com/gems/valibot"><img src="https://stackgems.com/badge/valibot.svg" alt="Valibot reviewed on Stack Gems" height="20"></a>