A strongly-typed runtime validation library for TypeScript that generates accurate interfaces from function-based schemas.
Computed-Types is a runtime validation library for TypeScript that allows developers to define schemas using function-based validators. It automatically generates accurate TypeScript interfaces from these schemas, ensuring type safety and reducing duplication between validation logic and type definitions. It solves the problem of maintaining separate validation and type code by unifying them into a single source of truth.
TypeScript developers who need runtime validation for APIs, forms, or data parsing, especially those looking for a type-safe alternative to libraries like Joi.
Developers choose Computed-Types for its seamless TypeScript integration, which eliminates manual type definitions and reduces errors. Its chainable validators and support for custom transformations make it flexible and easy to use while keeping the codebase concise and maintainable.
🦩 Joi like validations for TypeScript
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically generates accurate TypeScript interfaces from validation schemas, eliminating manual type definitions and reducing duplication, as shown in the README's comparison with Joi.
Uses chainable methods like .trim() and .gt() for concise and readable validation logic, enabling complex rules without boilerplate code.
Combines validation and formatting in a single step, such as converting numbers to strings with .toFixed(), reducing the need for separate processing.
Self-contained library with no external dependencies, making it lightweight and easy to integrate into projects without bloating the bundle.
Compared to libraries like Joi, it has fewer pre-defined validation rules, requiring custom implementations for many common scenarios, such as email validation which needs external libraries.
Creating custom validators involves manual error handling and transformation logic, which can be error-prone and increase development time, as seen in the Email validator example.
As a rebranded project (from Funval), it has a smaller community and fewer third-party integrations or plugins, limiting support and resources compared to established alternatives.
Funval is an open-source alternative to the following products: