-
Notifications
You must be signed in to change notification settings - Fork 1
storage firebase Overview
GitHub Action edited this page Apr 21, 2026
·
2 revisions
The Firebase Storage adapter for @quatrain/storage.
This adapter enables you to securely upload, download, and manage files in Google Cloud Storage buckets linked to your Firebase project, using the standard Quatrain API.
npm install @quatrain/storage-firebase firebase-admin
# or
yarn add @quatrain/storage-firebase firebase-adminRegister the adapter by providing your Firebase service account credentials.
import { Storage } from '@quatrain/storage'
import { FirebaseStorageAdapter } from '@quatrain/storage-firebase'
const firebaseAdapter = new FirebaseStorageAdapter({
config: {
projectId: 'your-project-id',
clientEmail: 'firebase-adminsdk-xxx@your-project-id.iam.gserviceaccount.com',
privateKey: '-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n'
}
})
Storage.addAdapter('firebase', firebaseAdapter, true)For concrete examples and usage guides, please refer to the How-To Guide.
AGPL-3.0-only