npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-firestore-trigger

v1.0.2

Published

n8n node to trigger workflows from Firebase Firestore changes

Readme

n8n-nodes-firestore-trigger

Build Status npm version License

This is an n8n community node. It lets you use Firebase Firestore in your n8n workflows as a trigger source.

Firebase Firestore is a flexible, scalable NoSQL cloud database that lets you store and sync data between your users in real-time. This node allows you to listen for changes in your Firestore database and automatically trigger workflows when data is added, modified, or removed.

n8n is a fair-code licensed workflow automation platform.

Installation Operations Credentials Compatibility Usage Resources Version history

Installation

Follow the installation guide in the n8n community nodes documentation.

Self-hosted n8n:

  • Go to Settings by clicking on 3-dots at the bottom left.
  • Navigate to Community Nodes section on the left.
  • Click on Install or Add Community Nodes button.
  • Type n8n-nodes-firestore-trigger, accept the disclaimer and click Install.

The trigger node will now be available in your n8n instance by searching for Firestore.

Locally hosted n8n instance:

# Install from npm
pnpm add n8n-nodes-firestore-trigger

# Alternatively, for local development:
cd ~/.n8n/custom/
pnpm link /path/to/n8n-nodes-firestore-trigger

Restart n8n after installation.

Operations

The Firestore Trigger node supports the following operations:

| Operation | Description | |-----------|-------------| | Listen to Collection | Listen for changes to documents in a collection | | Listen to Document | Listen for changes to a specific document |

Collection Listeners

When listening to a collection, you can:

  • Monitor all documents in a collection or subcollection
  • Filter which events trigger the workflow (Added, Modified, Removed)
  • Use query filters to only trigger on specific document changes
  • Monitor nested subcollections using path patterns (e.g., "users/:userId/orders")
  • Use dynamic expressions in path segments for flexible data access

Document Listeners

When listening to a specific document, you can:

  • Monitor a single document for any changes
  • Include metadata changes if needed
  • Get the complete document data when it changes

Credentials

To use this node, you need Firebase Admin SDK credentials:

Prerequisites:

  1. A Firebase project with Firestore enabled
  2. A service account with appropriate permissions

Steps to obtain credentials:

  1. Go to your Firebase Console
  2. Navigate to Project Settings > Service Accounts
  3. Click "Generate new private key"
  4. Download the JSON file containing your service account credentials

Setting up in n8n:

  1. In your n8n instance, go to the Credentials tab
  2. Click "Create New Credentials"
  3. Select "Firebase Admin API"
  4. Choose Authentication Method:
    • Service Account JSON: Paste the contents of your JSON credentials file
    • Application Default Credentials: For testing with emulator or environment-based auth
  5. Enter your Firebase Project ID
  6. Optionally specify a Database ID (leave as "(default)" for standard setup)
  7. Save your credentials

Compatibility

  • Requires n8n version 0.209.0 or later
  • Compatible with Firebase Admin SDK v13.0.0 and later
  • Tested with Firestore database in Native mode

Usage

Basic Collection Monitoring

To monitor all changes to a collection:

  1. Add the Firestore Trigger node to your workflow (Note: The node appears as "Firestore" in the UI rather than "Firestore Trigger")
  2. Select "Listen to Collection" operation
  3. Enter the collection path (e.g., "users")
  4. Select which events to trigger on (Added, Modified, Removed)
  5. Save and activate the workflow

The workflow will execute whenever documents in the collection are added, modified, or removed.

Monitoring a Specific Document

To monitor a specific document:

  1. Add the Firestore Trigger node to your workflow
  2. Select "Listen to Document" operation
  3. Enter the collection path (e.g., "orders")
  4. Enter the document ID (e.g., "order-123")
  5. Save and activate the workflow

The workflow will execute whenever the specified document changes.

Using Query Filters

To only trigger the workflow for specific documents:

  1. Add the Firestore Trigger node to your workflow
  2. Select "Listen to Collection" operation
  3. Enter the collection path
  4. Under "Options" > "Query Filters", add one or more filters:
    • Field: The document field to filter on
    • Operator: Comparison operator (==, !=, >, >=, <, <=, array-contains)
    • Value: The value to compare against
  5. Save and activate the workflow

The workflow will only execute for documents that match the filter criteria.

Monitoring Subcollections

To monitor a subcollection:

  1. Add the Firestore Trigger node to your workflow
  2. Select "Listen to Collection" operation
  3. Enter the path including the subcollection (e.g., "users/user-123/orders")
  4. Select which events to trigger on
  5. Save and activate the workflow

Using Path Patterns

To dynamically monitor subcollections across multiple documents:

  1. Add the Firestore Trigger node to your workflow
  2. Select "Listen to Collection" operation
  3. Enter a path with a parameter (e.g., "users/:userId/orders")
    • The :userId parameter will match any document ID in the users collection
  4. Select which events to trigger on
  5. Save and activate the workflow

This creates a dynamic listener that will monitor the "orders" subcollection under any document in the "users" collection.

Node Output

When a document change triggers the workflow, the node outputs the following data:

{
  "id": "document-id",
  "data": {
    // Document fields and values
  },
  "changeType": "added | modified | removed",
  "path": "collection/document-id",
  "metadata": {
    "hasPendingWrites": false,
    "fromCache": false
  },
  "timestamp": 1715501234567
}

Resources

Version history

Version 1.0.0

  • Initial release
  • Support for collection and document listeners
  • Support for event filtering (added, modified, removed)
  • Support for query filters
  • Support for subcollection monitoring
  • Support for path patterns with parameters
  • Support for metadata changes

Known Issues

  1. Node Display Name: When installed in n8n, the node may appear as "Firestore" rather than "Firestore Trigger" in the node selection menu. This is a known issue and doesn't affect functionality.
  2. Delete Events: Delete events may not be consistently triggered during testing, especially in the emulator environment. This primarily affects document deletion notifications in nested collection patterns.