Supabase Edge Functions

Create and deploy Supabase Edge Functions with Deno and TypeScript.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/amo-tech-ai/rocket-path-ai --skill supabase-edge-functions-amo-tech-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Supabase Edge Functions
Source: https://github.com/amo-tech-ai/rocket-path-ai/tree/main/.cursor/skills/edge-functions
Command: npx skills add https://github.com/amo-tech-ai/rocket-path-ai --skill supabase-edge-functions-amo-tech-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @supabase/supabase-js, pg, hono, @google/genai, express, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers developers to build and deploy serverless functions on Supabase, enabling the creation of robust APIs, webhooks, and backend logic without managing separate infrastructure.

Core Features & Use Cases

  • Serverless API Endpoints: Create custom API endpoints directly within your Supabase project.
  • Webhook Integration: Easily set up webhooks to respond to events from other services.
  • AI Integration: Seamlessly integrate AI models like Gemini for data processing and enrichment within your functions.
  • Database Interaction: Securely connect to and interact with your Supabase database.

Quick Start

Use the Supabase Edge Functions skill to create a new function named 'user-auth-handler' that validates JWTs and logs user information.

Frequently Asked Questions about Supabase Edge Functions

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

FAQPage Schema
How do I create serverless API endpoints using Supabase Edge Functions?

You can create serverless API endpoints using Supabase Edge Functions by writing TypeScript and Deno runtime logic to handle custom HTTP requests directly within your project.

Can I use Hono and Express with Supabase Edge Functions for backend routing?

Yes, Supabase Edge Functions support backend routing using Hono and Express dependencies to structure serverless API endpoints and webhook integrations efficiently.

How do I set up webhooks and integrate AI services in Supabase?

To set up webhooks and integrate AI services in Supabase, deploy Edge Functions utilizing Deno and the @google/genai dependency to process event payloads and enrich data.

Does Supabase Edge Functions support JWT authentication and database connectivity?

Yes, Supabase Edge Functions support JWT authentication and secure database connectivity using the @supabase/supabase-js and pg dependencies to validate users and query data.

What is the best way to import npm or jsr packages in Deno runtime for Supabase?

The best way to import npm or jsr packages in Deno runtime for Supabase is by adhering to Deno runtime best practices and specific npm/jsr import patterns for dependencies.

When should I not use serverless functions on Supabase for backend logic?

You should not use serverless functions on Supabase for backend logic if your application requires long-running processes, as Edge Functions leverage Deno for quick, serverless API responses.