Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
typescript-runtime-type-benchmarks
📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
We user ts-json-schema-generator to create the schemas directly from TS types.
Surely you're aware of this library? It offers a validator faster than Ajv, A type system more flexible than Zod, is used by large ecosystem projects (gets 10 mill weekly downloads), does type inference better (i.e. recursive types), and is based on the JSON schema specification. It also ranks with the fastest validation solutions for JavaScript.
I think it's more of a case of the extremely low performance bar that's been set by the status quo (for even the simplest of validation structures). There's been a lot of focus on the TS type inference, and less on the runtime performance (which actually matters more as it does reduce operational costs). It probably wouldn't be such an issue if the performance was reasonable, but I mean here's the full breakdown https://moltar.github.io/typescript-runtime-type-benchmarks/.
Related posts
- TypeBox surpasses Joi, Yup and Zod as most downloaded NPM validation library
- TypeBox - Advancing Runtime Type Checking in JavaScript
- TypeBox – Advancing Runtime Type Checking for JavaScript
- TypeBox: Runtime Type System Built on Industry Standards
- TypeBox: Template Literals + Conditional Types at Runtime