I built a self-hosted backend that works with the official Firebase SDKs
Описание и применение
Aruma позволяет использовать официальные SDK Firebase без изменений кода, заменяя сервер на собственный VPS с PostgreSQL.
Задача
Developers want to keep using Firebase SDKs but host data on their own server to avoid vendor lock‑in and unpredictable billing.
Результат
Aruma allows existing Firebase‑SDK‑based apps to run on a self‑hosted server with PostgreSQL, preserving authentication, Realtime Database, Security Rules, Cloud Storage, and a release‑candidate Firestore implementation.
Рабочий процесс
- 1. Clone the Aruma repo and build the dashboard and dev server.
- 2. Run the server; it outputs a one‑time setup code.
- 3. Open localhost:8080, enter the code, create an account and a project.
- 4. Download the generated config file and replace the Firebase config in the client app.
- 5. The app now talks to Aruma while using the same Firebase SDKs.
- 6. Verify functionality with official Firebase test suites and real Firebase for parity.
Доказательства
I didn't want emulator mode for this. Emulator mode means adding connect-to-emulator calls to your code, which is exactly the kind of change I was trying to avoid.
The code in your app doesn't change: // Plain Firebase JS SDK. Nothing Aruma-specific here.
Authentication, Realtime Database, Security Rules, Cloud Storage, Firestore (release candidate, more on that below)
If you've thought about leaving Firebase, which service would be the one that blocks you?
- Дата записи: 2026-11-02T07:28:44.839Z