Skip to content
pubscout

functions_client

2.7.1, released 4 months ago by supabase.io

Dart client for invoking Supabase Edge Functions.

WASM-ready
$ flutter pub add functions_client
Source repository

What it does

Provides a client interface to trigger and communicate with Supabase Edge Functions. It handles HTTP requests, authentication headers, error classification, and request aborting for Supabase function endpoints. It is primarily used internally by the Supabase Dart and Flutter SDKs or standalone in lightweight Dart applications.

AI-written summary of version 2.7.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Calling Supabase Edge Functions without pulling in the entire monolithic Supabase client
  • Building server-side or lightweight Dart tools that only need to trigger Supabase Functions
  • Handling request cancellation and typed exceptions specifically for Supabase Functions

Skip it when

  • Already using the main `supabase` or `supabase_flutter` package which bundles this client
  • Not using Supabase Edge Functions as your backend service

Strengths

  • Lightweight and decoupled client tailored specifically for Supabase Functions
  • Supports request cancellation via abort signals
  • Exposes granular exception types such as FunctionsHttpException and FunctionsFetchException

Weaknesses

  • Minimal documentation in the package README, relying entirely on external links
  • Rarely needed directly since most developers interact with functions through the unified `supabase` package

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

Requires the function URL and Supabase authentication keys.

Alternatives

Packages that do the same job and could replace functions_client.

Works with

Packages commonly used together with functions_client: ones it builds on, ones built on it, and its own family.