cn|
WorkWritingAboutConnect

cn

building things that matter

  • Work
  • Writing
  • About
  • Connect

© 2026 Cristian Najera

  1. Home
  2. /Writing
  3. /Type-Safe APIs with Zod
TypeScriptZod

Type-Safe APIs with Zod

How runtime validation and static types can coexist without duplication.

February 18, 2026·1 min read

Runtime validation and static types don't have to be separate concerns. Zod lets you define both in one place, eliminating the drift between what your API accepts and what TypeScript thinks it accepts.

0%
← PreviousThe Case for Boring TechnologyNext →Server Components in Production

Related posts

Infrastructure as Code with CDKMoving from CloudFormation YAML to type-safe TypeScript constructs.1 min read
AWSTypeScript
Why I Still Reach for Boring Python FirstI default to stdlib and dataclasses until complexity is earned. Here is the heuristic I use to decide when a framework is worth the overhead.3 min read
PythonOpinionEngineering
Evals Are the ProductWhy treating evaluations as a first-class product concern is the difference between shipping reliable LLM applications and guessing.4 min read
AITesting

Stay in the loop

New posts on engineering, architecture, and what I'm building.