# tRPC

[BASE product page](<https://base.akulich.dev/en/library/trpc/>) · [Resource](<https://github.com/trpc/trpc>)

ID: trpc · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Connects a TypeScript client and server through typed procedures without manually duplicating API types or generating a REST client\.

## Type

Backend / API library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/trpc/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/trpc/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/trpc/#resource-access>)

Compute, your own hosting, and external services are paid for separately if selected\.

## [Access and limitations](<https://base.akulich.dev/en/library/trpc/#resource-access>)

Code and local use under MIT\. Compute, your own hosting, and external services are paid for separately if selected\.

## [Use cases](<https://base.akulich.dev/en/library/trpc/#resource-tasks>)

- Connect a TypeScript frontend to a typed backend
- Call a procedure from the client and handle a typed result/error

## Category IDs

- backend

## Subcategory IDs

- backend\.api

## Tags

- tRPC
- API
- Development

## Also known as

- trpc/trpc
- trpc
- end\-to\-end\-typesafe\-apis

## [Selection purpose](<https://base.akulich.dev/en/library/trpc/#resource-selection>)

Connect a TypeScript frontend to a typed backend

## [Choose this when](<https://base.akulich.dev/en/library/trpc/#resource-selection>)

- Connect a TypeScript frontend to a typed backend
- Call a procedure from the client and handle a typed result/error

## [Requirements](<https://base.akulich.dev/en/library/trpc/#resource-selection>)

- A validator can use a supported schema library or a custom function throwing an error for an invalid value\.

## [Limitations](<https://base.akulich.dev/en/library/trpc/#resource-selection>)

- Costs and limits of free use: Compute, your own hosting, and external services are paid for separately if selected\.
- Terms of use: MIT: code; dependencies have separate licenses\.
- Consecutive \.input\(\) calls merge only objects\. A repeated property is replaced by the later validator's value; this should not be interpreted as arbitrary merging of arrays or primitives\.

## [Questions before use](<https://base.akulich.dev/en/library/trpc/#resource-faq>)

### What can you use for free in tRPC?

Code and local use under MIT\.

### What additional costs might arise with tRPC?

Compute, your own hosting, and external services are paid for separately if selected\.

### What terms of use matter for tRPC?

MIT: code; dependencies have separate licenses\.

### How do you get started with tRPC?

Define a procedure and its input schema on the server\. Call a procedure from the client and handle a typed result/error\. Add error handling and an integration check of the result\.

### Does tRPC typing replace incoming data validation?

The client obtains types from server declarations without importing executable server code\. Runtime data validation is specified separately: \.input\(\) checks input and \.output\(\) checks the result; an output validation failure returns INTERNAL\_SERVER\_ERROR\.

## Sources for the selection guide

- [https://github\.com/trpc/trpc](<https://github.com/trpc/trpc>)
- [https://raw\.githubusercontent\.com/trpc/trpc/HEAD/README\.md](<https://raw.githubusercontent.com/trpc/trpc/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/trpc/trpc/HEAD/LICENSE](<https://raw.githubusercontent.com/trpc/trpc/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://trpc\.io/docs/server/validators](<https://trpc.io/docs/server/validators>)

## [Possible workflow](<https://base.akulich.dev/en/library/trpc/#resource-scenario>)

Connect a TypeScript frontend to a typed backend\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A data contract or HTTP workflow\.
- A project with a supported runtime\.

## Steps

1. Define a procedure and its input schema on the server\.
2. Call a procedure from the client and handle a typed result/error\.
3. Add error handling and an integration check of the result\.

## Check your result

- Invalid and missing data are handled predictably\.
- Types and the actual response agree; errors are not hidden\.

## [License](<https://base.akulich.dev/en/library/trpc/#resource-license>)

MIT: code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/trpc/#resource-sources>)

- [Official source](<https://github.com/trpc/trpc>)
- [Official source](<https://raw.githubusercontent.com/trpc/trpc/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/trpc/trpc/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://trpc.io/docs/server/validators>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, the current repository license, and the boundaries between code, services, and models were reviewed\. The product was not run or security\-audited\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
