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

@datafire/google_firebaseremoteconfig

v6.0.0

Published

DataFire integration for Firebase Remote Config

Downloads

16

Readme

@datafire/google_firebaseremoteconfig

Client library for Firebase Remote Config

Installation and Usage

npm install --save @datafire/google_firebaseremoteconfig
let google_firebaseremoteconfig = require('@datafire/google_firebaseremoteconfig').create();

.then(data => {
  console.log(data);
});

Description

Firebase Remote Config API allows the 3P clients to manage Remote Config conditions and parameters for Firebase applications.

Actions

projects.getRemoteConfig

Get the latest version Remote Configuration for a project. Returns the RemoteConfig as the payload, and also the eTag as a response header.

google_firebaseremoteconfig.projects.getRemoteConfig({
  "project": ""
}, context)

Input

  • input object
    • project required string: The GMP project identifier. Required.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • bearer_token string: OAuth bearer token.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • pp boolean: Pretty-print response.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").

Output

projects.updateRemoteConfig

Update a RemoteConfig. We treat this as an always-existing resource (when it is not found in our data store, we treat it as version 0, a template with zero conditions and zero parameters). Hence there are no Create or Delete operations. Returns the updated template when successful (and the updated eTag as a response header), or an error if things go wrong. Possible error messages:

  • VALIDATION_ERROR (HTTP status 400) with additional details if the template being passed in can not be validated.
  • AUTHENTICATION_ERROR (HTTP status 401) if the request can not be authenticate (e.g. no access token, or invalid access token).
  • AUTHORIZATION_ERROR (HTTP status 403) if the request can not be authorized (e.g. the user has no access to the specified project id).
  • VERSION_MISMATCH (HTTP status 412) when trying to update when the expected eTag (passed in via the "If-match" header) is not specified, or is specified but does does not match the current eTag.
  • Internal error (HTTP status 500) for Database problems or other internal errors.
google_firebaseremoteconfig.projects.updateRemoteConfig({
  "project": ""
}, context)

Input

  • input object
    • body RemoteConfig
    • project required string: The GMP project identifier. Required.
    • validateOnly boolean: Optional. Defaults to false (UpdateRemoteConfig call should
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • bearer_token string: OAuth bearer token.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • pp boolean: Pretty-print response.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").

Output

Definitions

RemoteConfig

  • RemoteConfig object: *
    • conditions array: The list of named conditions. The order does affect the semantics.
    • parameters object: Map of parameter keys to their optional default values and optional submap

RemoteConfigCondition

  • RemoteConfigCondition object: A single RemoteConfig Condition. A list of these (because order matters) are
    • description string: DO NOT USE. Implementation removed and will not be added unless requested.
    • expression string: Required.
    • name string: Required.
    • tagColor string (values: CONDITION_DISPLAY_COLOR_UNSPECIFIED, BLUE, BROWN, CYAN, DEEP_ORANGE, GREEN, INDIGO, LIME, ORANGE, PINK, PURPLE, TEAL): Optional.

RemoteConfigParameter

  • RemoteConfigParameter object: While default_value and conditional_values are each optional, at least one of
    • conditionalValues object: Optional - a map of (condition_name, value). The condition_name of the
    • defaultValue RemoteConfigParameterValue
    • description string: Optional.

RemoteConfigParameterValue

  • RemoteConfigParameterValue object: A RemoteConfigParameter's "value" (either the default value, or the value
    • useInAppDefault boolean: if true, omit the parameter from the map of fetched parameter values
    • value string: the string to set the parameter to