nhost_dart
2.3.0, released 8 days ago by nhost.io
Dart and Flutter client for Nhost Auth, Storage, Functions, and GraphQL.
What it does
Provides API clients for Nhost services, allowing users to handle authentication, file storage, serverless functions, and GraphQL helpers. It supports both cloud subdomains and self-hosted service URLs.
AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Dart or Flutter application backed by Nhost.
- You need to handle user registration, login, and multi-factor authentication.
- You need to upload, store, and transform files securely.
Skip it when
- Your backend is built on Firebase, Supabase, or Appwrite instead of Nhost.
- You only require low-level HTTP networking without Nhost services.
Strengths
- Comprehensive integration with Nhost authentication and storage APIs.
- Supports both cloud-hosted subdomains and self-hosted project URLs.
- Includes GraphQL adapter support.
Weaknesses
- Tightly coupled to the Nhost ecosystem.
- Limited documentation outside of basic initialization and sample usage.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 10
Initialize NhostClient with your subdomain or service URLs.
import 'package:nhost_dart/nhost_dart.dart';
void main() async {
final nhost = NhostClient(
subdomain: Subdomain(
region: 'eu-central-1',
subdomain: 'backend-5e69d1d7',
),
);
final authResponse = await nhost.auth.signUp(
email: 'new-user@gmail.com',
password: 'password-1',
);
await nhost.auth.signOut();
nhost.close();
}Alternatives
Packages that do the same job and could replace nhost_dart.
- posthog_flutter
Flutter client for PostHog analytics, feature flags, and session replay
84Compare - cloud_functions_web
Web implementation of Firebase Cloud Functions for Flutter web apps
78Compare - firebase_storage_web
Web implementation of Firebase Storage for Flutter.
77Compare - supabase
Dart client for Supabase, usable in non-Flutter Dart environments.
92Compare
Works with
Packages commonly used together with nhost_dart: ones it builds on, ones built on it, and its own family.
- http_parsernhost_dart depends on itA platform-independent package for parsing and serializing HTTP formats.
- loggingnhost_dart depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- nhost_sdknhost_dart depends on itDart SDK for Nhost authentication and file storage APIs.
- nhost_graphql_adapternhost_dart depends on itAdapter that connects the graphql package to an Nhost.io GraphQL backend
- nhost_flutter_authBuilt on nhost_dartProvides Nhost authentication state to your Flutter app.