# express-validator/express-validator

An express.js middleware for validator.js.

Repository: https://github.com/express-validator/express-validator
Canonical: https://ross.abutalabs.com/products/express-validator
Homepage: https://express-validator.github.io
Language: TypeScript
License: MIT
License Family: permissive
Topics: nodejs, javascript, validation, express, validator, expressjs
Last push: 2026-08-09T09:25:52+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 53, longevity 100
- inputs: {"age_days": 5446, "days_push": 24, "days_rel": 154, "gap_med": 133, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6236, forks 626 (observed 2026-08-28T04:09:40.818804+00:00)

## What it is
express-validator is an Express.js middleware wrapping the validator.js library for request validation and sanitization. It lets you declare validation rules for route parameters, query strings, and request bodies in Express applications.

## Use cases
- validate request bodies in express apis
- sanitize user input to prevent xss
- validate query params and route params
- add input validation middleware to express routes
- check email and url formats in nodejs forms

## When to choose
- you build Express.js APIs and need declarative request validation
- you want sanitization and validation in one middleware
- you prefer validator.js rules with a fluent chainable API

## When to avoid
- you use Fastify, Koa, or a non-Express framework
- you need schema-based validation like Joi or Zod
- your app does not run on Node.js 14 or newer

## Facets
- artifact type: library
- maturity: stable
- function: middleware, form-handling, security
- domain: web-development, backend, apis
- platform: -
- tags: express, validation, sanitization, validator-js, request-validation, nodejs, javascript

## Member repositories
- express-validator/express-validator (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:40.818804+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:47:11.853871+00:00, confidence not recorded.
  - readme: https://github.com/express-validator/express-validator (fetched 2026-08-28T04:09:40.818804+00:00, sha 98f63158fee4)
  - homepage: https://express-validator.github.io (fetched 2026-08-29T08:43:39.412319+00:00, sha 0904bec34fe3)
  - registry_npm: https://registry.npmjs.org/express-validator (fetched 2026-08-29T08:43:39.421546+00:00, sha 7450dafce5fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
