middlewares
About middlewares
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 getRawInput(). Logging, timing, OTEL tracing patterns.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / trpc/ trpc --skill middlewaresAfter installing, type/middlewaresin Claude Code to confirm it loaded.
Comments
Markdown supported