Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

Supabase Edge Functions

Supabase Edge Functions' Free plan includes 500,000 invocations a month with no card and no overage, but projects pause after 1 idle week, and the 20 MB bundle limit is cut to 5 MB when bundled server-side.

Supabase Edge Functions run TypeScript functions on a Deno-based runtime close to your users, next to your Supabase project. They are for developers who need webhooks, API endpoints, or small integrations.

By SupabaseComputeChecked ✓ 23 Nov 2026

Changed in Nov 2026: The official limits page now describes the two-second CPU budget per worker, replacing per-request wording in the November 16 source snapshot.

Is it a fit?

Good fit

Use it for small webhooks and API endpoints close to a Supabase project, in TypeScript.

  • API endpoints
  • event-driven logic
  • Supabase integrations

Not a fit

Avoid it for long-running or CPU-heavy jobs, for non-JavaScript runtimes, or for projects that must never pause.

  • heavy compute workloads
  • non-JS/TS runtimes
  • projects that must never pause

You write functions as TypeScript files that run on Supabase's Deno-based Edge Runtime. You create them with the Supabase CLI, test them locally, and deploy them from the CLI or the dashboard. They suit developers who already use Supabase and want webhooks or API endpoints near their database.

What the free plan gives you

The Free organization shares 500,000 Edge Function invocations per month across its projects. A function can use up to 256MB of memory. The wall-clock limit is 150s on Free and 400s on paid plans. The current limits page states up to 2s of CPU time per worker, excluding async input and output. A worker can serve multiple requests or background tasks during its wall-clock lifetime; the November 16 source snapshot instead described this as per request. The request idle timeout is 150s.

A function bundle can be up to 20MB when built locally with the CLI, or 5MB when bundled server-side. The Free plan allows up to 100 functions per project. Free projects pause after 1 week of inactivity, and you can have 2 active projects.

When you hit a limit

Free usage is not charged. The billing FAQ says continued quota excess can restrict all projects after a grace period, including 402 API responses; restrictions lift after the next billing-cycle reset. It does not give a separate invocation-specific response. Paid plans include 2 Million invocations and then charge $2 per 1 Million.

For runtime limits, the docs say that a function that sends no response before the idle timeout returns a 504 Gateway Timeout. Paused projects stop until you restore them. Plan for a short wait on a first request, because the docs warn that cold starts are possible.

Gotchas

  • Free projects pause after 1 week of inactivity, so a webhook receiver on a quiet project can stop working.
  • The current documented CPU limit is 2s per worker. Heavy work, and libraries that need multithreading such as sharp, are not supported. Recursive calls are limited to 30 requests per trace within 60 seconds. Log messages are limited to 10,000 characters, with 100 events per 10 seconds. HTML responses need a custom domain; otherwise GET text/html responses are rewritten to text/plain.
  • Outgoing connections on ports 25 and 587 are blocked, so you cannot send mail over SMTP directly. Use an email API instead.

Alternatives in this atlas

Questions people ask

Are Supabase Edge Functions free?

Yes, within limits. The Free plan includes 500,000 invocations per month.

Do Supabase Edge Functions sleep or pause?

Free projects pause after 1 week of inactivity. Cold starts can also happen, so expect a slower first request.

What is the Supabase Edge Function time limit?

The wall-clock limit is 150s on the Free plan and 400s on paid plans. The current limits page defines CPU time as 2s per worker, which can handle several requests.

How to get started

  1. Sign up for Supabase and create a project in the dashboard.
  2. Install the Supabase CLI and Docker, then run supabase init in a project folder.
  3. Run supabase functions new hello-world to create a function.
  4. Test it locally with supabase start and supabase functions serve hello-world.
  5. Run supabase login, supabase link with your project ref, then supabase functions deploy hello-world.

Other free compute options

Same category, safest first.

Cloudflare · Compute
100,000 requests/day · 10ms CPU time/request · Up to 100 Workers per account
Billing risk: None
No card
1,000,000 Function Invocations/month included · 4 CPU-hrs Fluid Active CPU/month included · 360 GB-hrs Fluid Provisioned Memory/month included
Billing risk: None
No card
Cloudflare · Compute
100,000 requests per day, shared with Workers requests · 3,000 steps per day · 1 GB-month of storage
Billing risk: None
No card
Trigger.dev · Compute
$5 compute credits per month · 20 concurrent runs · Unlimited tasks
Billing risk: None
No card