firefast 0.0.21 copy "firefast: ^0.0.21" to clipboard
firefast: ^0.0.21 copied to clipboard

Firebase without the fuss. Define fields once, then just .write(), .read() Type-safe. Clean. Fast. Easy. Firestore, Realtime Database, Auth, Storage, Functions, Config and more!

img

Firebase without the fuss.

Define fields once, then just .write(), .read(), .delete().
Type-safe. Clean. Fast. Easy. No string keys. No casting. No boilerplate.

Supports: Firestore, Realtime Database (in progress)
Coming soon: Auth, Storage, Remote Config, App Check, Functions, and more.


πŸ›  Roadmap #

  • βœ… Core Functionality
  • βœ… Firestore
  • ❌ Documentation
  • ❌ Smart Caching
  • ❌ Rate Limits
  • ❌ Realtime Database
  • ❌ Firebase Auth
  • ❌ Storage
  • ❌ Remote Config
  • ❌ App Check
  • ❌ Functions

πŸš€ Example #

And this is just the tip of the iceberg!

final nameField = Firefast.field<String>(
  name: 'name',
  toFire: () async => getUser().name,
  fromFire: (raw) => raw.toString(),
);

final name = FirefastStore.col('users').doc('alice').toField(name);    // Same
final name = namefield.firestoreNewDoc('users', 'alice');              // Same
final doc = FirefastStore.col('users').doc('alice').withField(name);   // Document

await name.write();    // write 'name' field
await name.read();     // returns 'Alice'
await name.delete();   // deletes the field

await doc.write();    // writes all fields in the document
await doc.read();     // reads all defined fields
await doc.delete();   // deletes the entire document

🎯 Why Firefast? #

βœ… Minimal Boilerplate – define once, reuse anywhere
βœ… Separation of Concerns – field logic lives in the field
βœ… Type Safety – avoid runtime errors and dynamic
βœ… Composable – easily construct documents, subcollections, fields
βœ… Scalable – works across all Firebase services (Firestore, RTDB, and more coming)
βœ… Clean API – no manual set(), get(), or Map<String, dynamic> juggling


πŸ”§ Under the Hood #

  • Built on a modular path system (col().doc().withFields())
  • Abstracted data sources (FastDataPathSource) allow plug-and-play with Firestore, Realtime DB, Remote Config, etc.
  • Extensible caching system (FireCacheBox) with cooldowns and offline strategies (coming soon)

πŸ“¦ Installation #

dependencies:
  firefast: ^latest

Contribute #

Pull requests, feedback, and ideas are welcome!
Help shape a better Firebase developer experience.

2
likes
0
points
82
downloads

Publisher

verified publisherjozz.biz

Weekly Downloads

Firebase without the fuss. Define fields once, then just .write(), .read() Type-safe. Clean. Fast. Easy. Firestore, Realtime Database, Auth, Storage, Functions, Config and more!

Repository (GitHub)
View/report issues

Topics

#firebase #firestore #realtime #database #authentication

License

unknown (license)

Dependencies

cloud_firestore, collection, firebase_database, flutter, prf

More

Packages that depend on firefast