supabase-edge-functions

Build Supabase Edge Functions with TypeScript and Deno runtime.

1|Updated May 16, 2026
One-click install
npx skills add https://github.com/gudnuf/agicash-rs --skill supabase-edge-functions-gudnuf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-edge-functions
Source: https://github.com/gudnuf/agicash-rs/tree/main/.claude/skills/supabase-edge-functions
Command: npx skills add https://github.com/gudnuf/agicash-rs --skill supabase-edge-functions-gudnuf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides guidelines for writing Supabase Edge Functions with TypeScript and the Deno runtime, ensuring consistency and best practices across edge deployments.

Core Features & Use Cases

  • Establish consistent import strategies (use npm: or jsr: prefixed packages) and avoid bare specifiers.
  • Promote shared utilities under supabase/functions/_shared, with relative imports to minimize cross-dependencies.
  • Enforce runtime constraints (Deno.serve, EdgeRuntime.waitUntil), environment variable practices, and routing patterns for multi-route functions.
  • Use a conservative dependency approach (prefer core Web APIs and built-ins, minimize deno.land/x usage) and provide templates for common edge tasks.
  • Use cases include creating new edge functions, updating existing ones, or reviewing code for security and performance best practices.

Quick Start

Create a new edge function project in supabase/functions using TypeScript and Deno runtime and follow these guidelines.

Frequently Asked Questions about supabase-edge-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize imports in Supabase Edge Functions with TypeScript?

Supabase Edge Functions require explicit import strategies using npm: or jsr: prefixed packages, avoiding bare specifiers. Shared utilities should reside under supabase/functions/_shared using relative imports to minimize cross-dependencies and ensure consistent TypeScript deployments.

What is the best way to handle background tasks in Deno Edge Functions?

Deno Edge Functions handle safe background tasks using EdgeRuntime.waitUntil. This mechanism ensures processes complete securely without blocking the main execution thread, maintaining reliable runtime performance for background operations.

Why does my Supabase Edge Function fail when writing files?

Supabase Edge Functions fail because file write operations are restricted to the /tmp directory. Enforcing explicit dependency versioning and relying on core Web APIs prevents runtime errors and ensures stable Deno execution.

Can I use bare module specifiers in Supabase Edge Functions?

Bare module specifiers are not supported in Supabase Edge Functions. You must use npm: or jsr: prefixed packages for imports, adopt a conservative dependency approach, and prefer core Web APIs and built-in functions over deno.land/x usage.

How do I set up multi-route handling for Supabase Edge Functions?

Multi-route handling in Supabase Edge Functions requires using Deno.serve and applying specific routing patterns. This approach organizes endpoints effectively within the Deno runtime while maintaining TypeScript type safety.

Do I need to use Deno.serve when creating Supabase Edge Functions?

Yes, Deno.serve is enforced for creating Supabase Edge Functions. This requirement guarantees proper request handling within the Deno runtime, complementing environment variable practices and explicit dependency versioning for robust deployments.