{"library":"zod-express-middleware","type":"library","category":null,"description":"`zod-express-middleware` is an Express.js middleware library designed to enforce type safety and validate incoming request data (body, query, and parameters) using Zod schemas. Currently at version 1.4.0, it provides functions like `validateRequest` to check if an incoming request conforms to predefined Zod schemas without modifying the request object. For scenarios requiring data transformation or stripping unknown keys, it offers `processRequest` and its specific variants (`processRequestBody`, `processRequestQuery`, `processRequestParams`), which leverage Zod's `.transform` and `.refine` methods. The package maintains a steady release cadence, integrating smoothly with `express` and `zod` as peer dependencies. Its primary differentiator is the direct integration of Zod's powerful, inferential schema validation capabilities into the Express middleware pipeline, providing a robust solution for ensuring API contract adherence and improving developer experience through strong typing.","language":"javascript","status":"maintenance","version":"1.4.0","tags":["javascript","express","zod","middleware","endpoint","validation","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install zod-express-middleware","imports":["import { validateRequest } from 'zod-express-middleware';","import { processRequest } from 'zod-express-middleware';","import { z } from 'zod';","import { TypedRequestBody } from 'zod-express-middleware';"]},{"cmd":"yarn add zod-express-middleware","imports":[]},{"cmd":"pnpm add zod-express-middleware","imports":[]}],"homepage":null,"github":"https://github.com/Aquila169/zod-express-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/zod-express-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/zod-express-middleware/compatibility"}}