A TypeScript-first storage management library for Firebase Storage (v1.4.0, updated monthly). Provides a StorageManager class with file upload, download URL generation, progress tracking via events, and batch uploads. Offers React hooks (useStorageManager, useUpload) for state-managed uploads. Differentiates from raw Firebase SDK with event-based progress, simpler batch API, and first-class React integration. Requires firebase ^12.13.0 and react >=18.0.0.
npm install firebase-storage-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Upload a file to Firebase Storage with progress tracking and success/error handlers using StorageManager.
Upgrade firebase to >=12.13.0.
Use import syntax or dynamic import().
Import from 'firebase-storage-kit/react' for React hooks.
Ensure you pass the return value of manager.uploadFile to useUpload.
Use relative path like 'uploads/file.txt' instead of '/uploads/file.txt'.
Install the package: npm install firebase-storage-kit. Ensure tsconfig.json includes 'moduleResolution': 'node' or 'bundler'.
Pass a storage instance from getStorage(app) to the constructor: new StorageManager(getStorage(app)).
Ensure your bundler supports package.json exports field (most modern bundlers do). If using CRA, you may need to upgrade or alias the subpath.
Ensure you use the handle returned by manager.uploadFile and that both firebase and firebase-storage-kit are up to date.