Libraries
Framework
Start
Router
Data & State
Query
DB
Store
AI
UI
Table
Charts
Form
Markdown
Highlight
UX
Virtual
Pacer
Hotkeys
Tooling
Devtools
Config
CLI
Intent
Browse all 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.19.1-canary.0.sha-8b649ad87 (latest) — 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
core
links
core
superjson
composition
Skills
3
History
client-setup
core
Create a vanilla tRPC client with createTRPCClient<AppRouter>(), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.
318 lines
links
core
Configure the tRPC client link chain: httpLink, httpBatchLink, httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient, httpSubscriptionLink, unstable_localLink, retryLink. Choose the right terminating link. Route subscriptions via splitLink. Build custom links for SOA routing. Link options: url, headers, transformer, maxURLLength, maxItems, connectionParams, EventSource ponyfill.
302 lines
superjson
composition
Configure SuperJSON transformer on both server initTRPC.create({ transformer: superjson }) and every client terminating link (httpBatchLink, httpLink, wsLink, httpSubscriptionLink) 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.
274 lines