{"library":"zod-request","type":"library","category":null,"description":"zod-request (version 0.2.2) is a JavaScript/TypeScript library designed to provide validated and type-safe HTTP requests by integrating with the Zod schema validation library. It offers an API that closely mirrors the native `fetch` function, enhancing it with automatic request and response payload validation against Zod schemas. This ensures that both outgoing request bodies and incoming response data conform to predefined types, significantly reducing runtime errors related to data shape. The library is environment-agnostic, supporting Node.js (v18+), browsers, and other JavaScript runtimes like Bun. Its key differentiators include its `fetch`-like interface for familiarity, universal compatibility, and its deep integration with Zod, allowing developers to leverage Zod's powerful schema definition capabilities for end-to-end type safety in network communication. As of its current version, 0.2.2, it appears to be in an active development phase, with a focus on core features and stability rather than a fixed release cadence.","language":"javascript","status":"active","version":"0.2.2","tags":["javascript","zod","request","http","fetch","browser","node","type-safe","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install zod-request","imports":["import { fetch } from 'zod-request'","import type { Response } from 'zod-request'","import type { RequestInit } from 'zod-request'"]},{"cmd":"yarn add zod-request","imports":[]},{"cmd":"pnpm add zod-request","imports":[]}],"homepage":null,"github":"https://github.com/shahradelahi/zod-request","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/zod-request","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-request/compatibility"}}