firebase-js-sdk
postgrest
| firebase-js-sdk | postgrest | |
|---|---|---|
| 89 | 117 | |
| 5,052 | 26,263 | |
| 0.5% | 1.3% | |
| 9.3 | 9.6 | |
| 6 days ago | 5 days ago | |
| TypeScript | Haskell | |
| GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
firebase-js-sdk
- Firebase Auth Duplicate Email Error: How to Fix It Step-by-Step
Even though Firebase Auth is supposed to prevent duplicate emails automatically, I was still seeing duplicates. After digging through GitHub issues and Reddit discussions, I realized this problem has been around for a while.
- React-Native + Web + Firebase (Part 02) β Implement React Native Firebase cross-app
import { initializeApp } from 'firebase/app'; import { initializeAuth } from 'firebase/auth'; // Firebase JS SDK work with expo web // for more information: https://docs.expo.dev/guides/using-firebase/#using-firebase-js-sdk // Initialize Firebase const firebaseConfig = { apiKey: process.env.EXPO_PUBLIC_FIREBASE_API_KEY, authDomain: process.env.EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN, // databaseURL: process.env.EXPO_PUBLIC_FIREBASE_DATABASE_URL, projectId: process.env.EXPO_PUBLIC_FIREBASE_PROJECT_ID, storageBucket: process.env.EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET, messagingSenderId: process.env.EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID, appId: process.env.EXPO_PUBLIC_FIREBASE_APP_ID, measurementId: process.env.EXPO_PUBLIC_FIREBASE_MEASUREMENT_ID, }; let firebaseApp: ReturnType; let auth: ReturnType; try { firebaseApp = initializeApp(firebaseConfig); auth = initializeAuth(firebaseApp); auth.useDeviceLanguage(); } catch (error) { console.error("Error initializing Firestore:", (error as any).message); console.error("Error Stack:", (error as any).stack); console.error("Error Details:", error); } export { auth, firebaseApp }; // To apply the default browser preference instead of explicitly setting it. // For more information on how to access Firebase in your project, // see the Firebase documentation: https://firebase.google.com/docs/web/setup#access-firebase
- [React] Passing environment variables to service workers
// public/firebase-messaging-sw.js // Give the service worker access to Firebase Messaging. // Note that you can only use Firebase Messaging here. Other Firebase libraries are not available in the service worker. importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-messaging.js'); // Initialize the Firebase app in the service worker by passing in your app's Firebase config object. // https://firebase.google.com/docs/web/setup#config-object firebase.initializeApp({ apiKey: 'api-key', authDomain: 'project-id.firebaseapp.com', databaseURL: 'https://project-id.firebaseio.com', projectId: 'project-id', storageBucket: 'project-id.appspot.com', messagingSenderId: 'sender-id', appId: 'app-id', measurementId: 'G-measurement-id', }); // Retrieve an instance of Firebase Messaging so that it can handle background messages. const messaging = firebase.messaging();
- Phone Otp login using react Js
// Import the functions you need from the SDKs you need import { initializeApp } from "firebase/app"; import { getAuth } from "firebase/auth"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries // Your web app's Firebase configuration const firebaseConfig = { apiKey: "AIzaSyDs5ConzFDM2yGvweN-sZdAPFAlowyCDhE", authDomain: "reactmoviepp.firebaseapp.com", projectId: "reactmoviepp", storageBucket: "reactmoviepp.appspot.com", messagingSenderId: "719848561957", appId: "1:719848561957:web:254facecfb591921474ecc", }; // Initialize Firebase const app = initializeApp(firebaseConfig); export const auth = getAuth(app);
- Biometric web authentication into Firebase in mins ππ
- Passkeys into firebase ππ
**Add Firebase to Your Project**: If you havenβt done so already, you need to add Firebase to your project. You can follow the steps in this [link](https://firebase.google.com/docs/web/setup) to get started π.
- Yr old bug in Firebase JavaScript SDK that leaks 2 event listeners a second
- There's an almost 5-year-old bug in the Firebase js SDK that leaks 2 event listeners every second
- Need help developers
// Import the functions you need from the SDKs you need import { initializeApp, getApp, getApps } from "firebase/app"; import { getAnalytics } from "firebase/analytics"; import { getFirestore, gitFireStore } from "firebase/firestore"; import { getStorage } from "firebase/storage"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries // Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY, authDomain: "twitter-v1-6a0d8.firebaseapp.com", projectId: "twitter-v1-6a0d8", storageBucket: "twitter-v1-6a0d8.appspot.com", messagingSenderId: "334598974996", appId: "1:334598974996:web:a16f62518c1c5af1044101", measurementId: "G-Y5F3Q3QG2X", }; // Initialize Firebase const app = !getApps().length ? initializeApp(firebaseConfig) : getApp(); const db = getFirestore(); const storage = getStorage(); const analytics = getAnalytics(app); export { app, db, storage };
- ReactNative Expo File Based Routing with Firebase Authentication
Auth persistence Issue Firebase SDK - https://github.com/firebase/firebase-js-sdk/issues/6050
postgrest
- PostgREST vs RESTHeart
Documentation: https://postgrest.org/
- GHC Now Runs in the Browser
- I Switched from Htmx to Datastar
> I was tired of writing backend APIs with the only purpose that they get consumed by the same app's frontend (typically React).
PostgREST is great for this: https://postgrest.org
I run 6 React apps in prod, which used to consume APIs built with Flask, Django and FastAPI. Now they all consume APIs from PostgREST, I no longer write APIs. I define SQL views for the tables I want to expose, and optionally a bunch of SQL grants and SQL policies if I have different roles in the app, and PostgREST automatically transforms the views into endpoints, adds all the CRUD + UPSERT capabilities, handle the permissions, filtering, ordering, returning, pagination, and so on.
- Supabase MCP leaks your entire SQL Database, a lethal trifecta attack
I think I know what you're talking about because I ran into this too. In defense of Supabase, you can still use transactions in other ways. Transactions through the client are messy and not easily supported by PostgREST.
The GitHub issue here sums up the conversation about this:
https://github.com/PostgREST/postgrest/issues/286
So... your comment is a bit disingenuous. Regardless of Hacker News's thoughts on MCP servers, there is a cohort of users that are finding them to be immensely useful. Myself included.
- Generate an OpenAPI From Your Database
This is especially helpful because Supabase uses PostegREST under the hood, which does not support OpenAPI 3.x. Note that some Postgres specific features like enums are not converted to JSON Schema enums as Sequelize doesn't expose that information.
- Automatically Generate REST and GraphQL APIs From Your Database
PostgREST stands out as the leading solution for PostgreSQL databases. It turns your database directly into a RESTful API with minimal configuration. The tool automatically creates endpoints for tables and views, supports complex filters, and leverages PostgreSQL's row-level security for fine-grained access control. If you'd like to see this in action, check out our Neon PostgresQL sample.
- Top FP technologies
PostgREST
- What I Learned from Making the Python Back End for My New Webapp
> I don't really see how the validation schema and ORM model would ever really diverge...
If that were the case, then using a PostgreSQL API[0] that maps tables to APIs would be all that's required.
However, the real world is messy. Requirements change, which could lead the project becoming a reimplementation of full framework such as Django.
Django also comes with generic REST endpoints based on models thus giving you the magic, but still allows for all the different use cases and customizations that might present themselves during the full lifecycle of a project.
[0]https://github.com/PostgREST/postgrest
- PostgREST 12.2: Prometheus metrics
PostgREST 12.2 is out! It comes with Observability and API improvements. In this post, we'll see what's new.
- PostgREST β Serve a RESTful API from Any Postgre Database
What are some alternatives?
better-sse - β¬ Dead simple, dependency-less, spec-compliant server-sent events implementation written in TypeScript
Hasura - Blazing fast, instant realtime GraphQL APIs on all your data with fine grained access control, also trigger webhooks on database events.
firebase-admin-node - Firebase Admin Node.js SDK
swagger2 - Swagger 2.0 data model.
quickstart-android - Firebase Quickstart Samples for Android
supabase - The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.