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.
104 stars and 4,373 monthly downloads. No commits in the last 6 months. Available on npm.
Stars
104
Forks
14
Language
TypeScript
License
—
Category
Last pushed
Jan 06, 2023
Monthly downloads
4,373
Commits (30d)
0
Dependencies
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/juusaw/ts-to-io"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Higher-rated alternatives
chrishoermann/zod-prisma-types
Generator creates zod types for your prisma models with advanced validation
unjs/knitwork
🧶 Utilities to generate safe JavaScript code.
microsoft/ts-gyb
Generating native code interfaces from TypeScript
retejs/rete-studio
A general-purpose code generation tool powered by Rete.js
mathiasbynens/regenerate
Generate JavaScript-compatible regular expressions based on a given set of Unicode symbols or...