[PAID] Firestore Extension: Interact with Firestore from Google Firebase with auth verification!

🧩 Firestore

An extension to interact with Google Firestore.
My Other Extensions
Built by Sarthak Gupta

Introduction

The Firestore extension allows you to integrate Firebase Firestore into your app. Thanks @Saithrishik for your support!

:memo: Specifications


:package: Package: in.sarthakdev.firestore
:floppy_disk: Size: 74.34 KB
:gear: Version: 1.0
:mobile_phone: Minimum API Level: 7
:date: Updated On: 2025-05-30T18:30:00Z
:laptop: Built & documented using: FAST v3.4.1
License: Sarthak's AI2 Site - license

Events:

Firestore has total 10 events.

FailedToInitialize_Event
FirestoreInitialized_Event
GotAllDocs_Event
GotDocument_Event
GotQuery_Event
OnFailure_Event
OnListenerModified_Event
OnListenerRemoved_Event
OnSuccess_Event
TokenVerified_Event

FailedToInitialize

Triggered when Firestore initialization fails

Parameter Type
errorMessage text

FirestoreInitialized

Triggered when Firestore is initialized

GotAllDocs

Triggered when all documents are retrieved

Parameter Type
documents list

GotDocument

Triggered when a document is retrieved

Parameter Type
document list

GotQuery

Triggered when query results are retrieved

Parameter Type
documents list

OnFailure

Triggered when an operation fails

Parameter Type
message text

OnListenerModified

Triggered when a document is modified (via polling listener)

Parameter Type
document list

OnListenerRemoved

Triggered when a document is removed (via polling listener)

Parameter Type
document list

OnSuccess

Triggered when an operation succeeds

Parameter Type
message text

TokenVerified

Triggered when an ID token is successfully verified

Parameter Type
claims list

Methods:

Firestore has total 15 methods.

Aaa  (3)
Aaa  (4)
Aaa  (5)
Aaa  (6)
Aaa  (7)
Aaa  (9)
Aaa  (10)
Aaa  (11)
Aaa  (13)
Aaa  (14)
ab (1)
ab (2)
ab (3)
ab (4)
ab (5)

AddDocument

Adds a new document to a collection

Parameter Type
collectionPath text
documentData list

DeleteCollection

Deletes an entire collection (deletes all documents in it)

Parameter Type
collectionPath text

DeleteDocument

Deletes a specific document

Parameter Type
documentPath text

GetAllDocs

Retrieves all documents from a collection

Parameter Type
collectionPath text

GetDocument

Retrieves a specific document

Parameter Type
documentPath text

GetDocumentQuery

Executes a query on a collection (simple where clauses). QueryConditions: list of [field, operator, value]

Parameter Type
collectionPath text
queryConditions list

InitializeFirestore

Initializes the Firestore Web API. Must set ApiKey and ProjectId first.

NewDocument

Creates a new document reference (path) in a collection. If documentName is empty, Firestore generates one.

  • Return type: text
Parameter Type
collectionPath text
documentName text

RegisterListener

Registers a real-time listener (polling every few seconds) on a collection. Fires events for modifications and removals.

Parameter Type
collectionPath text

RemoveAllListeners

Removes all registered listeners

RemoveListener

Removes a specific listener on a collection

Parameter Type
collectionPath text

SetDocument

Sets a document at a specific reference (overwrites or creates)

Parameter Type
documentPath text
documentData list

SetFieldWithMerge

Sets fields in a document with merge option

Parameter Type
documentPath text
documentData list

UpdateDocument

Updates an existing document (partial update; same as merge)

Parameter Type
documentPath text
documentData list

VerifyAuthToken

Verifies a Firebase ID token (JWT). Returns decoded claims as YailList if valid.

Parameter Type
idToken text

Designer:

Firestore has total 2 designer properties.

ApiKey

  • Input type: string

ProjectId

  • Input type: string

Setters:

Firestore has total 2 setter properties.

Aaa  (2)
Aaa  (12)

ApiKey

Sets the Firebase API Key (Web API key).

  • Input type: text

ProjectId

Sets the Firebase Project ID.

  • Input type: text

Purchase the Extension :slight_smile:

The extension is available for just 11.99$. Purchase from below!
https://buymeacoffee.com/techxsarthak/e/416056

Oops! Posted into the wrong tag. Please move it into extensions!

1 Like