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. Learn more →
Top 6 TypeScript Data Validation Projects
-
You could do it with https://github.com/jquense/yup, you could do it with any of those solutions.
-
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-16Fastify uses ajv for data validation under the hood. I'd recommend ArkType or Zod
-
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
-
TypeScript Data Validation related posts
- Node.js Express API Data Validation: Techniques and Examples
- What is the best way to validate this ?
- Banditypes: The mighty 400-byte schema validator for TS / JS
- Formik Works Great; Here's Why I Wrote My Own
- Fastify: Support for Auto Type Inference (similar to TRPC)
- Typescript Runtime Validators and DX, a type-checking performance analysis of zod/superstruct/yup/typebox
- Form Validation - What method do you use these days?
-
A note from our sponsor - Sonar
www.sonarsource.com | 20 Mar 2023
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 |