/edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.

Primary LanguageRustMIT LicenseMIT

Supabase Edge Runtime

A web server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.

You can use it to:

  • Locally test and self-host Supabase's Edge Functions (or any Deno Edge Function)
  • As a programmable HTTP Proxy: You can intercept / route HTTP requests

WARNING: Beta Software. There will be breaking changes to APIs / Configuration Options

How to run locally

./run.sh start --main-service /path/to/supabase/functions -p 9000

using Docker:

docker build -t edge-runtime .
docker run -it --rm -p 9000:9000 -v /path/to/supabase/functions:/usr/services supabase/edge-runtime start --main-service /usr/services

How to run tests

make sure the docker daemon is running and create a docker image:

docker build -t edge-runtime:test .

install tests dependencies:

cd test
npm install

run tests:

npm run test

How to update to a newer Deno version

Contributions

We welcome contributions to Supabase Edge Runtime!

To get started either open an issue on GitHub or drop us a message on Discord

Edge Runtime follows Supabase's Code of Conduct.