www/docs/main/introduction.mdx
</a>{' '}
<a href="https://github.com/trpc/trpc">
</a>{' '}
<a href="https://github.com/trpc/trpc">
</a>
In full-stack TypeScript projects, keeping API contracts in sync between the client and server is a common pain point. tRPC does this by leveraging TypeScript's type inference directly, with no code generation step, and catches problems at build time.
tRPC can run standalone or mounted as an endpoint on your existing REST API using our extensive ecosystem of adapters.
See more on the Videos & Community Resources page.
Or use an example app to get started locally.
Since tRPC can live inside of many different frameworks, you will first need to decide where you want to use it.
On the backend, there are adapters for a range of frameworks as well as vanilla Node.js. On the frontend, you can use our TanStack React Query or Next.js integrations, a third-party integration for a variety of other frameworks, or the Vanilla Client, which works anywhere JavaScript runs.
After choosing your stack, you can either scaffold your app using a template, or start from scratch using the documentation for your chosen backend and frontend integration.
Adding tRPC to an existing project is not significantly different from starting a new project, so the same resources apply. The main challenge is that it can feel difficult to know how to integrate tRPC with your existing application. Here are some tips:
Join us on Discord to ask questions and share your experiences!