skillfed

Edge Computing

Edge Computing equips you with patterns and examples for building on Cloudflare Workers, Deno Deploy, Vercel Edge, and Fastly Compute@Edge. Route requests by geography, cache at the edge, run A/B tests, and detect bots—all within strict CPU and memory limits that demand efficient, streaming-first design.

Edge Computing helps you deploy low-latency APIs and services across global edge networks using Cloudflare Workers, Deno Deploy, or Vercel Edge Functions.

AI-generated summary based on this skill's SKILL.md

99 9 MIT updated by TheBeardedBearSAS

Install

TheBeardedBearSAS/claude-craft/edge-computing · repository language: Shell

CLI (skillfed)coming soon
git clone https://github.com/TheBeardedBearSAS/claude-craft
cp -r claude-craft/.claude/skills/edge-computing ~/.claude/skills/edge-computing

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is Edge Computing and which platforms does it cover?

Edge Computing provides patterns and examples for building on Cloudflare Workers, Deno Deploy, Vercel Edge, and Fastly Compute@Edge. The skill teaches you how to route requests by geography, cache at the edge, run A/B tests, and detect bots—all within strict CPU and memory limits that demand efficient, streaming-first design.

How do I set up Cloudflare Workers for edge computing?

Edge Computing covers Cloudflare Workers setup as a core pattern. You'll learn to deploy functions globally, leverage KV storage for distributed state, and integrate Durable Objects for stateful workloads. The skill emphasizes working within resource constraints while building low-latency APIs.

Can Edge Computing help with deno deploy edge functions?

Yes. Edge Computing includes Deno Deploy as a primary platform, with patterns for deploying edge functions globally. You'll discover how to build geo-routed APIs, implement edge caching strategies, and optimize for the strict latency and memory requirements of edge environments.

What edge caching and KV store patterns does Edge Computing teach?

Edge Computing covers edge caching KV store patterns essential for global APIs. You'll learn cache invalidation strategies, KV namespace design, and how to combine caching with geo-routing to minimize latency. These patterns work across Cloudflare Workers, Deno Deploy, and other edge platforms.

How can I add bot detection and A/B testing at the edge?

Edge Computing teaches bot detection and A/B testing as edge-native features. You'll implement request filtering, user segmentation, and variant routing—all executed at the edge before requests reach your origin. These patterns reduce origin load and improve response times globally.

What are edge computing best practices for global request routing?

Edge Computing covers global request routing best practices across platforms like Cloudflare Workers, Deno Deploy, Vercel Edge, and Fastly Compute@Edge. You'll learn geo-routing logic, failover patterns, and efficient request handling within edge compute constraints to build low-latency distributed APIs.

SKILL.md

rendered from the published skill — quoted content, verbatim

Edge Computing — Cloudflare Workers, Deno Deploy

Compute global faible latence, proche utilisateur.

Platforms

Cloudflare Workers — V8, 300+ POPs, KV/Durable
Deno Deploy — Deno, 30+ POPs, TypeScript
Vercel Edge — V8, 20+ POPs, Next.js
Fastly Compute@Edge — WASM, 70+ POPs

Geo-Routing

export default {
  async fetch(req) {
    const api = req.cf.country === 'US' ? 'us-api' : 'eu-api';
    return fetch(`https://${api}.example.com${req.url}`);
  }
};

Edge Caching (KV)

const key = new URL(req.url).pathname;
let cached = await env.KV.get(key);
if (cached) return new Response(cached, { headers: { 'X-Cache': 'HIT' } });
const resp = await fetch('https://origin.com' + key);
const body = await resp.text();
await env.KV.put(key, body, { expirationTtl: 3600 });
return new Response(body, { headers: { 'X-Cache': 'MISS' } });

A/B

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
.claude/skills/edge-computing/SKILL.md

Related skills

Tags

serverless-edge geo-distribution request-routing edge-caching distributed-compute low-latency-api edge-middleware global-cdn