https://github.com/push-based/zod2nx-schema
Turns zod schemas into Nx schema.json files
https://github.com/push-based/zod2nx-schema
Last synced: about 2 months ago
JSON representation
Turns zod schemas into Nx schema.json files
- Host: GitHub
- URL: https://github.com/push-based/zod2nx-schema
- Owner: push-based
- License: mit
- Created: 2025-12-16T01:20:05.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-12-22T00:16:55.000Z (3 months ago)
- Last Synced: 2025-12-23T05:07:51.469Z (3 months ago)
- Language: TypeScript
- Size: 413 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Zod to Nx Schema
Convert Zod schemas to Nx executor/generator schema.json files
---
[](https://opensource.org/licenses/MIT)
---
## Overview
`zod2nx-schema` is a tool that converts Zod schemas into Nx executor/generator schema.json files. This makes it easy to define executor options using Zod's type-safe schema validation and automatically generate the JSON schema files that Nx requires.
## Packages
- **[`@push-based/zod2nx-schema`](./packages/zod2nx-schema)** - Core CLI tool for converting Zod schemas to Nx schemas
- **[`@push-based/zod2nx-schema-nx-plugin`](./packages/zod2nx-schema-nx-plugin)** - Nx plugin that integrates the schema generation into your build process
## Quick Start
### Installation
```bash
npm install @push-based/zod2nx-schema
```
### Usage
```bash
zod2nx-schema --schemaModulePath ./src/schema.ts --exportName MySchema
```
This will generate a `schema.json` file based on your Zod schema export.
## Features
- 🔒 **Type-safe** - Define schemas using Zod's powerful type system
- 📦 **Zero config** - Works out of the box with sensible defaults
- 🎯 **Nx integration** - Seamlessly integrates with Nx executors
- 📝 **Metadata support** - Add titles, descriptions, and other metadata to your schemas
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to contribute to this project.