Libraries

MikroValid

NPM package

The minimalist JSON validator for client and server.

Type
Developer library
Package
mikrovalid
License
MIT

Faster and lighter than Zod.

MikroValid is a minimalist, zero-dependency JSON validator for client and server. It validates types, required fields, nested objects, formats, and value constraints, and can generate schemas directly from input.

Validation JSON Zero dependencies Schema

What it does

Validate JSON objects with types, required fields, and nested schemas

Generate schemas from input with the schemaFrom() method

Formats (email, url, date, hexColor), length and value limits, and pattern matching

Zero dependencies, ~2.6 KB gzipped, faster than Zod across benchmarks

Install

Add it to a project

npm install mikrovalid