zod-urlsearchparams

JSON →
library 0.0.16 ·javascript
verified Jun 7, 2026

Serializes and deserializes a Zod schema to and from URLSearchParams. Current stable version is 0.0.16, with an experimental API that may change. It minimalizes URLs by keeping scalars human-readable and encoding vectors (like arrays and objects) with base64. Zero dependencies outside of Zod (peer dependency: zod ^3.0.0). Ships TypeScript types. Differentiator: type-safe URL parameter handling using Zod schemas, with a class-based API and lenient parsing that falls back to defaults.