@zajno/common-firebase
v4.3.8
Published
Zajno's re-usable Firebase utilities for JS/TS projects
Readme
Zajno's Toolbox for Firebase projects
Moved from Zajno/common-firebase. Now maintained at idudinov/common-utils.
Extension for @zajno/common, which adds more tools for development projects based on Firebase.
Installation
npm i @zajno/common-firebaseSee usage & distribution notes from @zajno/common's README.
Contents
Firebase Client wrapper – a wrapper for
firebase js sdkv9+ (modular API). Can help managing instance settings from one place while keeping the modular approach.- HTTP Functions call wrapper
AuthController: client-side controller with common Firebase Authentication featuresStorageController: client-side controller with common Firebase Storage features
HTTP Functions definitions – abstract definitions to be used on a middle-layer with in/out type definitions.
- Composite functions – abstraction for defining multiple logic endpoints on a single Firebase Function.
Server-side helpers – for Firebase Functions
- Functions Wrapper: construct functions (v1) from Endpoint definitions, with
Middlewaresfor code reuse and better readability. - Composite Factory: server-side handler for composite endpoints.
- Async Loaders: lazy-load function handlers for cold-start optimization.
- Pubsub helpers – for Firebase Pub/Sub topics.
- Various:
Storage,Admin,Loggerand more.
- Functions Wrapper: construct functions (v1) from Endpoint definitions, with
See full Functions API reference in docs.
