---
tags:
  - stack
  - dev
  - "#SupaBase"
  - project/iso27DIY
---


# SupaBase Edge Functions

Perplexity, 13 juni 2025

Prompt: `I’m planning to build a web service using WeWeb to develop the front end, with SupaBase for the back end. SupaBase offers Edge Functions which are developed using Deno. Tell me more about Deno within the context of my web service

If you use Supabase Edge Functions in your web service, you’ll be working with Deno as the runtime for your server-side logic. Here’s what that means for your project:

- **Deno is a secure, modern JavaScript/TypeScript runtime**: Deno runs your code with secure defaults, requiring explicit permissions for things like file and network access, which reduces security risks[^1_1][^1_2].
- **Edge Functions are written in TypeScript or JavaScript**: You can use modern language features, and Deno supports TypeScript out of the box—no extra setup needed[^1_3][^1_4].
- **Serverless and globally distributed**: Supabase Edge Functions run close to your users, reducing latency and improving performance for API endpoints, webhooks, and custom backend logic[^1_3][^1_5].
- **Simple dependency management**: Deno uses URL-based imports, so you don’t need a package manager or node_modules directory. Modules are imported directly from URLs and cached locally[^1_4].
- **Direct database access**: You can connect to your Supabase Postgres database from within Deno Edge Functions using libraries like `deno-postgres`[^1_5].
- **Scalable and auto-deployed**: Edge Functions are deployed instantly and auto-scale with demand, making them suitable for both small and large workloads[^1_3].

In summary, Deno in the context of your Supabase backend lets you write secure, modern, and scalable server-side code that integrates tightly with your database and runs close to your users for better performance[^1_3][^1_5][^1_4].

<div style="text-align: center">⁂</div>

[^1_1]: [https://docs.deno.com/runtime/fundamentals/web_dev/](https://docs.deno.com/runtime/fundamentals/web_dev/)

[^1_2]: [https://kinsta.com/blog/deno-js/](https://kinsta.com/blog/deno-js/)

[^1_3]: [https://app.studyraid.com/en/read/8395/231617/creating-edge-functions-in-supabase](https://app.studyraid.com/en/read/8395/231617/creating-edge-functions-in-supabase)

[^1_4]: [https://www.codingandbeyond.com/2025/04/13/deno-just-another-javascript-runtime-for-backend/](https://www.codingandbeyond.com/2025/04/13/deno-just-another-javascript-runtime-for-backend/)

[^1_5]: [https://www.restack.io/docs/supabase-knowledge-supabase-deno-integration](https://www.restack.io/docs/supabase-knowledge-supabase-deno-integration)

[^1_6]: [https://www.reddit.com/r/Deno/comments/1fxkbu4/whats_the_fastest_web_framework_for_deno/](https://www.reddit.com/r/Deno/comments/1fxkbu4/whats_the_fastest_web_framework_for_deno/)

[^1_7]: [https://dev.to/ndaidong/6-things-i-just-learned-after-implementing-my-first-deno-web-service-18a8](https://dev.to/ndaidong/6-things-i-just-learned-after-implementing-my-first-deno-web-service-18a8)

[^1_8]: [https://docs.deno.com/runtime/reference/web_platform_apis/](https://docs.deno.com/runtime/reference/web_platform_apis/)

[^1_9]: [https://fresh.deno.dev](https://fresh.deno.dev)

[^1_10]: [https://dev.to/ndesmic/building-a-minimal-web-dev-server-with-deno-4gab](https://dev.to/ndesmic/building-a-minimal-web-dev-server-with-deno-4gab)

---

# So is Deno like a compiler?

Deno is not a compiler in the traditional sense. It is primarily a **JavaScript and TypeScript runtime**—meaning it executes your code, similar to how Node.js or a web browser runs JavaScript[^3_4][^3_5]. However, Deno does offer a `deno compile` command, which can package your script and its dependencies into a self-contained executable binary. This allows you to distribute your application as a standalone program that does not require Deno to be installed on the target machine[^3_2][^3_3].

In summary:

- **Deno is a runtime** for running JavaScript/TypeScript code.
- **Deno can also act as a compiler** when you use `deno compile` to produce standalone executables[^3_2][^3_3].

<div style="text-align: center">⁂</div>

[^3_1]: [https://stackoverflow.com/questions/65715026/whats-the-difference-beetween-deno-install-and-deno-compile](https://stackoverflow.com/questions/65715026/whats-the-difference-beetween-deno-install-and-deno-compile)

[^3_2]: [https://deno.com/blog/deno-compile-executable-programs](https://deno.com/blog/deno-compile-executable-programs)

[^3_3]: [https://docs.deno.com/runtime/reference/cli/compile/](https://docs.deno.com/runtime/reference/cli/compile/)

[^3_4]: [https://dev.to/emnudge/deno-an-unfinished-beauty-4bhn](https://dev.to/emnudge/deno-an-unfinished-beauty-4bhn)

[^3_5]: [https://www.ionos.com/digitalguide/websites/web-development/deno/](https://www.ionos.com/digitalguide/websites/web-development/deno/)

[^3_6]: [https://deno.land/x/deno@v1.7.1/docs/tools/compiler.md](https://deno.land/x/deno@v1.7.1/docs/tools/compiler.md)

[^3_7]: [https://docs.deno.com/runtime/contributing/building_from_source/](https://docs.deno.com/runtime/contributing/building_from_source/)

[^3_8]: [https://docs.deno.com/runtime/](https://docs.deno.com/runtime/)