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-firebase

v1.0.0

Published

A comprehensive n8n community node for Firebase providing 7 resources and 40+ operations for Realtime Database, Firestore, Authentication, Cloud Messaging, Remote Config, Dynamic Links, and Cloud Storage integration.

Readme

n8n-nodes-firebase

[Velocity BPA Licensing Notice]

This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).

Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.

For licensing information, visit https://velobpa.com/licensing or contact [email protected].

A comprehensive n8n community node for Firebase, Google's app development platform. This node enables workflow automation for Realtime Database, Cloud Firestore, Authentication, Cloud Messaging (FCM), Remote Config, Dynamic Links, and Cloud Storage.

n8n Firebase License TypeScript

Features

  • Realtime Database: Read, write, update, push, delete, and query data in Firebase Realtime Database
  • Cloud Firestore: Full CRUD operations, structured queries, and batch writes for Firestore documents
  • Authentication: Complete user management including create, update, delete, custom claims, and token operations
  • Cloud Messaging (FCM): Send push notifications to devices, topics, and conditions
  • Remote Config: Manage and publish remote configuration templates
  • Dynamic Links: Create short links and retrieve link statistics
  • Cloud Storage: Upload, download, delete files, and manage metadata

Installation

Community Nodes (Recommended)

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Click Install a community node
  4. Enter n8n-nodes-firebase
  5. Click Install

Manual Installation

# Navigate to your n8n installation
cd ~/.n8n

# Install the package
npm install n8n-nodes-firebase

Development Installation

# Clone or extract the repository
cd n8n-nodes-firebase

# Install dependencies
npm install

# Build the project
npm run build

# Create symlink to n8n custom nodes directory
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-firebase

# Restart n8n
n8n start

Credentials Setup

Firebase Service Account

  1. Go to the Firebase Console
  2. Select your project
  3. Navigate to Project Settings > Service Accounts
  4. Click Generate New Private Key
  5. Download the JSON key file

Configure in n8n

| Field | Description | Example | |-------|-------------|---------| | Project ID | Your Firebase project ID | my-firebase-project | | Service Account Email | Email from the JSON key | [email protected] | | Private Key | Private key from JSON (include BEGIN/END lines) | -----BEGIN PRIVATE KEY-----\n... | | Database URL | Realtime Database URL (optional) | https://my-project-default-rtdb.firebaseio.com |

Resources & Operations

Realtime Database

| Operation | Description | |-----------|-------------| | Read | Read data at a specific path | | Write | Write/replace data at a path | | Update | Update existing data (merge) | | Push | Push new child with auto-generated key | | Delete | Delete data at a path | | Query | Query with filters (orderBy, equalTo, limitToFirst, etc.) |

Cloud Firestore

| Operation | Description | |-----------|-------------| | Create Document | Create a new document | | Get Document | Retrieve a document by ID | | List Documents | List documents in a collection | | Update Document | Update document fields | | Delete Document | Delete a document | | Query | Run structured queries with filters | | Batch Write | Execute multiple write operations atomically |

Authentication

| Operation | Description | |-----------|-------------| | Create User | Create a new user account | | Get User | Get user by UID | | Get User by Email | Get user by email address | | List Users | List all users with pagination | | Update User | Update user properties | | Delete User | Delete a user account | | Generate Password Reset Link | Create password reset email link | | Generate Email Verification Link | Create email verification link | | Set Custom Claims | Set custom claims on user | | Revoke Refresh Tokens | Revoke all refresh tokens |

Cloud Messaging (FCM)

| Operation | Description | |-----------|-------------| | Send Message | Send to a single device token | | Send Multicast | Send to multiple device tokens | | Send to Topic | Send to all topic subscribers | | Send to Condition | Send based on topic conditions | | Subscribe to Topic | Subscribe tokens to a topic | | Unsubscribe from Topic | Unsubscribe tokens from a topic |

Remote Config

| Operation | Description | |-----------|-------------| | Get Template | Get current config template | | Publish Template | Publish new template | | Rollback | Rollback to a previous version | | List Versions | List template version history | | Get Conditions | Get template conditions | | Get Parameters | Get template parameters |

Dynamic Links

| Operation | Description | |-----------|-------------| | Create Short Link | Create a short dynamic link | | Get Link Stats | Get click statistics for a link |

Cloud Storage

| Operation | Description | |-----------|-------------| | Upload | Upload a file to storage | | Download | Download a file from storage | | Delete | Delete a file from storage | | Get Metadata | Get file metadata | | Update Metadata | Update file metadata | | List Files | List files in a bucket/prefix |

Usage Examples

Read from Realtime Database

{
  "resource": "realtimeDatabase",
  "operation": "read",
  "path": "users/user123"
}

Create Firestore Document

{
  "resource": "firestore",
  "operation": "createDocument",
  "collectionId": "users",
  "documentId": "user123",
  "fields": {
    "name": "John Doe",
    "email": "[email protected]",
    "age": 30
  }
}

Send Push Notification

{
  "resource": "messaging",
  "operation": "sendMessage",
  "token": "device_fcm_token",
  "notification": {
    "title": "Hello",
    "body": "You have a new message!"
  },
  "data": {
    "type": "message",
    "id": "123"
  }
}

Create User

{
  "resource": "auth",
  "operation": "createUser",
  "email": "[email protected]",
  "password": "securePassword123",
  "displayName": "New User"
}

Firebase Concepts

Firestore Document Structure

Firestore stores data in documents organized into collections. Each document contains fields with values that can be strings, numbers, booleans, arrays, maps, timestamps, geopoints, or references.

FCM Message Types

  • Notification messages: Displayed automatically when app is in background
  • Data messages: Always handled by app code, regardless of state
  • Combined: Both notification and data payload

Remote Config Conditions

Conditions allow you to target specific users based on:

  • App version
  • Platform (iOS, Android, Web)
  • User properties
  • Random percentile
  • Country/Region

Error Handling

The node handles Firebase API errors and provides meaningful error messages:

| Error Code | Description | |------------|-------------| | 400 | Bad request - invalid parameters | | 401 | Unauthorized - check credentials | | 403 | Forbidden - insufficient permissions | | 404 | Not found - resource doesn't exist | | 409 | Conflict - resource already exists | | 429 | Rate limited - too many requests | | 500 | Server error - Firebase service issue |

Security Best Practices

  1. Use Service Accounts: Always use service account credentials for server-side operations
  2. Principle of Least Privilege: Grant only necessary permissions to service accounts
  3. Secure Key Storage: Store private keys securely, never commit to version control
  4. Database Rules: Implement proper Firebase Security Rules
  5. Input Validation: Validate all user inputs before database operations
  6. Token Rotation: Regularly rotate service account keys

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint
npm run lint

# Fix linting issues
npm run lint:fix

# Watch mode for development
npm run dev

Author

Velocity BPA

Licensing

This n8n community node is licensed under the Business Source License 1.1.

Free Use

Permitted for personal, educational, research, and internal business use.

Commercial Use

Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.

For licensing inquiries: [email protected]

See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

Acknowledgments

  • Firebase for providing comprehensive backend services
  • n8n for the workflow automation platform
  • The open-source community for inspiration and support