Installation
This guide will help you install and set up IRPC in your TypeScript project.
Installing Core Package
bash
npm install @irpclib/irpcbash
yarn add @irpclib/irpcbash
pnpm add @irpclib/irpcbash
bun add @irpclib/irpcInstalling 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/httpbash
yarn add @irpclib/httpbash
pnpm add @irpclib/httpbash
bun add @irpclib/httpPeer Dependencies
IRPC uses Zod for schema validation. If you plan to use schema validation features, you'll need to install Zod:
bash
npm install zodbash
yarn add zodbash
pnpm add zodbash
bun add zod