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 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-firebase-realtime-db

v0.2.29

Published

A better Firebase Realtime Database node for n8n

Readme

Firebase Realtime Database for n8n

Community node that makes working with Google Firebase Realtime Database simple from n8n. It supports reading, creating, updating, setting, and deleting data, with typed value inputs, optional query parameters, atomic (ETag) writes, and convenient return modes.

Install

  • In n8n, go to: Settings → Community Nodes → Install
  • Package name: n8n-nodes-firebase-realtime-db

Credentials

This node reuses the built-in credential:

  • Google Firebase Realtime Database OAuth2 (googleFirebaseRealtimeDatabaseOAuth2Api)

Scopes typically required:

  • https://www.googleapis.com/auth/firebase.database
  • https://www.googleapis.com/auth/userinfo.email

Parameters (common)

  • Database URL: Base URL of your database (no trailing slash), e.g. https://your-db.firebaseio.com or https://your-db-default-rtdb.firebaseio.com
  • Path: JSON path inside the database, e.g. /users/123 (leading slash allowed)

Operations

Get

Reads data at the given path.

  • Query (optional collection):
    • Order By (string)
    • Equal To (string)
    • Start At (string)
    • End At (string)
    • Limit To First (number)
    • Limit To Last (number)
    • Shallow (boolean)

Note: Order By, Equal To, Start At, and End At are automatically JSON-encoded as required by the Firebase REST API.

Push (POST)

Creates a new child under the path with an auto-generated key.

Body source:

  • Use Input Item JSON (boolean): when enabled, the incoming item’s json is used as the request body.
  • Otherwise, use Fields (repeatable) to build the JSON object:
    • Key (string)
    • Value Type (options): Auto, String, Number, Boolean, Array, Object, Server Timestamp
    • Typed value input matching the chosen type (e.g., Value (String), Value (Number), etc.)

Return:

  • Default: Firebase response
  • Key Only (Push): returns { key: <generatedKey> }
  • Silent (No Body): adds print=silent to reduce payload

Set (PUT)

Replaces the value at the path.

  • Body source: same as Push (Use Input Item JSON or Fields)
  • Atomic Write (ETag) (optional):
    • ETag Source: Auto Fetch or From Input (ETag)
    • Max Retries and Retry Delay (ms): on HTTP 412 (precondition failed), re-fetch ETag and retry
  • Return: Default or Silent

Update (PATCH)

Updates one or more properties at the path.

  • Body source: same as Push (Use Input Item JSON or Fields)
  • Supports dot-path keys for nested updates
  • Atomic Write (ETag) (optional): same as Set
  • Return: Default or Silent

Delete (DELETE)

Removes the value at the path.

  • Return: Default or Silent

Examples

1) Push a new user and return the key

  • Operation: Push
  • Path: /users
  • Fields → Add:
    • Key: name, Value Type: String, Value (String): Alice
    • Key: createdAt, Value Type: Server Timestamp
  • Return: Key Only (Push)

Result: { key: "-Nx..." } stored under item.json.firebase.

2) Update lastLogin with server time

  • Operation: Update
  • Path: /users/123
  • Fields → Add: Key: lastLogin, Value Type: Server Timestamp

3) Get users by age with a limit

  • Operation: Get
  • Path: /users
  • Query → Add Parameter:
    • Order By: age
    • Equal To: 30
    • Limit To First: 10

Notes & Tips

  • Keys in Fields can be dot-paths (e.g., profile.name) to target nested values.
  • For multi-location updates, use Update with appropriate dot-path keys.
  • Use Silent return to reduce bandwidth when you don’t need the response body.
  • For conditional/transactional-style writes, enable Atomic Write (ETag) on Set/Update.

Development

Local scripts:

  • npm run lint – lint the node
  • npm run build – compile TypeScript
  • release-patch.ps1 – PowerShell helper to lint → build → version patch → publish

License

MIT