# BenLorantfy/nestjs-zod

All NestJS + Zod utilities you need

Repository: https://github.com/BenLorantfy/nestjs-zod
Canonical: https://ross.abutalabs.com/products/nestjs-zod
Language: TypeScript
License: MIT
License Family: permissive
Topics: javascript, nest, nestjs, node, nodejs, typescript, zod, openapi
Last push: 2026-08-19T18:30:11+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 94, longevity 100
- inputs: {"age_days": 1573, "days_push": 14, "days_rel": 40, "gap_med": 13.5, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1115, forks 111 (observed 2026-08-28T04:03:38.451943+00:00)

## What it is
A TypeScript library providing NestJS integration for Zod schema validation. It lets you create DTOs from Zod schemas, validate request bodies/queries/params, serialize responses, and generate OpenAPI docs.

## Use cases
- validate nestjs request bodies with zod
- create DTOs from zod schemas in nestjs
- generate openapi docs from zod schemas
- serialize nestjs responses with zod
- replace class-validator with zod in nestjs
- validate query params and url params with zod

## When to choose
- you use NestJS and prefer Zod over class-validator/class-transformer
- you want type-safe validation and response serialization in one package
- you need OpenAPI/Swagger docs generated from Zod schemas

## When to avoid
- you don't use NestJS
- your project is committed to class-validator-based DTOs
- you don't use TypeScript or Zod

## Facets
- artifact type: library
- maturity: active
- function: form-handling, serialization, api-framework, api-documentation
- domain: web-development, backend, apis, developer-tools
- platform: cli
- tags: nestjs, zod, dto, openapi, schema-validation, request-validation, nodejs, typescript

## Member repositories
- BenLorantfy/nestjs-zod (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:38.451943+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:42:08.268182+00:00, confidence not recorded.
  - readme: https://github.com/BenLorantfy/nestjs-zod (fetched 2026-08-28T04:03:38.451943+00:00, sha 5e6aa5c9b3d9)
  - registry_npm: https://registry.npmjs.org/nestjs-zod (fetched 2026-08-29T12:45:53.486201+00:00, sha 4025df3c1ffe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
