An open API service indexing awesome lists of open source software.

https://github.com/gogovega/node-red-contrib-cloud-firestore

Node-RED nodes to communicate with Google Cloud Firestore
https://github.com/gogovega/node-red-contrib-cloud-firestore

admin cloud database firebase firestore node-red

Last synced: 10 months ago
JSON representation

Node-RED nodes to communicate with Google Cloud Firestore

Awesome Lists containing this project

README

          


Node-RED nodes to communicate with Google Cloud Firestore


Logo




Report Bug
·
Request Feature
·
Discussion



shield-license
shield-issues
shield-stars
shield-forks
shield-downloads
shield-dependencies


![demo nodes](./assets/images/demo-flow.gif)

## What is it?

This package is used to communicate with Google Cloud Firestore.
It allows to add, modify and fetch data from your databases aswell as subscribing to data at the paths you specify which yields a `payload` whenever a value changes.

## The Nodes

![nodes-screenshot](./assets/images/nodes-screenshot.png)

There are 3 nodes included with this contrib:

| Node | Purpose |
| ------------------ | ----------------------------------------------------------------------------------------------------- |
| Firestore IN | Subscribes to data at the specified path,
which yields a `payload` whenever a value changes. |
| Firestore GET | Fetches data from the specified path.
Query constraints can be used to sort and order your data. |
| Firestore OUT | `SET`, `UPDATE` or `DELETE` data at the target Database. |

## Features

- Editable List for Query Constraints

You can statically define your Query Constraints with an Editable List, which is used to sort and order your data as required.

![demo query constraints](./assets/images/query-constraints-editablelist.gif)

- Error message for incorrect input

The field provides feedback if the input is incorrect, specifying the reason for the error.

![demo error message](./assets/images/input-error-message.gif)

- Drag and drop JSON file

Automatically populates the fields with the content of the JSON file you provide.

![demo JSON file](https://raw.githubusercontent.com/GogoVega/node-red-contrib-firebase-realtime-database/refs/heads/master/assets/images/drag-and-drop.gif)

## How to use?

- From Manage Palette

Find this package `@gogovega/node-red-contrib-cloud-firestore` and click install.

- Install Manually
`.node-red` is usually relative to the users home directory that is running Node RED.

```bash
cd ~/.node-red
npm install @gogovega/node-red-contrib-cloud-firestore@latest --omit=dev
```

Remember to restart Node RED after using either method.

## Authentication Methods

- `Anonymous`
- `Email`
- `Private Key` (Firebase Admin Node.js SDK)
- `Custom Token` (Generated with Private Key)

Read more about the different ways to authenticate [here](https://github.com/GogoVega/node-red-contrib-firebase-realtime-database/wiki/Authentication#authentication-methods).

## Getting Started Link

- [Installing](https://github.com/GogoVega/node-red-contrib-cloud-firestore/wiki/getting-started): System requirements and install instructions
- [Build Database](https://github.com/GogoVega/node-red-contrib-cloud-firestore/wiki/create-database): How to build a Firestore database?
- [Authentication Methods](https://github.com/GogoVega/node-red-contrib-firebase-realtime-database/wiki/Authentication#authentication-methods): Which method used to connect?
- [RTDB](https://github.com/GogoVega/node-red-contrib-firebase-realtime-database): You search for the Firebase RealTime DataBases?
- [Wiki](https://github.com/GogoVega/node-red-contrib-cloud-firestore/wiki): Just about everything
- [Firebase Site](https://firebase.google.com/): What is Firebase?
- [Change Log](./CHANGELOG.md): Whats changed?

> [!NOTE]
> Not all links are active yet - just be patient :wink:

## Feature Request

If you have any other suggestions, please let me know [here](https://github.com/GogoVega/node-red-contrib-cloud-firestore/discussions/new?category=ideas).

## Telemetry Usage

This project collects anonymous telemetry data to improve the user experience of the `First Flow` tour guide.
The data collected only contains the progress of the tour. No personal information or credential is collected.
This data will be used to improve the tour and potentially create other interactive tutorials if there is interest. Read more [here](https://github.com/GogoVega/node-red-contrib-cloud-firestore/wiki/tours).

## License

MIT License

Copyright (c) 2023-2025 Gauthier Dandele

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.