Saltar al contenido principal
Versión: 11.x

Aplicaciones de ejemplo

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Oficiales

Node.js

ExampleDescriptionLinks
MinimalHello world server and clientSource · CodeSandbox
Standalone ServerCustom HTTP server with WebSocket supportSource · CodeSandbox
Content TypesBinary, text, and JSON content type handlingSource · CodeSandbox
Lazy LoadingLazy-loading routes with dynamic importsSource · CodeSandbox
SOAService-oriented architecture with multiple tRPC servicesSource · CodeSandbox
OpenAPI CodegenGenerate a typed REST client from a tRPC router via OpenAPISource
Kitchen SinkComprehensive examples covering many featuresSource · CodeSandbox

React

ExampleDescriptionLinks
Minimal ReactNode.js server + Vite React client monorepoSource · CodeSandbox
Express + ReactExpress server with React client using React QuerySource · CodeSandbox

Next.js

ExampleDescriptionLinks
Prisma StarterFull-stack with Prisma, E2E testing, ESLint, and Tailwind CSSSource · Demo · CodeSandbox
Minimal StarterBare-bones Next.js + tRPC setupSource · CodeSandbox
TodoMVCTodoMVC with SSG and PrismaSource · Demo · CodeSandbox
WebSocketsPrisma, WebSockets, NextAuth, and subscriptionsSource · Demo · CodeSandbox
SSE ChatStreaming chat with Server-Sent Events and Drizzle ORMSource · CodeSandbox
Big RouterLarge router with code generationSource · CodeSandbox
Edge RuntimetRPC on Next.js Edge RuntimeSource · CodeSandbox
FormDataForm handling with React Hook Form and ZodSource · CodeSandbox
WebSocket EncoderWebSockets with MessagePack binary encodingSource · CodeSandbox

Serverless

ExampleDescriptionLinks
Lambda + API GatewayAWS Lambda with API GatewaySource · CodeSandbox
Lambda StreamingAWS Lambda + API Gateway with streaming responsesSource · CodeSandbox
Lambda Function URLsAWS Lambda with Function URLsSource · CodeSandbox
Cloudflare WorkerstRPC on Cloudflare WorkersSource · CodeSandbox
Vercel Edge RuntimetRPC on Vercel Edge RuntimeSource · CodeSandbox
Deno DeploytRPC client on Deno DeploySource · CodeSandbox

Otros ecosistemas

ExampleDescriptionLinks
ExpressMinimal Express + tRPC setupSource · CodeSandbox
FastifyFastify with WebSocket supportSource · CodeSandbox
BuntRPC server and client on BunSource · CodeSandbox
Nuxt 3Nuxt 3 integration with trpc-nuxtSource · CodeSandbox

Comunidad

nota

Los ejemplos de la comunidad son mantenidos por sus respectivos autores y podrían no estar actualizados a la última versión de tRPC. Consulta el archivo README de cada proyecto para ver la compatibilidad de versiones.

Frameworks

ExampleDescriptionLinks
create-t3-turboT3 Stack with Expo and TurborepoSource · CodeSandbox
SvelteKit + PrismaSvelteKit integration with PrismaSource · CodeSandbox

Integraciones

ExampleDescriptionLinks
Separate BE/FESeparate backend and frontend repositoriesBackend (Express) · Frontend (Vite)