Netlify Edge Functions
Skill Verified ActiveGuide for writing Netlify Edge Functions. Use when building middleware, geolocation-based logic, request/response manipulation, authentication checks, A/B testing, or any low-latency edge compute. Covers Deno runtime, context.next() middleware pattern, geolocation, and when to choose edge vs serverless.
To guide developers in writing efficient and low-latency Netlify Edge Functions for tasks like middleware, request manipulation, and geolocation-based logic.
Features
- Netlify Edge Functions syntax and structure
- Deno runtime and module support
- Middleware pattern with context.next()
- Geolocation and IP address access
- Environment variable management via Netlify.env
Use Cases
- Building low-latency middleware for web applications
- Implementing geolocation-based routing or content personalization
- Manipulating request and response headers/bodies at the edge
- Handling authentication checks before requests reach the origin
Non-Goals
- Writing complex, long-running serverless functions
- Managing Node.js dependencies beyond what Deno supports
- Database-heavy operations best suited for serverless functions
Trust
- info:Issues AttentionOpen issues: 1 (last 90d), Closed issues: 4 (last 90d). The closure rate is good, but the maintainer response time might be improvable with more closed issues relative to open ones.
Installation
First, add the marketplace
/plugin marketplace add netlify/context-and-tools/plugin install context-and-tools@netlify-context-and-toolsQuality Score
VerifiedSimilar Extensions
Netlify Identity
100Use when the task involves authentication, user signups, logins, password recovery, OAuth providers, role-based access control, or protecting routes and functions. Always use `@netlify/identity`. Never use `netlify-identity-widget` or `gotrue-js` — they are deprecated.
Deepinit
100Deep codebase initialization with hierarchical AGENTS.md documentation
Cleanup Cycles
100Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".
Vue Router Best Practices
100Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Sentry React Router Framework Sdk
100Full Sentry SDK setup for React Router Framework mode. Use when asked to "add Sentry to React Router Framework", "install @sentry/react-router", or configure error monitoring, tracing, profiling, session replay, logs, or user feedback for a React Router v7 framework app.
Create Spatial Visualization
100Create interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap) or Observable (D3, deck.gl). Covers data import, coordinate system handling, map styling, and export to HTML or image formats. Use when visualizing a planned or completed tour route on an interactive map, creating elevation profiles for hiking or cycling routes, overlaying waypoints and POIs on a basemap, or building a web-based trip dashboard.