← All posts

Type-safe APIs end to end with tRPC and Zod

How I stopped writing the same types three times.

Luqmaan

Oct 28, 2026 · 2 min read · Updated Nov 20, 2026

On this page

Sample post. Edit or delete it from the admin panel.

The problem

Types defined in the database, the API and the frontend drift apart.

The fix

One schema, inferred everywhere.

Written by

Luqmaan

I design and ship end-to-end web applications and LLM-powered features — from database schema to polished interface.

Enjoyed this?

Follow new posts via RSS, or get in touch.

← PreviousWhen not to use an LLMNext →Building a production RAG pipeline: lessons from the trenches

Keep reading

All posts →
↑↓ to navigate↵ to openesc to close