Skip to Content
đź‘‹ Hey there! Welcome to NestJS tRPC.
DocumentationInstallation

Installation

Add tRPC support to your existing NestJS application in just a few steps.

Prerequisites

This guide assumes you already have a working NestJS application. If you don’t, follow the NestJS documentation to create one first.

Installation

Core Package

Add the NestJS tRPC package to your existing project:

pnpm add @nexica/nestjs-trpc

Required Dependencies

Install the tRPC server and validation library:

pnpm add @trpc/server zod

Note: @nestjs/common and @nestjs/core are already installed in your NestJS project.

Next Steps

Now that you have NestJS tRPC installed:

  1. Configuration - Configure the TRPCModule in your app
  2. Create Your First Router - Build your first type-safe API
  3. Understanding Context - Learn about request context and dependency injection

Getting Help

Last updated on: