Edge Functions - support Dart #7718
Replies: 3 comments 3 replies
|
Hi @ajonno, Actually, Edge Functions is already supported on both supabase-dart and supabase-flutter. You can find the docs on how to use it on our official Dart documentation here! |
|
@dshukertjr @ajonno This is a must have for Flutter developers. Why I need to learn another programming language just to wrote an edge function? Please this feature would help a lot. Firebase supports Python, Javascript, and few other languages but they dont support dart. As a Flutter developer I dont wanna learn other languages and libraries which Im not gonna use in the future. |
|
@dshukertjr I'm reviving this thread because there have been some interesting developments worth flagging! @illia-romanenko called it back in December 2022 — Firebase has now officially released Dart support for Cloud Functions: https://www.youtube.com/watch?v=0P17edjvTSw. This shows there's real demand in the Flutter community for server-side Dart, and that it's technically viable. And the demand is only going to grow: according to Apptopia (via the official Flutter blog, Dec 2024), Flutter now powers nearly 30% of all free iOS apps and over 1 million apps on the Play Store, with over 1 million monthly active developers. A huge portion of those developers are already using Supabase as their backend — and having to switch to TypeScript just to write an edge function is a real pain point. For Supabase specifically, the docs already reference dart_edge as a way to write Edge Functions in Dart — which suggests this has been on the team's radar before. Unfortunately, the package is currently unmaintained and no longer builds, leaving developers with no working path today. One potential technical approach would be compiling Dart to WebAssembly (WASM) and running it inside Deno. However, the current WASM approach is quite hacky — making outbound HTTP calls from within a WASM module in Deno is not straightforward, making it impractical for real-world use cases like calling external APIs or Supabase itself. A proper first-class implementation would be a game changer for the Flutter community. Would love to know if this is something the team is considering revisiting! |
Uh oh!
There was an error while loading. Please reload this page.
Any plans to support Edge Functions authored using Dart ?
All reactions