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 (advanced)

Edge function deployment requires bundling the function source (as an eszip). For most cases, deploy functions from your app’s repo/workspace and use this primitive to invoke them. The raw management API is available via the apps proxy for full control.

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.