Skip to content

Getting Started

⚠️ Pre-1.0 software — APIs are subject to change between minor versions. Pin to exact versions in production.

x-to-zod is a runtime package and CLI tool that converts JSON Schema draft-2020-12 objects or files into Zod schemas in the form of JavaScript code. It is an enhanced fork of json-schema-to-zod with a fluent builder architecture and full Zod v3/v4 dual-mode support.

Install

bash
npm i -g x-to-zod

Next steps

Released under the ISC License.