gemini-zod

JSON →
library 0.1.2 ·javascript
verified Jun 7, 2026

A lightweight adapter that enables bidirectional conversion between Gemini AI schemas and Zod schemas, allowing developers to use Zod's runtime validation with Google's Gemini AI. Version 0.1.2 is current; the library supports common data types (string, number, boolean, array, object) and handles optional fields and nullable types. It is designed for TypeScript environments and ships with type definitions. The package is newer with infrequent releases, differentiating by providing a straightforward mapping without additional dependencies beyond Zod.