Articles for people who
ship the stack
Rewrites on React, Node.js, TypeScript and AI. A translated body is shown when it exists. If it does not, you see the English text and a note that says so.
Tagged: Zod
Validate Node.js Environment Variables with Zod and TypeScript
Stop reading process.env all over Node.js code. One env.ts file validated with Zod catches missing secrets at boot and gives the app typed TypeScript config.
3 min readType-Safe Express APIs with Zod and OpenAPI in One Contract
One contract for type-safe Express APIs: Zod validates requests at the edge and the same schemas emit OpenAPI, so TypeScript types and docs never drift.
3 min readReact 19 Server Actions with Zod: Less FormData Boilerplate
React 19 Server Actions with Zod cut FormData boilerplate. Where React Hook Form still wins, and a small helper that removes repeated parsing in each action.
5 min readBranded IDs in TypeScript: Which Encodings Actually Stop a Wrong Delete
Six ways to type UserId and InvoiceId compared under one test: which ones make tsc reject deleteInvoice(userId), and where Zod brands add runtime safety.
11 min readReplacing as-Casts with Zod Parsing at Every Next.js Data Boundary
Why a TypeScript cast cannot protect you from API drift, and how one Zod schema validates fetch results, forms, Route Handlers and Server Actions in Next.js.
5 min readZod 4.5 compile, validate and safeParse: Choosing a Parser per Boundary
How to benchmark Zod 4.5's compiled parsers and boolean validate fast path on valid and invalid payloads, and where each API belongs without losing error paths.
11 min readHand-Built React Forms: Controlled Inputs, Validation and Submit States
Learn how React forms work from controlled inputs and per-type handlers to validation, submission states, dynamic fields, uploads and when a form library pays off.
13 min readTyped Contracts and Zod Guards for a Live WebSocket Analytics Dashboard
How to build a trustworthy real-time dashboard in TypeScript: define payload contracts, validate WebSocket messages with Zod, and stop duplicate connections.
6 min readGuarding the Express Boundary: One Zod Middleware for Body, Params and Query
Learn how to validate Express request bodies, route params and query strings with one reusable Zod middleware, and how it complements Sequelize model validation.
9 min read
About these articles
Request a 24h estimate
Need the same stack in a production operator layer? Send the brief — estimate within 24 hours.