express-validator
Express middleware for input validation and sanitization.
Forms, validation and schemas npm MIT
Used in agent projects
31
0.2% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#16 of 22
by use in those projects
Downloads
1.5M
npm, last 7 days, express-validator
GitHub stars
6,234
last push Oct 3, 2026
How express-validator is used
express-validator is a dependency in 31 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #16 of 22 in forms, validation and schemas. The most used alternative there is Zod. Projects that use it most often also use Express (100.0%), dotenv (87.1%), cors (80.6%).
Often used with express-validator
| Express | 100.0% of express-validator projects · 15.4× more than average |
|---|---|
| dotenv | 87.1% of express-validator projects · 5.5× more than average |
| cors | 80.6% of express-validator projects · 24.3× more than average |
| Helmet | 67.7% of express-validator projects · 68.8× more than average |
| express-rate-limit | 58.1% of express-validator projects · 70.2× more than average |
| jsonwebtoken | 58.1% of express-validator projects · 30.6× more than average |
| morgan | 48.4% of express-validator projects · 115.9× more than average |
| Solana Web3.js | 54.8% of express-validator projects · 3.3× more than average |
By coding agent
| GitHub Copilot | 0.4% of projects set up for it |
|---|---|
| Claude Code | 0.3% of projects set up for it |
Share of public repos configured for each agent that list express-validator as a dependency.
Install
| Package | npm install express-validator |
|---|---|
| Main stacks | TypeScript / JavaScript (24), Rust (3), Python (2), Next.js (1) |
| Example projects | WilfredAlmeida/capi, kima-finance/kima-transaction-backend |
Alternatives to express-validator
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Zod npm TypeScript-first schema validation library with static type inference. |
2,153 (17.0%) | 326M | 44.1K | MIT |
| React Hook Form npm Performant form state library using React Hooks with minimal rerenders. |
1,021 (8.0%) | 54.7M | 44.9K | MIT |
| React Hook Form Resolvers npm Validation resolvers for React Hook Form supporting Zod, Yup, and others. |
885 (7.0%) | 45.1M | 2,264 | MIT |
| Pydantic pypi Data validation and parsing library using Python type hints. |
649 (5.1%) | 222M | 29K | — |
| Ajv npm Fast JSON Schema validator for runtime schema validation and serialization. |
131 (1.0%) | 391M | 14.9K | MIT |
| jsonschema pypi Python implementation of JSON Schema validation for structured data. |
129 (1.0%) | 125M | 4,989 | — |
| Protocol Buffers pypi Serialization format and code generator for structured data. |
75 (0.6%) | 154M | — | 3-Clause BSD License |
| drizzle-zod npm Generate Zod validation schemas automatically from Drizzle ORM database schemas. |
68 (0.5%) | 3.2M | 36K | Apache-2.0 |