Loading…
Edge Functions are now available in Supabase
SupabaseInian Parameshwaran
Summary
Supabase launched Edge Functions to execute TypeScript code close to end-users across more than 30 data centers. Built on the secure-by-default Deno runtime and hosted via Deno Deploy, the feature offers fast start-ups, scale-to-zero pricing, and native support for npm modules and Node built-in APIs. Incoming requests first reach an API gateway called Relay, which authenticates JSON Web Tokens, handles rate-limiting, and forwards requests using a Deployment ID to Deno Deploy. Observability is handled through Logflare to feed structured logs and metrics directly into the Supabase Dashboard. To mitigate abuse risks experienced during earlier product rollouts, invocations are currently limited to POST requests rather than general website hosting.
Context
Developers needed a way to run serverless business logic close to end-users with fast startup times and low operational overhead, distinct from database-colocated functions.
Approach / What changed
Supabase built Edge Functions using the Deno runtime and Deno Deploy, routing requests through an authenticating Relay layer and streaming metrics via Logflare.
Takeaways
- Deno Deploy provides local-to-production parity because open-source Deno CLI tools match the behavior of the proprietary hosted platform.
- An internal Relay serves as an API gateway to authenticate JWTs, rate-limit traffic, and construct Deployment IDs for Deno Deploy.
- To avoid the security risks and Safe Browsing denylisting associated with general web hosting, Edge Functions are restricted to POST invocations.
Related reading
Supabase ·
Hackathon: Bring the Func(🕺)
Following the conclusion of its fourth Launch Week, Supabase announced the ten-day community hackathon titled Bring the Func, running through April 10th. The competition highlights newly released platform capabilities, establishing primary prize tracks dedicated to Supabase Edge Functions and GraphQL projects powered by pg_graphql. Participants can compete individually or in teams of up to five people, provided all design and code assets are built during the event and published as open-source repositories. Submissions require linking a repository detailing architecture, hosted demos, and Supabase feature usage across storage, authentication, realtime, or database access layers. Alongside category prizes and community swag, Supabase partnered with the Future Forest Company to plant a tree and issue a certificate for every completed project entry.
Thor SchaeffSupabase ·
Supabrew - Never Code Thirsty
Supabase presented SupaBrew, a mock non-alcoholic beverage engineered specifically to address developer thirst during extended coding sessions and large pull request reviews. Developed following a survey of 80,000 registered developers, the recipe relies entirely on three ingredients consisting of barley, hops, and water in strict adherence to German beer purity laws. The mock packaging design features bottles manufactured from recycled cathode-ray tube monitors and labels repurposed from leftover Ubuntu conference stickers. The fictitious rollout introduces tiered pricing models, including free access for indie developers, Pay-as-you-Drink consumption billing, and dedicated enterprise tiers. Supabase concluded the announcement by confirming that the product release is an April Fools joke.