Functions
Create, test locally, and deploy Supabase Edge Functions — all from the Functions tab. ChromeShip generates a complete function for each use case.
Requires ChromeShip Pro
Upgrade to Pro to unlock Edge Functions.
Create a function
In the Functions tab, click Add function. Name it and ChromeShip scaffolds the file immediately with the full implementation.
Invoke from the extension
functions.invoke — JSON request with auth auto-attached. Returns the parsed JSON body. Use this for 99% of calls.
import { functions } from "@/integrations/supabase";
const result = await functions.invoke("hello-world", { name: "World" });functions.raw — full control over method, headers, and body. Returns the raw Response object. Use for downloads, non-JSON responses, or custom HTTP methods.
const response = await functions.raw("download-report", {
method: "POST",
headers: { "Accept": "application/pdf" },
body: { id: "123" },
});
const blob = await response.blob();Deploy
Click Deploy in the Functions tab. ChromeShip pushes your function to Supabase in seconds. Deploy all functions or pick one.
Local webhooks with ngrok
Toggle ngrok to expose your local functions for Stripe webhooks and external callbacks during development. The ngrok URL appears in the Functions tab.
Generated function templates
Name your function after one of these templates and ChromeShip generates the full implementation.
