io-ts-codegen and ts-to-io
These are competitors offering overlapping solutions: both generate io-ts codecs from TypeScript type definitions, with io-ts-codegen being the more mature and widely-adopted option for the same use case.
About io-ts-codegen
gcanti/io-ts-codegen
Code generation for io-ts
Generates both runtime io-ts codecs and static TypeScript types from an intermediate schema language, enabling multi-source code generation from JSON Schema, Swagger, and other formats. Uses a builder API to construct type declarations with automatic dependency ordering via topological sort. Outputs ready-to-use io-ts validators alongside corresponding TypeScript interfaces and type aliases.
About ts-to-io
juusaw/ts-to-io
Transform TypeScript types to io-ts runtime validator codecs
Leverages TypeScript's compiler API to parse type definitions and generate corresponding io-ts codecs, supporting unions, intersections, tuples, and partial types while optionally following import statements to generate validators across multiple files. Available as both a CLI tool and programmatic API, with configuration options to control output formatting and import resolution. The generated validators are meant for build-time use, enabling type-safe runtime validation without manual codec definitions.
Scores updated daily from GitHub, PyPI, and npm data. How scores work