{"schemaVersion":1,"id":"trpc","name":"tRPC","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/trpc/","officialUrl":"https://github.com/trpc/trpc","isCatalog":false,"description":"Connects a TypeScript client and server through typed procedures without manually duplicating API types or generating a REST client.","tasks":["Connect a TypeScript frontend to a typed backend","Call a procedure from the client and handle a typed result/error"],"categoryIds":["backend"],"subcategoryIds":["backend.api"],"tags":["tRPC","API","Development"],"aliases":["trpc/trpc","trpc","end-to-end-typesafe-apis"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Compute, your own hosting, and external services are paid for separately if selected.","license":"MIT: code; dependencies have separate licenses.","selectionGuide":{"purpose":"Connect a TypeScript frontend to a typed backend","chooseWhen":["Connect a TypeScript frontend to a typed backend","Call a procedure from the client and handle a typed result/error"],"considerInstead":[],"requirements":["A validator can use a supported schema library or a custom function throwing an error for an invalid value."],"limitations":["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."],"faq":[{"question":"What can you use for free in tRPC?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with tRPC?","answer":"Compute, your own hosting, and external services are paid for separately if selected."},{"question":"What terms of use matter for tRPC?","answer":"MIT: code; dependencies have separate licenses."},{"question":"How do you get started with tRPC?","answer":"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."},{"question":"Does tRPC typing replace incoming data validation?","answer":"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."}],"related":[],"sources":["https://github.com/trpc/trpc","https://raw.githubusercontent.com/trpc/trpc/HEAD/README.md","https://raw.githubusercontent.com/trpc/trpc/HEAD/LICENSE","https://www.open-source-tools.com/","https://trpc.io/docs/server/validators"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Connect a TypeScript frontend to a typed backend.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["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."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/trpc/trpc","https://raw.githubusercontent.com/trpc/trpc/HEAD/README.md","https://raw.githubusercontent.com/trpc/trpc/HEAD/LICENSE","https://www.open-source-tools.com/","https://trpc.io/docs/server/validators"],"checkedAt":"2026-10-06","reviewScope":"Purpose, the current repository license, and the boundaries between code, services, and models were reviewed. The product was not run or security-audited.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under MIT. Compute, your own hosting, and external services are paid for separately if selected.","notes":null,"labeledSources":[{"url":"https://github.com/trpc/trpc","label":"Official source"},{"url":"https://raw.githubusercontent.com/trpc/trpc/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/trpc/trpc/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://trpc.io/docs/server/validators","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}