functions_client
2.7.1, released 4 months ago by supabase.io
Dart client for invoking Supabase Edge Functions.
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.
- gotrue
Dart client for Supabase Auth API
85Compare - posthog_flutter
Flutter client for PostHog analytics, feature flags, and session replay
84Compare - supabase_flutter
Flutter client for Supabase providing auth, database, realtime, storage and edge functions.
92Compare - realtime_client
Dart client for Supabase Realtime, listening to PostgreSQL changes via WebSocket
89Compare
Works with
Packages commonly used together with functions_client: ones it builds on, ones built on it, and its own family.
- loggingfunctions_client depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- yet_another_json_isolatefunctions_client depends on itParse and encode JSON in a dedicated isolate to avoid blocking the main thread.
- postgrestSame familyDart client library offering an ORM‑like interface to PostgREST/Supabase databases.
- supabaseBuilt on functions_clientDart client for Supabase, usable in non-Flutter Dart environments.