Micro SaaS Boilerplate
GitHub

tRPC Demo

Full-stack type-safe API with tRPC, Drizzle ORM, and PostgreSQL

Create New Post
Add a new post using tRPC mutation
All Posts
Fetched using tRPC query with automatic refetch

Loading posts...

Implementation Details

✅ Full Type Safety: Types flow from database schema → tRPC router → React components

✅ Automatic Validation: Zod schemas validate inputs on both client and server

✅ React Query Integration: Automatic caching, refetching, and loading states

✅ Database: PostgreSQL with Drizzle ORM for type-safe queries