# Runtypes

TypeScript library that checks untyped values against runtime type definitions and infers static types from the same definitions.


Source: https://findsoftware.frbit.cloud/runtypes/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/runtypes/runtypes

### Identity

- status: active
- maintainer: Tom Crockett
- maintainerType: unknown
- parent: unknown
- firstRelease: 2016
- hqCountry: unknown

### Kind

- category: library
- hosting: node, deno
- language: javascript
- runtime: node, deno
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: deno

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 7
- latestReleaseDate: 2026-08-14

### Adoption

- githubStargazers: 2702
- packagistDownloads: not applicable
- npmWeeklyDownloads: 285093
- contributors: 40
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 878
- dependentPackages: 316

### Sources

- urls: https://api.github.com/repos/runtypes/runtypes (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/runtypes/runtypes/master/LICENSE (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/runtypes (read 2026-11-16)
- category: https://raw.githubusercontent.com/runtypes/runtypes/master/README.md (read 2026-11-16)
- language: https://api.github.com/repos/runtypes/runtypes (read 2026-11-16)
- runtime: https://jsr.io/@runtypes/runtypes (read 2026-11-16)
- installMethod: https://jsr.io/@runtypes/runtypes (read 2026-11-16)
- license: https://api.github.com/repos/runtypes/runtypes (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/runtypes/runtypes/master/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/runtypes/runtypes/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/runtypes/runtypes/releases/latest (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/runtypes/runtypes (read 2026-11-16)
- contributors: https://api.github.com/repos/runtypes/runtypes/contributors?per_page=1 (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/runtypes (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/runtypes (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/runtypes (read 2026-11-16)

## Notes

Runtypes is a TypeScript library that checks values of unknown shape against type definitions built from composable validators for primitives, literals, arrays, tuples, objects and unions. The static types of checked values are inferred from the same definitions, so the types do not have to be written twice. A failed check throws a ValidationError that carries a structured failure.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
