Skip to content

Find your Edge Middleware templates

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

Filter Templates

Power Parity Pricing

Power Parity Pricing

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

by ▲ Vercel

Adding Response Headers in Edge Middleware

Adding Response Headers in Edge Middleware

Learn to add response 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 Edge Config 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 Middleware

Geolocation in Edge Middleware

Learn how to use visitor's location at the edge.

by ▲ Vercel

Basic Auth Password Protection

Basic Auth Password Protection

Password protect pages in your application using Edge Middleware.

by ▲ Vercel

i18n in Edge Middleware

i18n in Edge Middleware

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

by ▲ Vercel

Experimentation with Statsig

Experimentation with Statsig

Reduce CLS and improve performance from client-loaded experiments at the edge with Statsig

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 Middleware and Edge Functions

Using Crypto in Edge Middleware and Edge Functions

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

Feature Flags with Optimizely

Feature Flags with Optimizely

Learn how to use optimizely to conduct experiments at the edge.

by ▲ Vercel

Maintenance Page

Maintenance Page

This template shows how to quickly trigger a maintenance page using Edge Config

by ▲ Vercel

Adding Cookies

Adding Cookies

Read and write cookies directly at the edge.

by ▲ Vercel

Hostname Rewrites using Edge Middleware

Hostname Rewrites using Edge Middleware

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

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

Modifying Request Headers in Middleware

Modifying Request Headers in Middleware

Learn to add/update/delete request headers in a middleware.

by ▲ Vercel

Filtering Query Parameters

Filtering Query Parameters

Learn how to filter query params in Edge Middleware.

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

Edge Redirects with Upstash

Edge Redirects with Upstash

Redirect from a list of redirects both hardcoded and coming from Upstash (Redis), that get evaluated at the edge.

by ▲ Vercel

Go Edge-First

Supercharge your applications with Vercel's Edge Middleware