firebase_ffi 0.1.1 copy "firebase_ffi: ^0.1.1" to clipboard
firebase_ffi: ^0.1.1 copied to clipboard

Firebase for Dart and Flutter on desktop Linux through a single FFI code asset — no platform channel, no embedder plugin. Products are opt-in per app.

example/README.md

firebase_ffi examples #

Plain Dart programs, one per product, each covering that product's whole surface rather than one call from it. setup.dart is the bootstrap they share: it builds the app, signs in, and initializes what the program asked for.

auth.dart anonymous and custom-token sign-in, the ID token, session restore, a rejected credential, sign-out
database.dart writes, listeners, child events, queries, transactions, priorities, onDisconnect, offline writes
firestore.dart documents, the tagged value types, server sentinels, queries and cursors, listeners, transactions, batches, aggregates, collection groups
storage.dart upload, download, metadata, download URLs, deletion — with the bytes checked
functions.dart callables, what arguments and results may be, failures, regions
remote_config.dart defaults, settings, fetch and activate, where a value came from
app_check.dart a custom provider for a fleet, and the debug provider for development

They need a build with the Firebase C++ SDK — see pointing an example at the SDK. Without one each says so and stops.

Against the emulator suite, which needs no project and no credentials, from packages/firebase_ffi:

firebase emulators:exec --project fdb-emulator \
  --only auth,database,firestore,storage,functions \
  'FIREBASE_EMULATOR_HOST=127.0.0.1 dart run example/database.dart'

The config and the callables are in test/emulator/. Remote Config and App Check have no emulator; those two say what they skip.

Against a real project, put google-services.json in the working directory or point GOOGLE_SERVICES_JSON at one, and dart run example/firestore.dart. Each program writes under one throwaway path and deletes it on the way out.

The same products through firebase_auth, cloud_firestore and the rest: the demo app, and flutter test in each façade package's example/.

1
likes
160
points
149
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Firebase for Dart and Flutter on desktop Linux through a single FFI code asset — no platform channel, no embedder plugin. Products are opt-in per app.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

cbor, code_assets, ffi, hooks

More

Packages that depend on firebase_ffi