---
title: "Supabase Edge Runtime: Self-hosted Deno Functions"
description: "Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes."
url: "https://swe.quest/articles/supabase-edge-runtime-self-hosted-deno-functions-55b12d1d5db96506"
canonical: "https://supabase.com/blog/edge-runtime-self-hosted-deno-functions"
source: "Supabase"
published: "2023-04-11"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["serverless","runtimes","javascript","rust","open-source"]
---

# Supabase Edge Runtime: Self-hosted Deno Functions

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-04-11, 7 min read, Announcement. Original: [https://supabase.com/blog/edge-runtime-self-hosted-deno-functions](https://supabase.com/blog/edge-runtime-self-hosted-deno-functions)

## Summary

Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno\_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes. A hyper HTTP server forwards requests to a Main Worker V8 isolate, which can create sandboxed User Worker isolates with restricted APIs and configurable memory (default 150 MB) and wall-clock (default 60s) limits. It also powers \`supabase functions serve\` for serving all functions locally with hot reload and Deno Deploy API parity, and a Fly.io walkthrough shows how to deploy it. Planned uses include replacing Kong as an API gateway, scheduled functions, and custom platform globals.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Deno basics
- V8 isolates ([easy posts on Runtimes & VMs](https://swe.quest/tags/runtimes.md?difficulty=easy))
- serverless functions ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))

## Keywords

Supabase Edge Runtime, Deno, deno\_core, V8, hyper, Fly.io, Deno Deploy

## Related posts

- [Edge Functions are now available in Supabase](https://swe.quest/articles/edge-functions-are-now-available-in-supabase-3c06235615e01037.md): Supabase · 2022-03-31 · Easy · 7 min read · Serverless, CDN & edge, TypeScript, System design
  Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers.
- [Edge Functions: Node and native npm compatibility](https://swe.quest/articles/edge-functions-node-and-native-npm-compatibility-4f29863e45494db0.md): Supabase · 2023-12-12 · Medium · 3 min read · Serverless, JavaScript, Observability
  Supabase Edge Functions now natively support npm modules (via \`npm:\` imports) and Node built-in APIs, so existing Node apps using Express, node-postgres and Drizzle can migrate with minimal changes.
- [Supabase Edge Functions: Introducing Background Tasks, Ephemeral Storage, and WebSockets](https://swe.quest/articles/supabase-edge-functions-introducing-background-tasks-ephemeral-storage-and-e15d228ef0b3c73e.md): Supabase · 2024-12-03 · Medium · 6 min read · Serverless, Real-time systems, JavaScript
  Supabase Edge Functions gain background tasks, ephemeral /tmp file storage, and inbound/outbound WebSocket support.
- [Persistent Storage and 97% Faster Cold Starts for Edge Functions](https://swe.quest/articles/persistent-storage-and-97-faster-cold-starts-for-edge-functions-c2ecae788df86c95.md): Supabase · 2025-07-18 · Medium · 4 min read · Serverless, Performance engineering, Storage systems, Multi-tenancy
  Supabase Edge Functions can now mount any S3-compatible bucket, including Supabase Storage, as a POSIX-like directory under /s3, configured through four S3FS\_\* environment secrets.
- [Introducing @supabase/server](https://swe.quest/articles/introducing-supabase-server-014f7e505754650d.md): Supabase · 2026-05-06 · Medium · 8 min read · Identity & auth, Serverless, TypeScript, Developer tools
  @supabase/server, now in public beta, replaces the repeated setup code found across 25,000 analyzed Edge Functions: client creation, JWT verification, claims parsing, CORS and auth wiring.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
