BackendBase

Firebase-like Realtime Database for cPanel — JSON storage, token-based auth, Firebase-style SDK.

// Create project → copy "Client Config" from dashboard
{
  "project_info": { "project_id": "my-app-8f3a2c", "firebase_url": "https://yoursite.com" },
  "client": [{ "api_key": [{ "current_key": "AIzaSy..." }] }],
  "configuration_version": "1"
}

// ⚡ No password needed — user token auth (APK-safe)

Features

🔐

Token-Based Auth

Register users per-project. APK-safe tokens (no password in app). Data accessed via .vo endpoint with ?auth=token.

📦

JSON File Storage

Data stored as structured JSON files on cPanel. No MySQL, no setup — just upload and use.

Realtime Sync

Subscribe with on('value'). Changes push to all connected clients instantly via long-polling.

🔌

Firebase-like SDK

Familiar API: ref(), set(), push(), update(), remove(), once(), on().

📊

Admin Dashboard

Create projects, get Firebase-style config, browse data, all from the web dashboard.

🚀

cPanel Ready

Just upload to public_html. No npm, no build step, no database — PHP + JSON only.

Quick Start

<!-- Include SDK -->
<script src="sdk/firebase.js"></script>

// Initialize with your client config (no password)
var config = {
  "project_info": { "project_id": "my-app-abc123", "firebase_url": "https://yoursite.com" }
};
var app = BackendBase.initializeApp(config);
var db = app.database();
var auth = app.auth();

// Register/login user (APK-safe, token stored automatically)
auth.createUserWithEmailAndPassword("user@email.com", "password", function(err, user) {
  db.ref('/users/1').set({ name: "Alice", age: 30 });
});

// All DB requests use the auth token automatically
// Token persists across page refresh (localStorage)