Back to All SDKs
Official SDK Flutter v2.5.1 HosteDay Flutter SDK status badge

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.

Registry
pub.dev
Package Identifier
hosteday_flutter
Minimum SDK
Flutter 3.19+ / Dart 3.3+
Views
3

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

Core
Core Client & Unified Config

Loads hosteday_config.json, attaches API protection headers, and configures the HTTP client with retry interceptors.

Artifact / Import
package:hosteday_flutter/core.dart

HostedayAuth

Auth
Authentication & Sessions

Sign in, sign up, fetch current authenticated profile, and persist bearer tokens securely.

Artifact / Import
package:hosteday_flutter/auth.dart

HostedayDatabase

CRUD
Database & Query Builder

Full CRUD operations with chainable where filters, sorting, relations, and cursor/page pagination.

Artifact / Import
package:hosteday_flutter/database.dart

HostedayRealtime

WebSockets
Realtime WebSockets

Subscribe to public, private, and presence channels over Reverb with reactive Dart Streams.

Artifact / Import
package:hosteday_flutter/realtime.dart

Interactive Code Examples

Copy-ready examples covering initialization, authentication, database CRUD filters, and realtime WebSockets.

dart
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.