Dynamically switch between multiple oRPC's links.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add ali-master/skills --skill orpc-dynamic-link --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Orpc Dynamic Link?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-dynamic-link)More formats (shields.io, HTML) on the badges page.
---
name: oRPC DynamicLink
description: Dynamically switch between multiple oRPC's links.
license: MIT
metadata:
author: Ali Torki
homepage: https://github.com/ali-master
version: "1.0.0"
---
# DynamicLink
`DynamicLink` lets you dynamically choose between different oRPC links based on your client context.
## Example
```ts
import { createORPCClient, DynamicLink } from '@orpc/client'
interface ClientContext {
cache?: boolean
}
const cacheLink = new RPCLink({
url: 'https://cache.example.com/rpc',
})
const noCacheLink = new RPCLink({
url: 'https://example.com/rpc',
})
const link = new DynamicLink<ClientContext>((options, path, input) => {
if (options.context?.cache) {
return cacheLink
}
return noCacheLink
})
const client: RouterClient<typeof router, ClientContext> = createORPCClient(link)
```
> Any oRPC link is supported, not limited to `RPCLink`.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.