Examples for Edge Functions

Common function examples and templates.

Template Thumbnail

Python Handler - Cloud Functions on EdgeOne Pages

Use Python on EdgeOne Pages with Handler mode and BaseHTTPRequestHandler — no framework dependency required.

From EdgeOne Pages

Template Thumbnail

Python FastAPI - Cloud Functions on EdgeOne Pages

Deploy FastAPI applications with auto-generated OpenAPI docs, Pydantic validation, and async support.

From EdgeOne Pages

Template Thumbnail

Go Handler - Cloud Functions on EdgeOne Pages

A Go starter with Handler mode and file-based routing — static, dynamic, nested, and catch-all patterns.

From EdgeOne Pages

Template Thumbnail

Go Gin - Cloud Functions on EdgeOne Pages

Use Gin on EdgeOne Pages with middleware, JSON binding, route groups, and RESTful API design.

From EdgeOne Pages

Template Thumbnail

TanStack Start Hybrid Rendering Template

TanStack Start hybrid rendering with SSR, CSR, and SSG strategies.

From EdgeOne Pages

Template Thumbnail

Next.js Hybrid Rendering Template

Next.js 15 hybrid rendering with SSR, ISR, SSG, Streaming, Cloud Functions, and Edge Functions.

From EdgeOne Pages

Template Thumbnail

React Router Hybrid Rendering Template

React Router v7 hybrid rendering with SSR, CSR, SSG, Streaming, Cloud Functions, and Edge Functions.

From EdgeOne Pages

Template Thumbnail

Cloud Functions on EdgeOne Pages - Koa Demo Website

A Koa starter with a Next.js + Tailwind CSS demo frontend on EdgeOne Pages.

From EdgeOne Pages

Template Thumbnail

Chatgpt Apps

MCP server compatible with OpenAI Apps SDK, built with edge functions.

From EdgeOne Pages

Template Thumbnail

Cloud Functions on EdgeOne Pages - Express

Deploy Express applications with a Next.js + Tailwind CSS demo frontend.

From EdgeOne Pages

Template Thumbnail

EdgeOne Pages MySQL Template

Next.js full-stack app with MySQL database connection — deploy without managing servers.

From EdgeOne Pages

Template Thumbnail

MCP with Pages Functions :Geo Location Demo

MCP geolocation service built with Pages Functions for retrieving visitor location data.

From EdgeOne Pages

Template Thumbnail

MCP On Edge

MCP Client and Server running on edge functions for AI tool integration.

From EdgeOne Pages

Template Thumbnail

EdgeOne Pages Hono Application

Hono web application on edge functions — ultrafast, lightweight, and edge-native.

From EdgeOne Pages

Template Thumbnail

Pages Functions for AI OCR

AI-powered OCR using Pages Functions for text extraction from images at the edge.

From EdgeOne Pages

Template Thumbnail

Pages Functions for geolocation

Geolocation detection using Pages Functions to retrieve visitor location data at the edge.

From EdgeOne Pages

Template Thumbnail

Pages functions for KV

Pages KV storage operations using edge functions for key-value data management.

From EdgeOne Pages

Template Thumbnail

Pages functions for Supabase

Supabase database integration using Pages Functions for serverless data operations.

From EdgeOne Pages

Template Thumbnail

self-hosted-pages-mcp

Self-hosted MCP server enabling AI assistants to deploy and manage static websites directly.

From EdgeOne Pages

Template Thumbnail

EdgeOne Pages AI Voice Chat

End-to-end voice AI pipeline: browser audio capture, WebSocket streaming, ASR, and TTS — powered by Cloud Functions.

From EdgeOne Pages

Template Thumbnail

Python Flask - Cloud Functions on EdgeOne Pages

Use Flask on EdgeOne Pages with decorator routing and Blueprint support.

From EdgeOne Pages

Template Thumbnail

Python Django - Cloud Functions on EdgeOne Pages

Full-featured Django with built-in ORM, authentication, admin panel, and security — ready to deploy.

From EdgeOne Pages

Template Thumbnail

Python Sanic - Cloud Functions on EdgeOne Pages

An async Sanic starter with native async support, streaming, and WebSocket capabilities.

From EdgeOne Pages

Template Thumbnail

Go Echo - Cloud Functions on EdgeOne Pages

Deploy Echo-based Go applications with custom middleware, route groups, and RESTful API.

From EdgeOne Pages

Template Thumbnail

Go Chi - Cloud Functions on EdgeOne Pages

Lightweight Go HTTP router powered by Chi — composable middleware stack, route groups, and zero dependencies.

From EdgeOne Pages

Template Thumbnail

Go Fiber - Cloud Functions on EdgeOne Pages

Use Fiber on EdgeOne Pages — an Express-inspired Go framework built on fasthttp with middleware and JSON parsing.

From EdgeOne Pages

Template Thumbnail

Go Gorilla Mux - Cloud Functions on EdgeOne Pages

A Gorilla Mux starter with URL pattern matching, subrouters, and middleware on EdgeOne Pages.

From EdgeOne Pages

Template Thumbnail

Go HttpRouter - Cloud Functions on EdgeOne Pages

High-performance Go router powered by HttpRouter — zero-allocation routing with named parameters and wildcard support.

From EdgeOne Pages