trpc-routing

star 10

How to add or modify tRPC routes in the GetBlitz API. Use this when you need to expose a service through the API or create a new endpoint.

getblitz-io By getblitz-io schedule Updated 2/24/2026

name: trpc-routing description: How to add or modify tRPC routes in the GetBlitz API. Use this when you need to expose a service through the API or create a new endpoint.

tRPC Routing

When exposing new services or adding new endpoints via tRPC:

  1. Add Route Scope: Create or update the specific router in packages/api/src/router/.
  2. Validation: Always use Zod input schemas for validation (z.object({...})).
  3. Register Route: Ensure the new router is registered in the root router located at packages/api/src/root.ts.
  4. Context: Access injected services via the tRPC context (ctx.services.myService).
Install via CLI
npx skills add https://github.com/getblitz-io/getblitz --skill trpc-routing
Repository Details
star Stars 10
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator