Skip to main content

trpc/trpc

SkillsMP ha recopilado 24 skills de trpc/trpc. Abre una skill para revisar su origen y sus detalles.

Última actividad de origen registrada
Catálogo de SkillsMP actualizado
skills recopiladas
24
Estrellas en GitHub
40.542
Forks en GitHub
1653

Skills en este repositorio

2 categorías ocupacionales · 100% clasificado

Mostrando 24 de 24 skills recopiladas.

ocupación
Desarrolladores de software
descripción

Create a vanilla tRPC client with createTRPCClient<AppRouter>(), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs.…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Configure the tRPC client link chain: httpLink, httpBatchLink, httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient, httpSubscriptionLink, unstable_localLink, retryLink. Choose the right terminating link. Route subscriptions via splitLink. Build…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Configure SuperJSON transformer on both server initTRPC.create({ transformer: superjson }) and every client terminating link (httpBatchLink, httpLink, wsLink, httpSubscriptionLink) to support Date, Map, Set, BigInt over the wire. Transformer must match on…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores web
descripción

Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient/HydrationBoundary for hydration,…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores web
descripción

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Generate OpenAPI 3.1 spec from a tRPC router with @trpc/openapi CLI or programmatic API. Generate typed REST client with @hey-api/openapi-ts and configureTRPCHeyApiClient(). Configure transformers (superjson, EJSON) for generated clients. Alpha status.

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc/server/adapters/aws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Mount tRPC as Express middleware with createExpressMiddleware() from @trpc/server/adapters/express. Access Express req/res in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('/trpc', ...). Avoid global express.json()…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from @trpc/server/adapters/fastify. Configure prefix, trpcOptions (router, createContext, onError). Enable WebSocket subscriptions with useWSS and @fastify/websocket. Set routerOptions.maxParamLength for…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Deploy tRPC on WinterCG-compliant edge runtimes with fetchRequestHandler() from @trpc/server/adapters/fetch. Supports Cloudflare Workers, Deno Deploy, Vercel Edge Runtime, Astro, Remix, SolidStart. FetchCreateContextFnOptions provides req (Request) and…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Mount tRPC on Node.js built-in HTTP server with createHTTPServer() from @trpc/server/adapters/standalone, createHTTPHandler() for custom http.createServer, createHTTP2Handler() for HTTP/2 with TLS. Configure basePath to slice URL prefix, CORS via the cors npm…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Implement JWT/cookie authentication and authorization in tRPC using createContext for user extraction, t.middleware with opts.next({ ctx }) for context narrowing to non-null user, protectedProcedure base pattern, client-side Authorization headers via…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Set HTTP cache headers on tRPC query responses via responseMeta callback for CDN and browser caching. Configure Cache-Control, s-maxage, stale-while-revalidate. Handle caching with batching and authenticated requests. Avoid caching mutations, errors, and…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Throw typed errors with TRPCError and error codes (NOT_FOUND, UNAUTHORIZED, BAD_REQUEST, INTERNAL_SERVER_ERROR), configure errorFormatter for client-side Zod error display, handle errors globally with onError callback, map tRPC errors to HTTP status codes…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Create and compose tRPC middleware with t.procedure.use(), extend context via opts.next({ ctx }), build reusable middleware with .concat() and .unstable_pipe(), define base procedures like publicProcedure and authedProcedure. Access raw input with…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Handle FormData, file uploads, Blob, Uint8Array, and ReadableStream inputs in tRPC mutations. Use octetInputParser from @trpc/server/http for binary data. Route non-JSON requests with splitLink and isNonJsonSerializable() from @trpc/client. FormData and…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Initialize tRPC with initTRPC.create(), define routers with t.router(), create procedures with .query()/.mutation()/.subscription(), configure context with createContext(), export AppRouter type, merge routers with t.mergeRouters(), lazy-load routers with…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError().…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Break a tRPC backend into multiple services with custom routing links that split on the first path segment (op.path.split('.')) to route to different backend service URLs. Define a faux gateway router that merges service routers for the AppRouter type without…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Set up real-time event streams with async generator subscriptions using .subscription(async function*() { yield }). SSE via httpSubscriptionLink is recommended over WebSocket. Use tracked(id, data) from @trpc/server for reconnection recovery with lastEventId.…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Entry point for all tRPC skills. Decision tree routing by task: initTRPC.create(), t.router(), t.procedure, createTRPCClient, adapters, subscriptions, React Query, Next.js, links, middleware, validators, error handling, caching, FormData.

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Configure input and output validation with .input() and .output() using Zod, Yup, Superstruct, ArkType, Valibot, Effect, or custom validator functions. Chain multiple .input() calls to merge object schemas. Standard Schema protocol support. Output validation…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Migrate from @trpc/react-query (classic) to @trpc/tanstack-react-query. Run npx @trpc/upgrade CLI for automated codemod. Manually migrate remaining patterns: hook-based to options-factory, utils.invalidate to queryClient.invalidateQueries with queryFilter,…

Idioma del texto original: inglés

actualizado
ocupación
Desarrolladores de software
descripción

Set up @trpc/tanstack-react-query with createTRPCContext(), TRPCProvider, useTRPC() hook, queryOptions/mutationOptions factories, query invalidation via queryClient.invalidateQueries with queryFilter, and type inference with inferInput/inferOutput.

Idioma del texto original: inglés

actualizado
Mostrando 24 de 24 skills recopiladas.