@farmart-tech/brave-firebase-adapter
v2.0.2
Published
Firebase adapter for Farmart Brave Ship feature flag system.
Readme
@farmart-tech/brave-firebase-adapter
Firebase adapter for Farmart Brave Ship feature flag system.
Overview
@farmart-tech/brave-firebase-adapter provides Firebase Firestore integration for the Brave Ship platform. It enables real-time feature flag synchronization and persistent storage using Google Cloud Firestore.
Features
- Real-time feature flag synchronization
- Firestore-based persistent storage
- Automatic change detection
- Optimized batch operations
- Support for both client and admin SDKs
- Firebase Authentication integration
Installation
npm install @farmart-tech/brave-firebase-adapter firebasePeer Dependencies
firebase^11.5.0axios^1.6.7uuid^9.0.0
Quick Start
import { FirebaseAdapter } from '@farmart-tech/brave-firebase-adapter';
import { initializeApp } from 'firebase/app';
// Initialize Firebase
const firebaseApp = initializeApp({
projectId: 'your-project-id',
apiKey: 'your-api-key',
// ... other config
});
// Create adapter
const adapter = new FirebaseAdapter({
app: firebaseApp,
// Optional: custom collection names
featureCollection: 'features',
workspaceCollection: 'workspaces'
});Documentation
For complete API documentation and usage examples, visit:
https://fmt-feature-management.web.app/docs/firebase-adapter/index.html
Use Cases
- Real-time feature flag updates across clients
- Persistent feature flag storage
- Scalable multi-tenant architecture
- Integration with Firebase ecosystem
License
MIT
Related Packages
- @farmart-tech/brave-admin-sdk - Admin SDK (uses this adapter)
- @farmart-tech/brave-client-sdk - Client SDK (uses this adapter)
- @farmart-tech/brave-react-adapter - React integration
