@jahed/firebase-rest
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@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/.

Package Sidebar

Install

npm i @jahed/firebase-rest

Weekly Downloads

24

Version

0.0.6

License

AGPL-3.0-or-later

Unpacked Size

66.2 kB

Total Files

7

Last publish

Collaborators

  • jahed
  • jahed-ci