Skip to main content

tinybase_client 0.3.1 copy "tinybase_client: ^0.3.1" to clipboard
tinybase_client: ^0.3.1 copied to clipboard

Flutter SDK for the TinyBase backend: auth, JWT refresh, collection CRUD, file uploads, and realtime SSE.

example/main.dart

import 'package:tinybase_client/tinybase_client.dart';

/// Minimal usage of [TinyBaseClient].
///
/// Replace [baseUrl] with your TinyBase server URL.
Future<void> main() async {
  final client = TinyBaseClient(
    baseUrl: 'https://your-api.example.com',
    tokenStore: InMemoryTokenStore(),
  );

  // await client.auth.login(email: 'a@b.c', password: 'secret');
  // await client.auth.restore();

  // final page = await client.collection('notes').list();
  // print(page.totalItems);

  print('TinyBase client ready for ${client.baseUrl}');
}
1
likes
0
points
877
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Flutter SDK for the TinyBase backend: auth, JWT refresh, collection CRUD, file uploads, and realtime SSE.

Repository (GitHub)
View/report issues

Topics

#flutter #backend #authentication #rest #jwt

License

unknown (license)

Dependencies

flutter, http, http_parser, shared_preferences

More

Packages that depend on tinybase_client