Validator for Javascript Objects and API Payloads

Usage no npm install needed!

<script type="module">
  import forkjsValidator from 'https://cdn.skypack.dev/@forkjs/validator';



An awesome JSON Object Validator

What is @forkjs/validator

@forkjs/validator is a JSON Object validator which can be used to validate Objects and JSON against predefined schemas. It can be used with for API payload validation. All you need to do is install the package, build your schema and you are done !!

See the Quick start guide for more details.


  • Nested Object Schema Validation
  • Support for detailed Error Messages
  • Custom Error Messages
  • Debug Support
  • Middleware wrapper for Express.js routes


Check out the Examples for better understanding or Get Started with the document