Skip to content

Installation

This guide will help you install and set up IRPC in your TypeScript project.

Installing Core Package

bash
npm install @irpclib/irpc
bash
yarn add @irpclib/irpc
bash
pnpm add @irpclib/irpc
bash
bun add @irpclib/irpc

Installing Transport Package

IRPC requires a transport mechanism to communicate between client and server. The HTTP transport is the most commonly used:

bash
npm install @irpclib/http
bash
yarn add @irpclib/http
bash
pnpm add @irpclib/http
bash
bun add @irpclib/http

Peer Dependencies

IRPC uses Zod for schema validation. If you plan to use schema validation features, you'll need to install Zod:

bash
npm install zod
bash
yarn add zod
bash
pnpm add zod
bash
bun add zod