Miscellaneous
tRPC

tRPC

tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.

Documentation (opens in a new tab)

Dependencies Installed

  • Regular
    • @tanstack/react-query@4.32.1
    • @trpc/client
    • @trpc/react-query
    • @trpc/server
    • @trpc/next
    • superjson

Files Scaffolded

  • lib/server/routers/_app.ts
  • lib/server/trpc.ts
  • lib/server/routers/computers.ts
  • app/api/trpc/[trpc]/route.ts
  • lib/trpc/client.ts
  • lib/trpc/Provider.tsx
  • lib/trpc/api.ts
  • lib/trpc/context.ts
  • lib/trpc/utils.ts

Files Updated

  • .env
  • lib/env.mjs
  • app/layout.tsx