TypeScript Data Validation

Open-source TypeScript projects categorized as Data Validation

Top 6 TypeScript Data Validation Projects

  • Yup

    Dead simple Object schema validation

    Project mention: What is the best way to validate this ? | reddit.com/r/vuejs | 2023-03-10

    You could do it with https://github.com/jquense/yup, you could do it with any of those solutions.

  • react-jsonschema-form

    A React component for building Web forms from JSON Schema.

    Project mention: Server Sent UI Schema Driven UIs | reddit.com/r/reactjs | 2022-12-20

    React Json Schema Form: https://github.com/rjsf-team/react-jsonschema-form

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • ajv

    The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

    Project mention: Node.js Express API Data Validation: Techniques and Examples | reddit.com/r/node | 2023-03-16

    Fastify uses ajv for data validation under the hood. I'd recommend ArkType or Zod

  • Superstruct

    A simple and composable way to validate data in JavaScript (and TypeScript).

    Project mention: Banditypes: The mighty 400-byte schema validator for TS / JS | reddit.com/r/webdev | 2023-02-27

    Banditstash, like all the newer validation libraries (yup, zod, superstruct, typed) can auto-generate TS type from a JS schema:

  • openapi-cop

    A proxy that validates responses and requests against an OpenAPI document. https://www.npmjs.com/package/openapi-cop https://hub.docker.com/r/lxlu/openapi-cop

  • Safen

    Safen is a top-performing validation and sanitization library with easy type inference.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-03-16.

TypeScript Data Validation related posts

Index

What are some of the best open-source Data Validation projects in TypeScript? This list will help you:

Project Stars
1 Yup 19,958
2 react-jsonschema-form 12,406
3 ajv 12,283
4 Superstruct 6,431
5 openapi-cop 364
6 Safen 31
Write Clean JavaScript Code. Always.
Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
www.sonarsource.com