Skip to main content
The Edge Functions primitive lets you list, deploy, and invoke edge functions on a fullstack app’s managed backend. Management operations (list/deploy) go through the backend’s management API; invocation hits the project’s /functions/v1 endpoint — all with credentials injected by Naive.
Requires a fullstack app (naive.apps.create({ name, type: "fullstack" })).

Two ways to use it

Omit { appId } to auto-resolve the user’s single fullstack app; pass it when they own several.

List & invoke

Deploy

Two Management API shapes work through the apps Supabase proxy (CLI: naive apps supabase):
Upstream POST …/functions/deploy is multipart-only. The proxy accepts agent-friendly JSON files: [{ name, content }] and builds one multipart file part per source (plus metadata). Create via POST …/functions still works when body (source string) is present; omitting it injects a hello stub so create succeeds.

REST

Your own project uses /v1/apps/<app-id>/…; an end-user’s project uses /v1/users/<user-id>/apps/<app-id>/…. See the Edge Functions API reference.

Billing

Free at the Naive layer — no per-operation credit cost. Account Kits can gate the functions primitive per user.