Articles by Tag #zod

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

How to Validate File Inputs in TypeScript with Zod

Form validation is an essential aspect of web development. It plays a crucial role in maintaining an...

Learn More 77 0Nov 1 '24

Zod vs. Valibot: Which Validation Library is Right for Your TypeScript Project?

In a TypeScript world, solid validateing libraries an are essential to your data-structures adheres...

Learn More 14 2Aug 28 '24

Multi-Image Uploader for Next.js | Shadcn/ui

I’ve always had a thing for building small, efficient, and responsive components—especially when it...

Learn More 13 0Feb 23

Gerando Documentação de API Automática com Fastify, @fastify/swagger e Zod

Olá, devs! Neste post, vamos aprender como gerar documentação automática para uma API em uma...

Learn More 12 2Oct 3 '24

Introducing the Zod Schema Designer: A Visual Tool for Creating and Editing Zod Schemas

If you’re a developer using Zod for schema validation in your Next.js or React projects, I have...

Learn More 10 2Dec 30 '24

Why React Hook Form and Zod are Essential to Build Contact Form

Creating a robust and user-friendly contact form is a vital part of any web application. A poorly...

Learn More 9 1Dec 30 '24

Easily Sync Your Subtitles with React, RHF and shadcn/ui

Introduction As a big fan of movies and TV shows, I often run into subtitle syncing issues...

Learn More 8 0Jan 22

ReScript Schema V9 - Zod-like library to the next level 🚀

The article is an overview of changes introduced in the recently released version 9. After more than...

Learn More 8 0Jan 9

Branded Types in TypeScript: techniques

In this post, I’ll walk you through several ways to implement branded types in TypeScript. If you’re...

Learn More 6 1Jun 11

Crafting Type-Safe Zod Helpers: A Deep Dive into `preprocess` and TypeScript Wizardry

When building TypeScript applications with Cucumber for testing, a common challenge emerges: handling...

Learn More 4 1May 13

Using Zod's z.union: An Important Pitfall to Avoid

When using the schema z.union([z.object({}), anotherSchema.partial()]);, Zod checks if the object...

Learn More 3 0Nov 7 '24

Zod v4 got 17x Slower than v3 🚦

A surprising finding about Zod v4’s performance, what it means for you, and how to avoid the pitfalls.

Learn More 2 2May 3

Make Your TypeScript API Responses Safer with Zod (in seconds)

One of the most common problems we run into when trying to type our API responses—besides it being...

Learn More 1 1Jun 16

Form - Next15/React19/ReactHookForm + Zod + useActionState

Respuesta Directa Puntos clave: Parece probable que la mejor combinación para manejar...

Learn More 1 0Mar 22

React MVVM Architecture with TanStack Router: Model Layer

Types are playing an essential part in modern React applications. They’re the foundation for typing...

Learn More 1 0Aug 21

Zod Validation in [React + Typescript]

Zod Zod is a TypeScript-first schema declaration and validation library. It allows you to...

Learn More 1 0Jan 31

Zod: The Ultimate Validation Library for TypeScript

This post was originally posted here on my site codespoetry.com Zod is a TypeScript-first schema...

Learn More 1 0May 30

Shared form with config files in NextJs

Building a shared form for React with zod, react-hook-form and shadcn ui library.

Learn More 1 0Jan 9

Validating Environment Variables in Node.js with Zod

Ever pushed a project to production only to realize an environment variable was missing or mistyped?...

Learn More 1 0May 22

zod-sugar is just ‘zod backwards’ or “zod in reverse”

TLDR: This article introduces the zod-sugar library: https://github.com/samuelkarani/zod-sugar When...

Learn More 0 0Jul 31

__Pure__ annotation in Zod source code.

In this article, we will review Pureannotation in zod source code.  We will look at: Where to find...

Learn More 0 2Jun 8

Zod and Data modelling

My plan is to develop that app. It has a hierarchic data structure. Zod should validate the data....

Learn More 0 0Feb 25

Building a Robust API Layer - Implementation with `api-def` Package

Continuing our series, let's delve into the practical implementation using the api-def...

Learn More 0 0Sep 26 '24

How I've been trying to improve mocking with Zod

An article detailing how to use zodObjectBuilder to improve your mocking experiences

Learn More 0 0Dec 27 '24

Zod for TypeScript Schema Validation: A Comprehensive Guide

I have really enjoyed using TypeScript in all my node projects, and I like enforcing static type...

Learn More 0 0Dec 30 '24

semver-check.ts file in Zod source code.

In this article, we will review semver-check.ts file in Zod source code. We will look at: Where is...

Learn More 0 0Jun 6

[Boost]

Zod: The Ultimate Validation Library for TypeScript Ashik...

Learn More 0 1Jun 16

Zod: The Ultimate Validation Library for TypeScript

Zod: The Ultimate Validation Library for TypeScript Ashik...

Learn More 0 0May 30

Stop Using Repetitive Validation Logic – Embrace Zod

If you're a backend or fullstack developer, you've probably written this kind of code more times than...

Learn More 0 0May 11

postbuild.ts file in Zod codebase.

In this article, we will review postbuild.ts file in Zod codebase. We will look at: Where is...

Learn More 0 0Jun 5