validating-string-formats

Installation
SKILL.md

Using Zod v4 Features

Purpose

Comprehensive guide to new features introduced in Zod v4 that improve developer experience, performance, and type safety.

Top-Level String Format Functions

Overview

Zod v4 moved string format validations to top-level functions for 14x faster parsing.

All optimized formats:

  • z.email() - Email validation
  • z.uuid() - UUID validation
  • z.iso.datetime() - ISO datetime
  • z.url() - URL validation
  • z.ipv4() / z.ipv6() - IP addresses
  • z.jwt() - JWT tokens
Related skills
Installs
4
First Seen
Feb 4, 2026