Run code at the edge

Deploy serverless functions globally with zero cold starts. Execute closer to your users, intercept requests, transform responses, and integrate with any backend in under 10ms.

V8 Isolates 300+ PoPs Deno Compatible <10ms Avg Latency
Deploy a Function → Read Documentation
handler.ts Deno Runtime
handler.ts .git/edge.json package.json
export default async (request: Request) => { const url = new URL(request.url); // Route matching with zero-config rewrites if (url.pathname.startsWith("/api/v1")) { const data = await fetchData(url.pathname); return new Response(JSON.stringify(data), { headers: { "content-type": "application/json" } }); } // Fallback to origin with edge caching return await fetch(request, { cf: { cacheTtl: 3600 } }); }

Built for performance & scale

Everything you need to run serverless workloads at the network edge without the operational overhead.

V8 Isolates Runtime

Functions run in isolated V8 instances with <1ms startup time. No container spin-ups, no cold starts, just raw JavaScript/V8 speed.

zero-cold-start
🌐

Global Edge Network

Automatically distributed across 300+ locations. Anycast routing ensures your function executes at the nearest node to your user.

global-edge
🔐

Secrets & Environment

Inject secrets, env vars, and KV stores directly into your functions. Automatic rotation and encryption at rest included.

secure-by-default
📦

Framework Agnostic

Works with Next.js, Remix, Astro, SvelteKit, or standalone APIs. Auto-detects your stack and optimizes the build pipeline.

universal
🔍

Real-time Observability

Structured logs, distributed tracing, and custom metrics. Stream directly to Datadog, New Relic, or our built-in dashboard.

observability
🔄

Atomic Rollbacks

Deploy with confidence. Instant rollbacks, canary releases, and traffic splitting built into the deployment pipeline.

safe-deploy

How it works

From request to response in under 15ms

👤

User Request

HTTP/2 or gRPC call enters

🌍

Anycast DNS

Routes to nearest PoP

⚙️

Edge Runtime

Executes in V8 isolate

📤

Response

Returned to user + cached

Common use cases

See how teams leverage Edge Functions to move faster

/api/gateway

API Gateway & Routing

Intercept requests, validate JWTs, route to microservices, and aggregate responses before they hit your origin.

/middleware

Auth & Middleware

Run authentication, A/B testing, geo-blocking, or feature flags at the edge without adding latency to your app.

/images

On-the-fly Transformations

Resize, compress, or watermark images and videos on request. Serve optimized assets directly from the edge.

/webhooks

Real-time Webhooks

Process and validate incoming webhooks at scale. Retry logic, signature verification, and dead-letter queues built-in.

Get started in 60 seconds

Initialize, write, and deploy your first edge function

Terminal
$ git edge init my-edge-app --template=fetch
✓ Created project scaffold
✓ Installed Deno runtime & dependencies

$ code my-edge-app
# Edit handler.ts and add your logic...

$ git edge deploy --prod
✓ Building V8 isolate...
✓ Uploading to 302 edge locations...
🚀 Deployed successfully → https://my-edge-app.git.dev
Start Deploying Free →

No credit card required. 1M requests/mo included.