netlify avatar

Netlify Edge Functions

This walks Claude through building Netlify Edge Functions, the Deno-based middleware that runs on their global edge network. You'll want this when you need low-latency responses for auth checks, geo-based redirects, A/B testing, or request/response manipulation. It covers the context.next() middleware pattern, geolocation APIs, environment variables via Netlify.env, and the practical tradeoffs between edge and serverless (edge gets you 50ms CPU time and proximity to users, serverless gets you 15 minutes and heavier compute). The guidance on when to choose each is actually useful, not just spec regurgitation.

skills.sh installs
3.3K
GitHub stars
51
last updated
Aug 21, 2026

Install

$ npx -y skills add netlify/context-and-tools --skill netlify-edge-functions --agent claude-code

Installs into .claude/skills of the current project.

Files

Netlify Edge Functions

Use this form

// netlify/edge-functions/hello.ts
import type { Config, Context } from "@netlify/edge-functions";

export default async (request: Request, context: Context) => {
  return new Response(`Hello from ${context.geo.country?.name ?? "somewhere"}`);
};

export const config: Config = { path: "/hello" };

Sponsors

Details

Repository
github.com/netlify/context-and-tools
Categories
Backend & APIs, Testing & QA, Security, Documentation, Cloud & Infrastructure
First seen
Jun 3, 2026

More from netlify/context-and-tools

All 14
1aj-geddes avatarnodejs-express-serveraj-geddes/useful-ai-promptsBuild production-ready Express.js servers with middleware, authentication, routing, and database integration. Use when creating REST APIs, managing requests/res3.3Kskills.sh installs
2netlify avatarnetlify-ai-gatewaynetlify/context-and-toolsReference for Netlify AI Gateway — the managed proxy that routes calls to OpenAI, Anthropic, and Google Gemini SDKs without provider API keys. Use this skill an3.3Kskills.sh installs
3netlify avatarnetlify-databasenetlify/context-and-toolsGuide for using Netlify Database — the GA managed Postgres product built into Netlify. Use when a project needs any kind of dynamic, structured, or relational d3.1Kskills.sh installs
4apollographql avatarapollo-serverapollographql/skillsGuide for building GraphQL servers with Apollo Server 5.x. Use this skill when: (1) setting up a new Apollo Server project, (2) writing resolvers or defining Gr3.1Kskills.sh installs
5davila7 avatarsenior-backenddavila7/claude-code-templatesComprehensive backend development skill for building scalable backend systems using NodeJS, Express, Go, Python, Postgres, GraphQL, REST APIs. Includes API scaf2.7Kskills.sh installs
6mrgoonie avatarbackend-developmentmrgoonie/claudekit-skillsBuild robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB, Redis),2.3Kskills.sh installs