HosteDay Flutter SDK
Official Dart & Flutter SDK to connect your mobile and web apps to HosteDay via unified hosteday_config.json, with built-in Auth, Database CRUD, Realtime WebSockets, and Push Notifications.
Package Overview
HosteDay Flutter SDK provides a production-ready integration layer to connect your Flutter application to your HosteDay environment in minutes. Powered by the unified hosteday_config.json generated from SDK Connect, it handles API protection headers, user token persistence, query builders, and auto-reconnecting Reverb WebSocket channels across Android, iOS, and Web.
Key Capabilities
- Zero-boilerplate hosteday_config.json setup
- Built-in Auth & secure token persistence
- Fluent Database CRUD & filters
- Realtime WebSockets (Public, Private, Presence)
- FCM Push Notifications & File Storage
Installation & Setup
Add the dependency to your project, then download hosteday_config.json from SDK Connect in your dashboard.
# pubspec.yaml
dependencies:
flutter:
sdk: flutter
hosteday_flutter: ^2.5.1
flutter:
assets:
- assets/hosteday_config.json
# Or install via CLI:
# flutter pub add hosteday_flutter
Modules Breakdown
Clean modular architecture so you can include only the components your application needs.
HostedayCore
Loads hosteday_config.json, attaches API protection headers, and configures the HTTP client with retry interceptors.
HostedayAuth
Sign in, sign up, fetch current authenticated profile, and persist bearer tokens securely.
HostedayDatabase
Full CRUD operations with chainable where filters, sorting, relations, and cursor/page pagination.
HostedayRealtime
Subscribe to public, private, and presence channels over Reverb with reactive Dart Streams.
Interactive Code Examples
Copy-ready examples covering initialization, authentication, database CRUD filters, and realtime WebSockets.
import 'package:flutter/material.dart';
import 'package:hosteday_flutter/hosteday_flutter.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Hosteday.initializeApp(
configAssetPath: 'assets/hosteday_config.json',
);
runApp(const MyApp());
}
More HosteDay SDKs
Explore other official packages to ship cross-platform apps on the same cloud backend.
HosteDay Kotlin & Android SDK
Modular Kotlin & Android SDK built with Coroutines, Flow, and Jetpack Compose support. Seamlessly integrates hosteday_config.json, Database CRUD, Reverb WebSockets, and FCM notifications.
Official Python SDK
Official async-first Python SDK for HosteDay — connect backends, AI agents, and apps via hosteday_config.json or env vars with standard CRUD, Auth, Realtime WebSockets (Reverb), Push Notifications, Background Jobs, and an embedded Web App engine.