typestack/class-validator
Decorator-based property validation for classes. observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 74
- Release rhythm 60
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 46.5
- age_days: 3987
- days_rel: 188
- days_push: 161
- n_releases_24m: 5
Adoption not part of the score
11833 stars · 847 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A TypeScript library providing decorator-based and non-decorator-based property validation for classes, built on validator.js. It supports nested objects, arrays, conditional validation, validation groups, and custom validators, and works in both browser and Node.js environments.
Use cases
- validate request DTOs in a NestJS API
- validate class properties with decorators in TypeScript
- validate nested objects and arrays before persisting
- reject invalid form input on the server
- add custom validation rules to class fields
- validate plain objects against a class schema
When to choose
- you use TypeScript classes and want declarative, decorator-based validation
- you need rich built-in rules plus custom validators, groups, and nested object validation
- you want validation that works in both Node.js and the browser
When to avoid
- you prefer schema-based validation without decorators (e.g. Zod or Joi)
- your project is plain JavaScript without decorator support
- you only need lightweight runtime type checking
Facets
library · maturity stable
form-handling developer-tools web-development backend frontend developer-tools browser cross-platform validation decorators class-validator typescript dto-validation validatorjs nodejs
2 sources
- readme: https://github.com/typestack/class-validator · fetched 2026-08-28 · 560b6d3b3fdf
- registry_npm: https://registry.npmjs.org/class-validator · fetched 2026-08-29 · a0e82c5b3aec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| typestack/class-validator | main | 74 |
For agents
markdown · JSON · MCP: product_card(name="typestack/class-validator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem