Skip to content

Find your Edge Functions templates

Jumpstart your app development process with our pre-built Edge Functions solutions.

Filter Templates

Power Parity Pricing

Power Parity Pricing

Implement power parity pricing using information from the request geolocation object in Edge Functions.

by ▲ Vercel

Adding Headers in Edge Functions

Adding Headers in Edge Functions

Learn to add headers at the edge.

by ▲ Vercel

A/B Testing with Split

A/B Testing with Split

Learn to use Split, a feature delivery platform that powers feature flag management, software experimentation and continuous delivery.

by ▲ Vercel

Feature Flag Apple Store

Feature Flag Apple Store

This template uses Upstash (Edge Redis Database) as fast storage to control whether an store is open or closed.

by ▲ Vercel

IP Blocking with Upstash

IP Blocking with Upstash

Template featuring IP Blocking at the edge using Upstash.

by ▲ Vercel

Geolocation in Edge functions

Geolocation in Edge functions

Learn how to use visitor's location in edge functions.

by ▲ Vercel

Basic Auth Password Protection

Basic Auth Password Protection

Password protect pages in your application using Edge Functions.

by ▲ Vercel

i18n in Edge functions

i18n in Edge functions

This template shows how to redirect users based on i18n configuration.

by ▲ Vercel

A/B Testing with Statsig

A/B Testing with Statsig

By A/B testing at the edge with Statsig, you'll reduce CLS and improve performance from client-loaded experiments while analyzing impact.

by ▲ Vercel

User-Agent Based Rendering

User-Agent Based Rendering

Learn how to render a different page based on the User-Agent header.

by ▲ Vercel

Using Crypto in Edge Functions and Middleware

Using Crypto in Edge Functions and Middleware

Learn to utilize the crypto Web APIs at the edge.

by ▲ Vercel

Bot Detection with Botd

Bot Detection with Botd

Botd is a browser library for bot detection. In this template we'll be using it alongside botd-integrations for bot detection at the edge.

by ▲ Vercel

Preact on the Edge

Preact on the Edge

Server-rendered Preact using Vercel Edge Functions.

by PreactJS

Feature Flags with Optimizely

Feature Flags with Optimizely

Learn how to use optimizely to conduct experiments in edge-functions.

by ▲ Vercel

API Rate Limiting by IP and API Keys with Upstash

API Rate Limiting by IP and API Keys with Upstash

Template featuring API Rate limiting by IP and API Keys at the edge using Upstash.

by ▲ Vercel

Adding Cookies

Adding Cookies

Read and write cookies directly at the edge.

by ▲ Vercel

Builder.io Personalization Starter

Builder.io Personalization Starter

Learn how to use Builder.io to personalize your Next.js pages.

by ▲ Vercel

CORS in Edge Functions

CORS in Edge Functions

Handle CORS at the edge.

by ▲ Vercel

Hostname Rewrites using Edge Functions

Hostname Rewrites using Edge Functions

Learn how to programmatically create unique content pages for your users with a multi-tenant infrastructure using Edge Middleware.

by ▲ Vercel

Power Parity Pricing Strategies

Power Parity Pricing Strategies

Shows the differences between doing PPP at the edge using information from the geolocation object, Node.js SSR, and client-side rendering.

by ▲ Vercel

A/B Testing with ConfigCat

A/B Testing with ConfigCat

ConfigCat is a service for feature flag and configuration management. In this template you'll be able to use feature flags at the edge.

by ▲ Vercel

Nuxt on the Edge

Nuxt on the Edge

Vue based SSR on the edge, powered by Nuxt 3, Nitro, and Vercel Edge Functions.

by pi0

IP Blocking with DataDome

IP Blocking with DataDome

DataDome can provide real-time bot protection, ip blocking, custom rules protection and other security protections to any website.

by ▲ Vercel

JWT Authentication

JWT Authentication

Learn how to do JWT authentication at the edge.

by ▲ Vercel

Bot Protection with DataDome

Bot Protection with DataDome

DataDome can provide real-time bot protection and other security protections to any website. In this template we'll be using it at the edge.

by ▲ Vercel

Rewriting at the Edge using Upstash

Rewriting at the Edge using Upstash

Learn how to avoid calling several services by pre-checking stock at the edge using a redis cache.

by ▲ Vercel

A/B Testing with Google Optimize

A/B Testing with Google Optimize

Learn to use Google Optimize as an A/B testing solution for experimentation at the edge.

by ▲ Vercel

API Rate Limiting with Upstash

API Rate Limiting with Upstash

Template featuring API Rate limiting at the edge with Redis using Upstash.

by ▲ Vercel

Filtering Query Parameters

Filtering Query Parameters

Learn how to filter query params in Edge Functions.

by ▲ Vercel

A/B Testing Simple

A/B Testing Simple

By A/B testing at the edge, you'll reduce CLS from client-loaded experiments and improve your site's performance with smaller JS bundles.

by ▲ Vercel

Go Edge-First

Supercharge your applications with Vercel's Edge Functions