trpc
๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
File Explorer
Download Latest Version (.zip)- coding-guidelines.mdc
- pnpm.mdc
- react-query-tests.mdc
- tanstack-react-query-tests.mdc
- test-patterns.mdc
- test-running.mdc
- upgrade-tests.mdc
- 1.bug_report.yml
- 2.feature_request.yml
- 3.docs.yml
- config.yml
- action.yml
- check-skills.yml
- codeql-analysis.yml
- dependabot-approve.yml
- labeler.yml
- lint.yml
- lock-issues.yml
- main.yml
- notify-intent.yml
- release-manual.yml
- semantic-pr.yml
- subtree.yml
- validate-skills.yml
- CODEOWNERS
- FUNDING.yml
- labeler.yml
- pull_request_template.md
- renovate.json
- config.json
- extensions.json
- settings.json
- domain_map.yaml
- skill_spec.md
- skill_tree.yaml
- route.ts
- route.ts
- route.ts
- ClientGreeting.tsx
- page.tsx
- page.tsx
- page.tsx
- db.ts
- Form.tsx
- trpc.ts
- _data.schema.ts
- _data.ts
- AddPostForm.tsx
- layout.tsx
- page.tsx
- page.tsx
- ServerInvokedGreeting.tsx
- layout.tsx
- page.tsx
- post.tsx
- _actions.tsx
- FormWithUseActionExample.tsx
- page.tsx
- RawExample.tsx
- RawFormExample.tsx
- ReactHookFormExample.action.tsx
- ReactHookFormExample.schema.tsx
- ReactHookFormExample.tsx
- UseActionExample.tsx
- layout.tsx
- page.tsx
- _app.ts
- context.ts
- trpc.ts
- client.ts
- package.json
- rq-client.tsx
- rq-server.tsx
- server-invoker.ts
- shared.ts
- auth.ts
- client.test.ts
- server-cache.test.ts
- .env
- .gitignore
- next.config.ts
- package.json
- playwright.config.ts
- README.md
- tsconfig.json
- railway.json
- railway.json
- codegen-base.ts
- codegen.ts
- context.ts
- trpc.ts
- trpc.ts
- .gitignore
- next-env.d.ts
- next.config.ts
- package.json
- README.md
- tsconfig.json
- client.ts
- server.ts
- .gitignore
- package.json
- README.md
- tsconfig.json
- tsdown.config.ts
- index.ts
- package.json
- tsconfig.json
- index.ts
- package.json
- tsconfig.json
- .gitkeep
- App.tsx
- react-setup.tsx
- vanilla-client.ts
- package.json
- tsconfig.json
- index.ts
- trpc.ts
- package.json
- tsconfig.json
- base.json
- package.json
- react.json
- [trpc].ts
- _app.tsx
- index.tsx
- _app.ts
- trpc.ts
- trpc.ts
- smoke.test.ts
- next-env.d.ts
- next.config.ts
- package.json
- playwright.config.ts
- README.md
- tsconfig.json
- [trpc].ts
- _app.tsx
- index.tsx
- _app.ts
- trpc.ts
- trpc.ts
- smoke.test.ts
- next-env.d.ts
- next.config.ts
- package.json
- playwright.config.ts
- README.md
- tsconfig.json
- client.ts
- index.ts
- router.ts
- package.json
- README.md
- tsconfig.json
- client.ts
- index.ts
- router.ts
- .gitignore
- package.json
- README.md
- tsconfig.json
- wrangler.jsonc
- client.ts
- index.ts
- router.ts
- deno.json
- README.md
- client.ts
- router.ts
- server.ts
- package.json
- README.md
- tsconfig.json
- client.ts
- server.ts
- package.json
- README.md
- tsconfig.json
- index.ts
- polyfill.ts
- api.ts
- posts.ts
- sub.ts
- context.ts
- index.ts
- trpc.ts
- index.ts
- server.ts
- config.ts
- .gitignore
- package.json
- README.md
- sandbox.config.json
- tsconfig.json
- README.md
- client.ts
- payloadFormatVersionClient.ts
- server.ts
- .gitignore
- package.json
- README.md
- serverless.yml
- tsconfig.json
- client.ts
- server.ts
- .gitignore
- package.json
- README.md
- serverless.yml
- tsconfig.json
- client.ts
- server.ts
- .gitignore
- package.json
- README.md
- serverless.yml
- tsconfig.json
- index.ts
- _app.ts
- slow.ts
- user.ts
- db.ts
- index.ts
- trpc.ts
- package.json
- README.md
- tsconfig.json
- index.ts
- db.ts
- index.ts
- trpc.ts
- transformer.ts
- package.json
- README.md
- tsconfig.json
- trpc.ts
- App.tsx
- main.tsx
- SendFileButton.tsx
- SendMultipartFormDataButton.tsx
- vite-env.d.ts
- .gitignore
- index.html
- package.json
- tsconfig.json
- vite.config.ts
- index.ts
- package.json
- tsconfig.json
- smoke.test.ts
- package.json
- playwright.config.ts
- README.md
- trpc.ts
- App.tsx
- Greeting.tsx
- main.tsx
- vite-env.d.ts
- .gitignore
- index.html
- package.json
- tsconfig.json
- vite.config.ts
- index.ts
- package.json
- tsconfig.json
- smoke.test.ts
- package.json
- playwright.config.ts
- README.md
- codegen-base.ts
- codegen.ts
- [trpc].ts
- _app.tsx
- index.tsx
- context.ts
- trpc.ts
- trpc.ts
- .gitignore
- next-env.d.ts
- next.config.ts
- package.json
- README.md
- tsconfig.json
- [trpc].ts
- _app.tsx
- index.tsx
- trpc.ts
- trpc.ts
- next-env.d.ts
- next.config.ts
- package.json
- README.md
- tsconfig.json
- [trpc].ts
- _app.tsx
- index.tsx
- react-hook-form.tsx
- vanilla.tsx
- room.ts
- viewer.ts
- trpc.ts
- schemas.ts
- trpc.ts
- writeFileToDisk.ts
- .gitignore
- next-env.d.ts
- next.config.ts
- package.json
- README.md
- tsconfig.json
- [trpc].ts
- _app.tsx
- index.tsx
- trpc.ts
- transformer.ts
- trpc.ts
- next-env.d.ts
- next.config.ts
- package.json
- README.md
- tsconfig.json
- main.yml
- dependabot.yml
- FUNDING.yml
- extensions.json
- settings.json
- smoke.test.ts
- migration.sql
- migration.sql
- migration.sql
- migration.sql
- migration_lock.toml
- schema.prisma
- seed.ts
- favicon.ico
- vercel.svg
- DefaultLayout.tsx
- [trpc].ts
- [id].tsx
- 404.tsx
- _app.tsx
- index.tsx
- _app.ts
- post.test.ts
- post.ts
- context.ts
- env.ts
- prisma.ts
- trpc.ts
- globals.css
- transformer.ts
- trpc.ts
- .env
- .gitignore
- .npmrc
- eslint.config.mjs
- next-env.d.ts
- next.config.ts
- package.json
- playwright.config.ts
- postcss.config.js
- README.md
- sandbox.config.json
- tailwind.config.ts
- tsconfig.json
- vitest.config.ts
- migration.sql
- migration.sql
- migration_lock.toml
- schema.prisma
- favicon.ico
- footer.tsx
- [trpc].ts
- [filter].tsx
- _app.tsx
- _app.ts
- todo.ts
- context.ts
- prisma.ts
- ssg-init.ts
- trpc.ts
- trpc.ts
- use-click-outside.tsx
- playwright.test.ts
- .env
- .gitignore
- next.config.js
- package.json
- playwright.config.ts
- README.md
- tsconfig.json
- vercel.json
- codeql-analysis.yml
- main.yml
- dependabot.yml
- FUNDING.yml
- extensions.json
- settings.json
- migration.sql
- migration.sql
- migration.sql
- migration.sql
- migration.sql
- migration_lock.toml
- schema.prisma
- seed.ts
- favicon.ico
- vercel.svg
- [...nextauth].ts
- [trpc].ts
- _app.tsx
- about.tsx
- index.tsx
- _app.ts
- post.ts
- context.ts
- prisma.ts
- prodServer.ts
- trpc.ts
- wssDevServer.ts
- global.css
- trpc.ts
- playwright.test.ts
- .env
- .gitignore
- .npmrc
- docker-compose.yaml
- eslint.config.mjs
- next-env.d.ts
- next.config.ts
- package.json
- playwright.config.ts
- postcss.config.js
- README.md
- sandbox.config.json
- tailwind.config.ts
- tsconfig.json
- tsconfig.server.json
- route.ts
- route.ts
- chat.tsx
- hooks.ts
- layout.tsx
- page.tsx
- utils.ts
- create-channel.tsx
- globals.css
- layout.tsx
- page.tsx
- providers.tsx
- avatar.tsx
- button.tsx
- dialog.tsx
- input.tsx
- query-client.ts
- trpc.ts
- 0000_snapshot.json
- 0001_snapshot.json
- _journal.json
- 0000_lyrical_khan.sql
- 0001_wet_tarantula.sql
- client.ts
- schema.ts
- _app.ts
- channel.ts
- post.ts
- auth.tsx
- context.ts
- trpc.ts
- .env.example
- .gitignore
- docker-compose.yaml
- drizzle.config.ts
- next.config.ts
- package.json
- postcss.config.js
- README.md
- tailwind.config.ts
- tsconfig.json
- [trpc].ts
- _app.tsx
- index.tsx
- _app.ts
- prodServer.ts
- trpc.ts
- wssDevServer.ts
- global.css
- encoder.ts
- trpc.ts
- next-env.d.ts
- next.config.ts
- package.json
- postcss.config.js
- README.md
- tailwind.config.ts
- tsconfig.json
- tsconfig.server.json
- trpc.ts
- favicon.ico
- robots.txt
- [trpc].ts
- init.ts
- tsconfig.json
- smoke.test.ts
- .gitignore
- app.vue
- nuxt.config.ts
- package.json
- playwright.config.ts
- README.md
- tsconfig.json
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- index.ts
- codegen.ts
- db.ts
- index.ts
- trpc.ts
- transformer.ts
- openapi.json
- package.json
- tsconfig.json
- client.ts
- index.ts
- index.ts
- index.ts
- router.ts
- index.ts
- router.ts
- index.ts
- package.json
- README.md
- tsconfig.json
- client.ts
- server.ts
- package.json
- README.md
- sandbox.config.json
- tsconfig.json
- client.ts
- index.ts
- router.ts
- .gitignore
- package.json
- README.md
- tsconfig.json
- intent.js
- SKILL.md
- link-options.md
- SKILL.md
- SKILL.md
- testClientResource.ts
- dataLoader.ts
- inputWithTrackedEventId.ts
- signals.ts
- transformer.ts
- TRPCUntypedClient.ts
- types.test.ts
- types.ts
- contentTypes.ts
- createChain.test.ts
- createChain.ts
- dedupeLink.test.ts
- dedupeLink.ts
- httpUtils.ts
- subscriptions.ts
- urlWithConnectionParams.ts
- encoder.ts
- options.ts
- requestManager.ts
- utils.ts
- wsClient.ts
- wsConnection.ts
- createWsClient.ts
- wsLink.ts
- httpBatchLink.ts
- HTTPBatchLinkOptions.ts
- httpBatchStreamLink.ts
- httpLink.ts
- httpSubscriptionLink.ts
- localLink.test.ts
- localLink.ts
- loggerLink.ts
- retryLink.ts
- splitLink.test.ts
- splitLink.ts
- types.ts
- createTRPCClient.ts
- createTRPCUntypedClient.ts
- getFetch.ts
- index.ts
- links.ts
- TRPCClientError.ts
- unstable-internals.ts
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- tsdown.config.ts
- turbo.json
- vitest.config.ts
- intent.js
- SKILL.md
- SKILL.md
- nextCache.ts
- nextHttp.ts
- client.test.tsx
- client.ts
- create-action-hook.tsx
- server.ts
- shared.ts
- types.ts
- createTRPCNext.tsx
- index.ts
- ssrPrepass.ts
- withTRPC.tsx
- issue-4130-ssr-different-transformers.test.tsx
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- tsdown.config.ts
- turbo.json
- vitest.config.ts
- intent.js
- SKILL.md
- index.ts
- cli.ts
- generate.ts
- index.ts
- schemaExtraction.ts
- types.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- client.gen.ts
- index.ts
- types.gen.ts
- utils.gen.ts
- auth.gen.ts
- bodySerializer.gen.ts
- params.gen.ts
- pathSerializer.gen.ts
- queryKeySerializer.gen.ts
- serverSentEvents.gen.ts
- types.gen.ts
- utils.gen.ts
- client.gen.ts
- index.ts
- sdk.gen.ts
- types.gen.ts
- .eslintignore
- .prettierignore
- amazonIonRouter.openapi.json
- amazonIonRouter.router.ts
- appRouter.openapi.json
- appRouter.router.ts
- cyclicTypesRouter.openapi.json
- cyclicTypesRouter.router.ts
- descriptionsRouter.openapi.json
- descriptionsRouter.router.ts
- edgeCaseRouter.openapi.json
- edgeCaseRouter.router.ts
- errorFormatterRouter.openapi.json
- errorFormatterRouter.router.ts
- mongoEjsonRouter.openapi.json
- mongoEjsonRouter.router.ts
- nodeModulesJsDocRouter.openapi.json
- nodeModulesJsDocRouter.router.ts
- superjsonRouter.openapi.json
- superjsonRouter.router.ts
- codegen.run.ts
- codegen.ts
- globalSetup.ts
- amazonIon.test.ts
- cli.test.ts
- cyclicTypes.test.ts
- edgeCases.test.ts
- generate.test.ts
- heyapi.test.ts
- mongoEjson.test.ts
- nodeModulesJsDoc.test.ts
- openApiCompat.test.ts
- schemaExtraction.test.ts
- types.ts
- validateOpenApi.ts
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- tsdown.config.ts
- vitest.config.ts
- context.tsx
- getClientArgs.ts
- getQueryKey.test.ts
- getQueryKey.ts
- trpcResult.ts
- useQueries.ts
- index.ts
- ssgProxy.ts
- createHooksInternal.tsx
- createRootHooks.tsx
- types.ts
- index.ts
- mutationLike.ts
- queryLike.ts
- routerLike.ts
- utilsLike.ts
- decorationProxy.ts
- useQueriesProxy.ts
- utilsProxy.ts
- index.ts
- queryClient.ts
- types.ts
- createUtilityFunctions.ts
- inferReactQueryProcedure.ts
- createTRPCQueryUtils.tsx
- createTRPCReact.tsx
- index.ts
- rsc.tsx
- issue-1645-setErrorStatusSSR.test.tsx
- issue-2942-useInfiniteQuery-setData.test.tsx
- issue-2996-defined-data.test.tsx
- issue-3455-56-invalidate-queries.test.tsx
- issue-3461-reserved-properties.test.tsx
- issue-4360-useInfiniteQuery-placeHolderData.test.tsx
- issue-4486-initialData-types.test.tsx
- issue-4519-invalid-select-as-transform.test.tsx
- issue-5357-input-always-required.test.tsx
- issue-5808-proxy-in-dep-array.test.tsx
- __queryClient.ts
- __reactHelpers.tsx
- __setupTests.ts
- __testHelpers.tsx
- abortOnUnmount.test.tsx
- createClient.test.tsx
- createQueryUtils.test.ts
- dehydrate.test.tsx
- ensureQueryData.test.tsx
- errors.test.tsx
- formatError.test.tsx
- formData.test.tsx
- getQueryKey.test.tsx
- invalidateQueries.test.tsx
- invalidateRouters.test.tsx
- multiple-trpc-providers.test.tsx
- mutationkey.test.tsx
- octetStreams.test.tsx
- offline.test.tsx
- overrides.test.tsx
- polymorphism.common.tsx
- polymorphism.factory.tsx
- polymorphism.subtyped-factory.tsx
- polymorphism.test.tsx
- prefetchQuery.test.tsx
- queryClientDefaults.test.tsx
- queryOptions.test.tsx
- rsc-prefetch.test.tsx
- setInfiniteQueryData.test.tsx
- setQueriesData.test.tsx
- setQueryData.test.tsx
- ssg.test.ts
- ssgExternal.test.ts
- trpc-options.test.tsx
- useInfiniteQuery.test.tsx
- useMutation.test.tsx
- useQueries.test.tsx
- useQuery.test.tsx
- useSubscription.test.tsx
- useSuspenseInfiniteQuery.test.tsx
- useSuspenseQueries.test.tsx
- useSuspenseQuery.test.tsx
- useUtils.test.tsx
- withTRPC.test.tsx
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- tsdown.config.ts
- turbo.json
- vitest.config.ts
- intent.js
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- SKILL.md
- http.ts
- index.ts
- rpc.ts
- fakeTimersResource.ts
- fetchServerResource.ts
- iterableEventEmitter.ts
- suppressLogs.ts
- trpcServerResource.ts
- waitError.ts
- getPlanner.ts
- index.ts
- fastifyRequestHandler.ts
- fastifyTRPCPlugin.ts
- index.ts
- fetchRequestHandler.ts
- index.ts
- types.ts
- nextAppDirCaller.ts
- notFound.ts
- redirect.ts
- rethrowNextErrors.ts
- incomingMessageToRequest.test.ts
- incomingMessageToRequest.ts
- index.ts
- nodeHTTPRequestHandler.ts
- types.ts
- writeResponse.ts
- express.ts
- next-app-dir.test.ts
- next-app-dir.ts
- next.ts
- standalone.ts
- ws.ts
- wsEncoder.ts
- behaviorSubject.test.ts
- behaviorSubject.ts
- index.ts
- observable.test.ts
- observable.ts
- operators.test.ts
- operators.ts
- types.ts
- inference.test.ts
- inference.ts
- inferrable.ts
- serialize.test.ts
- serialize.ts
- formatter.ts
- getErrorShape.ts
- TRPCError.ts
- abortError.ts
- contentType.ts
- contentTypeParsers.ts
- formDataToObject.test.ts
- formDataToObject.ts
- getHTTPStatusCode.ts
- parseConnectionParams.ts
- resolveResponse.ts
- types.ts
- codes.ts
- envelopes.ts
- index.ts
- parseTRPCMessage.ts
- asyncIterable.ts
- createDeferred.ts
- disposable.ts
- mergeAsyncIterables.test.ts
- mergeAsyncIterables.ts
- readableStreamFrom.test.ts
- readableStreamFrom.ts
- timerResource.ts
- withPing.test.ts
- withPing.ts
- jsonl.test.ts
- jsonl.ts
- sse.test.ts
- sse.ts
- sse.types.ts
- tracked.ts
- createProxy.test.ts
- createProxy.ts
- initTRPC.test.ts
- initTRPC.ts
- middleware.ts
- parser.ts
- procedure.ts
- procedureBuilder.test.ts
- procedureBuilder.ts
- rootConfig.ts
- router.mergeRouters.test.ts
- router.test.ts
- router.ts
- transformer.ts
- types.ts
- utils.ts
- split.ts
- error.ts
- spec.ts
- ATTRIBUTION.txt
- index.ts
- LICENSE
- types.ts
- unpromise.ts
- is-plain-object.ts
- http.ts
- index.ts
- rpc.ts
- shared.ts
- unstable-core-do-not-import.ts
- package.json
- README.md
- tsconfig.benchmark.json
- tsconfig.build.json
- tsconfig.json
- tsdown.config.ts
- turbo.json
- vitest.config.ts
- intent.js
- SKILL.md
- SKILL.md
- Context.tsx
- createOptionsProxy.ts
- infiniteQueryOptions.ts
- mutationOptions.ts
- queryOptions.ts
- subscriptionOptions.ts
- types.ts
- utils.ts
- index.ts
- queryOptions.test.tsx.snap
- __helpers.tsx
- client.test.tsx
- infiniteQueryOptions.test.tsx
- multipleTrpcProviders.test.tsx
- mutationOptions.test.tsx
- polymorphism.common.tsx
- polymorphism.factory.tsx
- polymorphism.test.tsx
- queryKeyable.test.tsx
- queryOptions.test.tsx
- skipToken.test.tsx
- useSubscription.test.tsx
- utils.test.ts
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- tsdown.config.ts
- turbo.json
- vitest.config.ts
- awsLambda.test.tsx
- awsLambda.test.utils.ts
- express.test.tsx
- fastify.test.ts
- fetch.test.ts
- next.test.ts
- standalone.http2.test.ts
- standalone.test.ts
- issue-2506-headers-throwing.test.ts
- issue-2540-undefined-mutation.test.ts
- issue-2842-createSSGHelpers-promise.test.ts
- issue-2856-middleware-infer.test.ts
- issue-3085-bad-responses.test.ts
- issue-3351-TRPCError.test.ts
- issue-3359-http-status-413-payload-too-large.test.ts
- issue-3453-meta-interface.test.ts
- issue-3710-client.test.ts
- issue-4049-stripped-undefined.test.tsx
- issue-4217-throw-non-errors.test.ts
- issue-4321-context-union-inference.test.ts
- issue-4527-nested-middleware-root-context.test.ts
- issue-4645-inferProcedureOutput.test.ts
- issue-4673-url-encoded-batching.test.ts
- issue-4783-charset.test.ts
- issue-4794-error-bad-access.test.ts
- issue-4947-merged-middleware-inputs.test.ts
- issue-5020-inference-middleware.test.ts
- issue-5034-input-with-index-signature.test.ts
- issue-5037-context-inference.test.ts
- issue-5056-input-parser-standalone-mw-inference.test.ts
- issue-5297-description-key-on-input-turns-to-void.test.ts
- issue-5945-stream-null.test.ts
- issue-6461-stream-error.test.ts
- issue-7272-node-vm-error-message.test.ts
- serializable-inference.test.tsx
- ___testHelpers.ts
- abortQuery.test.ts
- batching.test.ts
- caller.test.ts
- callRouter.test.ts
- children.test.ts
- clientInternals.test.ts
- contentTypeHeaders.test.ts
- createCaller.test.ts
- createClient.test.ts
- createUntypedClient.test.ts
- dataloader.test.ts
- errorFormatting.test.ts
- errors.test.ts
- getRawInput.test.ts
- getUntypedClient.test.ts
- headers.test.tsx
- httpSubscriptionLink.headers.retryLink.test.ts
- httpSubscriptionLink.memory.test.ts
- httpSubscriptionLink.test.ts
- index.test.ts
- inferenceHelpers.test.ts
- input.test.ts
- isDev.test.ts
- jsonify.test.ts
- links.test.ts
- meta.test.ts
- methodOverride.test.ts
- middlewares.test.ts
- outputParser.test.ts
- rawFetch.test.tsx
- responseMeta.test.ts
- routerMeta.test.ts
- smoke.test.ts
- streaming.test.ts
- transformer.test.ts
- TRPCError.test.ts
- validators.test.ts
- websockets.encoder.test.ts
- websockets.memory.test.ts
- websockets.test.ts
- zAsyncIterable.ts
- dataloader.test.ts
- tinyrpc.test.ts
- tinyrpc.ts
- package.json
- README.md
- suppressActWarnings.ts
- tsconfig.json
- vitest.config.ts
- index.ts
- modifiers.ts
- scanners.ts
- walkers.ts
- execa.ts
- git.ts
- pkgmgr.ts
- hooksToOptions.ts
- provider.ts
- basic.snap.tsx
- basic.spec.tsx
- basic.trpc.tsx
- basic.tsx
- existingRq.snap.tsx
- existingRq.tsx
- existingRqMix.snap.tsx
- existingRqMix.spec.tsx
- existingRqMix.trpc.tsx
- existingRqMix.tsx
- multipleFunctions.snap.tsx
- multipleFunctions.spec.tsx
- multipleFunctions.trpc.tsx
- multipleFunctions.tsx
- optimistic-update.snap.tsx
- optimistic-update.spec.tsx
- optimistic-update.trpc.tsx
- optimistic-update.tsx
- reactContext.snap.tsx
- reactContext.spec.tsx
- reactContext.trpc.tsx
- reactContext.tsx
- suspenseDestructuring.snap.tsx
- suspenseDestructuring.spec.tsx
- suspenseDestructuring.trpc.tsx
- suspenseDestructuring.tsx
- utilities.snap.tsx
- utilities.trpc.tsx
- utilities.tsx
- withInvalidate.snap.tsx
- withInvalidate.spec.tsx
- withInvalidate.trpc.tsx
- withInvalidate.tsx
- basic.snap.tsx
- basic.trpc.tsx
- basic.tsx
- __helpers.tsx
- setupTests.ts
- specDef.ts
- transforms.test.ts
- package.json
- README.md
- tsconfig.json
- tsdown.config.ts
- vitest.config.ts
- entrypoints.js
- entrypoints.ts
- version.ts
- 2021-05-05-hello-world.mdx
- 2022-11-21-announcing-trpc-10.mdx
- 2023-01-14-typescript-performance-lessons.mdx
- 2023-01-17-tinyrpc-client.mdx
- 2024-05-23-trpc-actions.mdx
- 2025-02-17-new-tanstack-react-query-integration.mdx
- 2025-03-21-announcing-trpc-11.mdx
- authors.yml
- httpBatchLink.md
- httpBatchStreamLink.md
- httpLink.md
- httpSubscriptionLink.md
- localLink.mdx
- loggerLink.md
- overview.md
- retryLink.md
- splitLink.mdx
- wsLink.md
- server-actions.mdx
- setup.mdx
- aborting-procedures.md
- server-side-helpers.md
- setup.mdx
- ssg.md
- ssr.md
- overview.mdx
- starter-projects.md
- aborting-procedures.md
- createTRPCQueryUtils.md
- disabling-queries.md
- getQueryKey.md
- infer-types.md
- overview.mdx
- server-components.mdx
- setup.mdx
- suspense.md
- useInfiniteQuery.md
- useMutation.md
- useQueries.md
- useQuery.md
- useSubscription.md
- useUtils.mdx
- migrating.mdx
- overview.md
- server-components.mdx
- setup.mdx
- usage.mdx
- aborting-procedures.md
- infer-types.md
- overview.md
- setup.mdx
- cors.md
- headers.md
- openapi.md
- overview.md
- awesome-trpc.mdx
- contributing.mdx
- love.mdx
- sponsors.mdx
- faq.mdx
- further-reading.md
- rpc.md
- Step1.md
- Step2.md
- Step3.md
- concepts.mdx
- example-apps.mdx
- introduction.mdx
- quickstart.mdx
- tanstack-intent.mdx
- videos-and-community-resources.mdx
- migrate-from-v10-to-v11.mdx
- _import-approuter.mdx
- aws-lambda.md
- express.md
- fastify.md
- fetch.mdx
- nextjs.md
- standalone.md
- adapters-intro.md
- authorization.md
- caching.md
- context.md
- data-transformers.md
- error-formatting.md
- error-handling.md
- merging-routers.md
- metadata.md
- middlewares.md
- non-json-content-types.md
- overview.md
- procedures.md
- routers.md
- server-side-calls.md
- subscriptions.md
- validators.md
- websockets.md
- .gitignore
- test-sub.md
- dynamic-image.tsx
- emoji.tsx
- image-svg.tsx
- language.tsx
- param.tsx
- static.tsx
- tailwind.tsx
- vercel.tsx
- blog.tsx
- docs.tsx
- font.ts
- landing.tsx
- index.tsx
- favicon.ico
- pattern.svg
- env.js
- fetchFont.ts
- zodParams.ts
- .gitignore
- next-env.d.ts
- next.config.js
- package.json
- README.md
- tsconfig.json
- check-twoslash.ts
- popIn.ts
- .gitignore
- script.output.ts
- script.pull.ts
- script.push.ts
- script.types.ts
- SponsorBubbles.jsx
- TopSponsors.tsx
- index.tsx
- script.output.ts
- script.ts
- tweetsOld.ts
- ArticleCard.tsx
- Button.tsx
- CompaniesUsing.script.ts
- CompaniesUsing.tsx
- ConceptsChart.tsx
- Features.tsx
- GithubSponsorButton.tsx
- GithubStarsButton.tsx
- Iframe.tsx
- InstallSnippet.tsx
- Preview.tsx
- QuickIntro.tsx
- SectionTitle.tsx
- YouTubeEmbed.tsx
- custom.css
- index.tsx
- media.tsx
- pricing.tsx
- index.tsx
- index.tsx
- index.jsx
- styles.css
- index.tsx
- index.tsx
- index.jsx
- cn.ts
- env.js
- handleSmoothScrollToSection.ts
- searchParams.ts
- useEnv.ts
- favicon.ico
- links-diagram.svg
- logo-text-black.svg
- logo-text-white.svg
- logo.svg
- powered-by-vercel.svg
- split-link-diagram.svg
- Cal.com.svg
- Documenso.png
- Google.svg
- Langfuse.svg
- Legora.svg
- Mistral.svg
- Netflix.svg
- PayPal.svg
- Ping.gg.svg
- Pleo.svg
- .nojekyll
- _contributing.mdx
- _love.mdx
- _sponsors.mdx
- httpBatchLink.md
- httpBatchStreamLink.md
- httpLink.md
- loggerLink.md
- overview.md
- splitLink.mdx
- wsLink.md
- aborting-procedures.md
- introduction.mdx
- server-side-helpers.md
- setup.mdx
- ssg.md
- ssr.md
- starter-projects.md
- aborting-procedures.md
- getQueryKey.md
- infer-types.md
- introduction.mdx
- setup.mdx
- suspense.md
- useInfiniteQuery.md
- useMutation.md
- useQueries.md
- useQuery.md
- useUtils.mdx
- aborting-procedures.md
- infer-types.md
- introduction.md
- setup.mdx
- cors.md
- headers.md
- overview.md
- awesome-trpc.mdx
- contributing.mdx
- love.mdx
- sponsors.mdx
- faq.mdx
- further-reading.md
- rpc.md
- subscriptions.md
- Step1.md
- Step2.md
- Step3.md
- concepts.mdx
- example-apps.mdx
- getting-started.mdx
- introduction.mdx
- quickstart.mdx
- videos-and-community-resources.mdx
- migrate-from-v9-to-v10.mdx
- _import-approuter.mdx
- aws-lambda.md
- express.md
- fastify.md
- fetch.mdx
- nextjs.md
- standalone.md
- adapters-intro.md
- authorization.md
- caching.md
- context.md
- data-transformers.md
- error-formatting.md
- error-handling.md
- merging-routers.md
- metadata.md
- middlewares.md
- procedures.md
- routers.md
- server-side-calls.md
- validators.md
- .gitignore
- cors.md
- header.md
- links.md
- vanilla.md
- further-reading.md
- rpc.md
- subscriptions.md
- awesome-trpc.mdx
- contributing.mdx
- example-apps.md
- introduction.mdx
- love.mdx
- quickstart.mdx
- sponsors.mdx
- introduction.md
- ssg-helpers.md
- ssg.md
- ssr.md
- starter-projects.md
- introduction.md
- invalidateQueries.md
- useInfiniteQuery.md
- useMutation.md
- useQuery.md
- authorization.md
- aws-lambda.md
- caching.md
- context.md
- data-transformers.md
- error-formatting.md
- error-handling.md
- express.md
- fastify.md
- infer-types.md
- merging-routers.md
- metadata.md
- middlewares.md
- output-validation.md
- router.md
- version-10.x-sidebars.json
- version-9.x-sidebars.json
- .gitignore
- .npmrc
- docusaurus.config.ts
- docusaurus.preferredTheme.js
- docusaurus.twitterReload.js
- docusaurus.typedoc.js
- global.d.ts
- mdxToJsx.js
- min-light-with-diff.json
- package.json
- README.md
- shikiTwoslash.config.js
- sidebars.ts
- tailwind.config.ts
- tsconfig.json
- types.d.ts
- vercel.json
- versions.json
- .coderabbit.yaml
- .dockerignore
- .gitignore
- .kodiak.toml
- .npmrc
- .nvmrc
- .prettierignore
- .tool-versions
- .ts-prunerc
- codecov.yml
- CONTRIBUTING.md
- eslint.config.js
- lerna.json
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- prettier.config.js
- README.md
- SECURITY.md
- tsconfig.build.json
- tsconfig.json
- turbo.json
- vitest.config.ts
# Installation Guide
1. Get the code
git clone https://github.com/trpc/trpc
Downloads the entire project code from GitHub to your computer.
cd trpc
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
Type this command into your terminal and run it.
pnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
Type this command into your terminal and run it.
deno init --npm next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
Type this command into your terminal and run it.
<img alt="weekly downloads" src="https://img.shields.io/npm/dm/%40trpc/server.svg">
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
