Aller au contenu principal
Version : 11.x

Exemples d'applications

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Officiels

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

Autres écosystèmes

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

Communauté

note

Les exemples de la communauté sont maintenus par leurs auteurs respectifs et peuvent ne pas être mis à jour pour la dernière version de tRPC. Vérifiez la compatibilité des versions dans le README de chaque projet.

Frameworks

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

Intégrations

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