Open Source, localhost supported, Drop-in Replacement and Self-Hosted Alternative for Firebase using Node.js, Express.js, BetterAuth and PostgreSQL (JSONB), node-pg-migrate
Firebase π | Supabase π | Postbase β€οΈ
Demo Preact app is included !
Brand new project launched 02 Nov 2025, this is boiler plate but working! Expect heavy changes coming every few hours until stable
Mostly all code is ChatGPT generated but manually tested by human.
import { signIn } from './auth';
await signUp.email({
email: 'umrashrf@gmail.com',
password: 'secure-password',
name: 'Umair Ashraf',
callbackURL: "/dashboard",
});import { signIn } from './auth';
await signIn.email({
email: 'umrashrf@gmail.com',
password: 'secure-password',
callbackURL: '/dashboard',
});import { auth } from './auth';
auth.onAuthStateChanged(user => {
// user
auth.currentUser === user // true
});
const token = auth.currentUser.getIdToken();
// token for API authentication and rules engineimport { db } from "./postbase";
const data = await db.collection('users').doc('docId').get();
await db.collection('users').set({ name: "Umair" }, { merge: true });
const reference = db.collection('users')
.where('name', '==', 'Umair')
.orderBy('createdAt')
.limit(5);
const docs = await reference.get();
reference.onSnapshot(docs => {
// use docs
});- Firebase Functions Replacement (Backend API can be used for now)
- Firebase Storage Replacement (Support S3 and other backend)
- Testing
- Firebase Authentication Replacement
- Firebase Firestore Replacement
- Firebase Storage Replacement (Filebased Only)
- Firebase Storage Replacement (HTTPS Based Upload)
MIT