Skip to content

Firebase JS SDK API using Firebase REST API under the hood instead of WebSockets.

License

Notifications You must be signed in to change notification settings

jahed/firebase-rest

Repository files navigation

@jahed/firebase-rest

npm author

Firebase JS SDK API using Firebase REST API under the hood instead of WebSockets.

Installation

npm install @jahed/firebase-rest

Usage

import firebase from "firebase/compat/app";
import { createFirebaseREST } from "@jahed/firebase-rest";

// Provide the Firebase app to createFirebaseREST.
const firebaseREST = createFirebaseREST(
  firebaseApp.initializeApp({
    apiKey: "",
    authDomain: "",
    databaseURL: ""
  })
);

// Use firebaseREST to access REST APIs instead of WebSockets.
const snapshot = await firebaseREST.database().ref("/data").get();
console.log(snapshot.val());

License

Copyright (C) 2025 Jahed Ahmed

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

Firebase JS SDK API using Firebase REST API under the hood instead of WebSockets.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •