Edge Functionsglobally in seconds
Author, deploy, and monitor serverless functions distributed globally at the edge, close to your users.
Fully managed
Edge Functions scale automatically, reducing your devops burden
Global deployments
Deploy worldwide for maximum resiliency and low latency
Secure and Scalable
Simply write your code in TypeScript and deploy
Node.js Support
Migrate existing workloads with NPM and Node.js support
Supabase gave us the flexibility and scalability needed at every growth stage. It's rare to find a tool that works just as well for startups as it does for large-scale operations.
What you can build
with Edge Functions
View all examplesSending Emails
Send emails in Edge Functions with Resend.
Generating OpenAI GPT3 completions
Using OpenAI in Edge Functions.
Stripe Webhooks
Handling signed Stripe Webhooks with Edge Functions.
Connecting directly to Postgres
Connecting to Postgres from Edge Functions.
Huggingface Image Captioning
Use the Hugging Face Inference API to make calls to 100,000+ Machine Learning models from Supabase Edge Functions.
Upload files to Storage
Process multipart/form-data.
Delightful DX from
local to production
Edge Functions are developed using Deno, an open source JavaScript runtime that ensures maximum power and flexibility. Migrate in and out at any time with no vendor lock-in.
First-class local dev experience
Write code with hot code reloading, a fast Language server for autocompletion, type checking and linting
Dev and Prod parity
The open source Edge runtime runs locally in dev and powers functions in production
Continuous Integration
Use the Supabase CLI with GitHub actions to preview and deploy your functions along with the rest of your application
Use any NPM module
Tap into the Deno and NPM ecosystem
Edge Functions run server-side logic geographically close to users, offering low latency and great performance.
Global presence
Edge functions run globally or can be pinned to your database's proximity
Automatic scaling
Seamlessly scale with usage without any manual tuning
Secure
Scale with confidence with SSL, Firewall and DDOS protection built in
Debug and monitor with
built-in observability
Monitor, debug, and optimize your Edge Functions with realtime logs, queryable log explorer, and health dashboards — all built into the Supabase Dashboard.
Realtime logs
Stream logs to the dashboard in realtime with rich metadata to help debugging
Query Logs via Log explorer
Get deeper insights into function behavior by writing SQL queries on function logs
Metrics
Dashboards show the health of your functions at all times
Integrates with the Supabase ecosystem
Access your database, auth, storage, and webhooks directly from Edge Functions with zero configuration.
import { createClient } from 'jsr:@supabase/supabase-js@2'
Deno.serve(async () => {
// These are automatically available — no setup needed
const supabase = createClient(
Deno.env.get('SUPABASE_URL')!,
Deno.env.get('SUPABASE_ANON_KEY')!
)
const { data } = await supabase.from('todos').select('*')
return new Response(JSON.stringify(data))
})import { createClient } from 'jsr:@supabase/supabase-js@2'
Deno.serve(async () => {
// These are automatically available — no setup needed
const supabase = createClient(
Deno.env.get('SUPABASE_URL')!,
Deno.env.get('SUPABASE_ANON_KEY')!
)
const { data } = await supabase.from('todos').select('*')
return new Response(JSON.stringify(data))
})Zero configuration
Pre-populated environment variables required to access your Supabase project
Deploy your first functionin under a minute
Two commands. Global deployment. No infrastructure to manage.