adapter-fetch
Skill by trpc
Explains how to deploy tRPC on WinterCG-compliant edge runtimes using fetchRequestHandler() from @trpc/server/adapters/fetch. It is aimed at developers building tRPC APIs on edge platforms.
Install adapter-fetch
Built from the published package, never by AI.
git clone --depth 1 https://github.com/trpc/trpc /tmp/trpc && mkdir -p ~/.claude/skills && cp -r /tmp/trpc/packages/server/skills/adapter-fetch ~/.claude/skills/adapter-fetchRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/trpc/trpc /tmp/trpc && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/trpc/packages/server/skills/adapter-fetch ~/.gemini/antigravity-cli/skills/adapter-fetchAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
adapter-fetch is an agent skill from the tRPC project for deploying tRPC on WinterCG-compliant edge runtimes. It documents fetchRequestHandler() from @trpc/server/adapters/fetch. The skill includes code for Cloudflare Workers, Deno Deploy, Astro SSR, and Remix, and says it also supports Vercel Edge Runtime and SolidStart.
Each example passes an endpoint, the request, a router, and a createContext function to the handler. The context function receives req and resHeaders through FetchCreateContextFnOptions. The skill also shows how to limit batch size with maxBatchSize. It is aimed at developers who build tRPC APIs on edge platforms. It lists server-setup as a required skill and warns that the endpoint option must match the URL path where the handler is mounted.
Written from the project's SKILL.md and checked against it.
What it can do
- Edge runtime deploymentShows how to run tRPC with fetchRequestHandler() on WinterCG-compliant edge runtimes.
- Cloudflare Workers setupProvides a Worker example that exports a fetch handler for tRPC.
- Deno Deploy setupProvides an example that serves tRPC through Deno.serve.
- Astro SSR routeShows a tRPC catch-all API route in an Astro page file.
- Remix routesShows loader and action functions that forward requests to tRPC.
- Request contextExplains that FetchCreateContextFnOptions provides req and resHeaders for context creation.
- Batch size limitShows how to set maxBatchSize and matching maxItems on the client link.
- Endpoint path checkExplains that the endpoint option must match the URL path prefix where the handler is mounted.
What you need
- A WinterCG-compliant edge runtime or a supported framework such as Astro or Remix
- The @trpc/server package
- The server-setup skill
Try asking
- Show me how to deploy my tRPC router on Cloudflare Workers.
- Set up fetchRequestHandler in an Astro SSR route for tRPC.
- Add a maxBatchSize limit to my tRPC fetch handler and match the client.
Good to know
- The endpoint option must match the URL path prefix where the handler is mounted.
- Requests batching more than maxBatchSize operations are rejected with a 400 Bad Request error.
- Covers the fetch adapter only, not the Node.js standalone or Express adapters.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/server/skills/adapter-fetch/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to adapter-fetch
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
adapter-fetch: common questions
Which runtimes does the adapter-fetch skill cover?
The source names Cloudflare Workers, Deno Deploy, Vercel Edge Runtime, Astro, Remix, and SolidStart. It describes the adapter as for WinterCG-compliant edge runtimes.
What happens if the endpoint option does not match the mount path?
The source says all procedures return 404 because the path parsing extracts the wrong procedure name. The endpoint must match the actual URL path prefix.
What happens when a batch request is too large?
Requests batching more than maxBatchSize operations are rejected with a 400 Bad Request error. The source suggests setting maxItems on the client httpBatchLink to the same value.
How do I install adapter-fetch?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is adapter-fetch free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is adapter-fetch safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to adapter-fetch?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
