Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
tRPC is a tool that allows users to easily build and consume fully type-safe APIs without the need for schemas or code generation. With a focus on being well-tested and production-ready, tRPC offers features like full static typesafety, snappy developer experience, and support for various adapters like React.js, Next.js, Express.js, and Fastify. Additionally, tRPC provides subscription support and request batching, making it a versatile and efficient tool for API development.
To install tRPC, you can follow these steps:
Install the package using npm:
npm install trpc
Import tRPC into your project:
import { createReactQueryHooks } from 'trpc/react';
Set up tRPC in your project as needed, following the documentation on their website.
tRPC offers a convenient solution for building and consuming type-safe APIs without the hassle of schemas or code generation. With its robust features, lightweight nature, and support for various adapters, tRPC is a versatile tool for developers looking to streamline their API development process.