firefast 0.0.20
firefast: ^0.0.20 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!
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.