Skip to content
Intent
Libraries
Loading libraries…
Blog
Blog & Release Notes
About
YouTube
The official TanStack channel.
Workshops
Live sessions from the maintainers.
Release Notes
The latest releases and changelog.
Community
Channels
Discord
Real-time community support.
GitHub
Source, issues, discussions, and releases.
People & Work
Maintainers
Meet the people maintaining the stack.
Showcase
Projects selected by the TanStack team.
Community projects
TanChat
NEW
Tools
Tools
Application Starter
Alpha
Generate TanStack app starters.
Stats
NPM and ecosystem usage data.
Merch
Support
Support
Support Overview
Find the right support path.
Partners
Companies supporting TanStack.
OSS Sponsors
Sponsors keeping TanStack open source.
Enterprise Support
Private consulting and expert support.
Contact
Get in touch with the TanStack team.
About
Ethos
How we approach open source.
Tenets
The values that shape TanStack libraries.
Design System
Logos, tokens, and UI components.
Search
Ask AI
Libraries
Blog
Community
TanChat
NEW
Tools
Merch
Support
Search
Ask AI
Sign In
Back
TanStack Intent
/
Registry
/
@trpc/client
Fetching package from npm...
TanStack Intent
/
Registry
/
@trpc/client
@trpc/client
11.23.1-canary.16.f11951ce3 (latest) — 3 skills
11.23.1-canary.14.507382d73 — 3 skills
11.23.1-canary.10.8a0997add — 3 skills
11.23.1-canary.3.ae3beada3 — 3 skills
11.23.0 — 3 skills
11.22.2-canary.42.d3cd94bdd — 3 skills
11.22.2-canary.1.0c622a522 — 3 skills
11.22.2-canary.37.6d6969c7c — 3 skills
11.22.2-canary.19.b9321728b — 0 skills
11.22.2-canary.16.ea96ec538 — 0 skills
11.22.2-canary.15.a81bba207 — 0 skills
11.22.2-canary.14.9880a8bf9 — 0 skills
11.22.2-canary.9.85bcf328a — 3 skills
11.22.2-canary.7.c01346ec8 — 3 skills
11.22.2-canary.6.9959a177b — 3 skills
11.22.1 — 3 skills
11.21.1-canary.62.e237729d3 — 3 skills
11.21.1-canary.20.10e2ef98f — 3 skills
11.19.1-canary.0.sha-8b649ad87 — 3 skills
11.19.0 — 3 skills
11.18.1-canary.30 — 3 skills
11.18.1-canary.9 — 3 skills
11.18.1-canary.19 — 3 skills
11.18.1-canary.35.sha-573d4f33e — 3 skills
11.18.1-canary.34.sha-3a77dc4d6 — 3 skills
11.18.1-canary.18 — 3 skills
11.18.1-canary.17 — 3 skills
11.18.1-canary.13 — 3 skills
11.18.1-canary.6 — 3 skills
11.18.1-canary.5 — 3 skills
11.18.1-canary.2 — 3 skills
11.18.1-canary.1 — 3 skills
11.18.0 — 3 skills
11.17.1-canary.3 — 3 skills
11.17.1-canary.2 — 3 skills
11.17.0 — 3 skills
11.16.1-canary.20 — 3 skills
11.16.1-canary.17 — 3 skills
11.16.1-canary.6 — 3 skills
11.16.1-canary.5 — 3 skills
11.16.1-canary.4 — 3 skills
11.16.1-canary.3 — 3 skills
11.16.1-canary.2 — 3 skills
11.16.1-canary.1 — 3 skills
11.16.0 — 3 skills
11.15.2 — 3 skills
11.15.2-canary.3 — 3 skills
11.15.2-canary.2 — 3 skills
11.15.1 — 3 skills
11.15.1-canary.2 — 3 skills
11.15.0 — 3 skills
11.14.2-canary.5 — 3 skills
11.14.1 — 3 skills
Copy install prompt
The tRPC client library
Skills
(3)
Skills
All Skills
3
client-setup
links
superjson
Skills
3
History
client-setup
Create a vanilla tRPC client with createTRPCClient<AppRouter>() and a terminating link such as httpBatchLink, import AppRouter with `import type`, set dynamic auth headers, and put the transformer on links (not the client constructor). Infer types with inferRouterInputs and inferRouterOutputs, handle TRPCClientError with try/catch or safe(), and abort calls with an AbortSignal.
351 lines
links
Configure the tRPC client link chain: httpLink, httpBatchLink, httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient, httpSubscriptionLink, unstable_localLink, retryLink. Choose the right terminating link, route subscriptions or non-batched calls with splitLink, pass per-operation context, and write custom links. Link options: url, headers, transformer, maxURLLength, maxItems, methodOverride, connectionParams, EventSource ponyfill.
176 lines
superjson
Configure SuperJSON transformer on both server initTRPC.create({ transformer: superjson }) and every client terminating link (httpBatchLink, httpLink, httpBatchStreamLink, wsLink, httpSubscriptionLink), including each splitLink branch, to support Date, Map, Set, BigInt over the wire. Transformer must match on both sides. In v11, transformer goes on individual links, not the client constructor. Also devalue, custom and separate input/output transformers.
223 lines