Tiny Schema Validator

JSON →
library 5.0.3 ·javascript
verified Jun 7, 2026

JSON schema validator with excellent type inference for JavaScript and TypeScript. Current stable version is 5.0.3. It provides a declarative API using an underscore (_) namespace for defining schemas with built-in validators like string, number, boolean, union, record, list, etc. Differentiators include automatic TypeScript type inference via the produce method, detailed error objects that mirror the schema shape, and a lightweight bundle (minzipped size shown in badge). The library is actively maintained, supports Node.js >=10, and is ESM and CJS compatible.