Skip to content
Back to skills

Orpc Dedupe Requests

ASecurity

Prevents duplicate requests by deduplicating similar ones to reduce server load.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
designgit

Works with

  • cli

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-dedupe-requests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Dedupe Requests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Dedupe Requests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-dedupe-requests/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-dedupe-requests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oRPC Dedupe Requests Plugin
description: Prevents duplicate requests by deduplicating similar ones to reduce server load.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Dedupe Requests Plugin

Prevents redundant requests by deduplicating similar ones.

## Usage

```ts
import { DedupeRequestsPlugin } from '@orpc/client/plugins'

const link = new RPCLink({
  plugins: [
    new DedupeRequestsPlugin({
      filter: ({ request }) => request.method === 'GET',
      groups: [
        { condition: () => true, context: {} },
      ],
    }),
  ],
})
```

> By default, only `GET` requests are deduplicated.

## Groups

A request must match at least one group. Requests in the same group are deduplicated together.

Example: dedupe based on cache control:

```ts
interface ClientContext { cache?: RequestCache }

const link = new RPCLink<ClientContext>({
  url: 'http://localhost:3000/rpc',
  method: ({ context }) => context?.cache ? 'GET' : 'POST',
  plugins: [
    new DedupeRequestsPlugin({
      filter: ({ request }) => request.method === 'GET',
      groups: [
        {
          condition: ({ context }) => context?.cache === 'force-cache',
          context: { cache: 'force-cache' },
        },
        { condition: () => true, context: {} },
      ],
    }),
  ],
  fetch: (request, init, { context }) => globalThis.fetch(request, {
    ...init,
    cache: context?.cache,
  }),
})
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.