gcanti/io-ts
Runtime type system for IO decoding/encoding observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3504
- days_rel: 631
- days_push: 631
- n_releases_24m: 1
Adoption not part of the score
6808 stars · 318 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
io-ts is a TypeScript library providing a runtime type system for decoding and encoding data at IO boundaries. Codecs combine static types with runtime validation, type guards, and encoding via fp-ts's Either type.
Use cases
- validate untrusted JSON against a TypeScript type at runtime
- decode API responses into typed values
- encode domain objects before sending them over the wire
- create custom type guards for unknown inputs
- define runtime-checked schemas shared between frontend and backend
When to choose
- you want static TypeScript types and runtime validation from a single definition
- your codebase already uses fp-ts and functional programming patterns
- you need precise, composable decoders with detailed error contexts
When to avoid
- you want a simple schema validator without functional programming concepts like Either and monads
- you prefer Zod-style ergonomic APIs with less boilerplate
- your project is plain JavaScript without TypeScript
Facets
library · maturity stable
serialization type-system form-handling developer-tools web-development apis cross-platform runtime-type-system codec decoder encoder fp-ts type-guards nodejs typescript
3 sources
- readme: https://github.com/gcanti/io-ts · fetched 2026-08-28 · 5ac3935379b2
- homepage: https://gcanti.github.io/io-ts/ · fetched 2026-08-29 · 5d1c00122a2a
- registry_npm: https://registry.npmjs.org/io-ts · fetched 2026-08-29 · 3f36aa02e0f1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gcanti/io-ts | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem