Official
Node.js
Example
Description
Links
Minimal
Hello world server and client
Standalone Server
Custom HTTP server with WebSocket support
Content Types
Binary, text, and JSON content type handling
Lazy Loading
Lazy-loading routes with dynamic imports
SOA
Service-oriented architecture with multiple tRPC services
OpenAPI Codegen
Generate a typed REST client from a tRPC router via OpenAPI
Kitchen Sink
Comprehensive examples covering many features
React
Example
Description
Links
Minimal React
Node.js server + Vite React client monorepo
Express + React
Express server with React client using React Query
Next.js
Example
Description
Links
Prisma Starter
Full-stack with Prisma, E2E testing, ESLint, and Tailwind CSS
Source · Demo · CodeSandbox
Minimal Starter
Bare-bones Next.js + tRPC setup
TodoMVC
TodoMVC with SSG and Prisma
Source · Demo · CodeSandbox
WebSockets
Prisma, WebSockets, NextAuth, and subscriptions
Source · Demo · CodeSandbox
SSE Chat
Streaming chat with Server-Sent Events and Drizzle ORM
Big Router
Large router with code generation
Edge Runtime
tRPC on Next.js Edge Runtime
FormData
Form handling with React Hook Form and Zod
WebSocket Encoder
WebSockets with MessagePack binary encoding
Serverless
Example
Description
Links
Lambda + API Gateway
AWS Lambda with API Gateway
Lambda Streaming
AWS Lambda + API Gateway with streaming responses
Lambda Function URLs
AWS Lambda with Function URLs
Cloudflare Workers
tRPC on Cloudflare Workers
Vercel Edge Runtime
tRPC on Vercel Edge Runtime
Deno Deploy
tRPC client on Deno Deploy
Other Ecosystems
Example
Description
Links
Express
Minimal Express + tRPC setup
Fastify
Fastify with WebSocket support
Bun
tRPC server and client on Bun
Nuxt 3
Nuxt 3 integration with trpc-nuxt
note
Community examples are maintained by their respective authors and may not be updated for the latest tRPC version. Check each project's README for version compatibility.
Frameworks
Example
Description
Links
create-t3-turbo
T3 Stack with Expo and Turborepo
SvelteKit + Prisma
SvelteKit integration with Prisma
Integrations
Example
Description
Links
Separate BE/FE
Separate backend and frontend repositories