[FEATURE] Add Firebase as a Supported Data Source in preswald.toml
#527
Labels
enhancement
New feature or request
preswald.toml
#527
Goal
Enable developers to connect Firebase Realtime Database or Firestore as a data source in Preswald apps by defining it in the
[data]
section ofpreswald.toml
. This allows loading and visualizing cloud-hosted NoSQL data natively within a Preswald dashboard.📌 Motivation
Many teams use Firebase (Firestore or Realtime DB) to store analytics, user activity, IoT feeds, or configuration data. Adding native Firebase support will:
✅ Acceptance Criteria
type = "firebase"
in[data.*]
sections ofpreswald.toml
mode = "realtime"
)credentials_path
: path to Firebase service account key JSONproject_id
: Firebase projectcollection
(for Firestore) orpath
(for Realtime DB)get_df()
🛠 Implementation Plan
1. Example
preswald.toml
ConfigOr for Realtime DB:
2. Backend Code
firebase-admin
SDKpreswald/engine/managers/data.py
:🧪 Testing Plan
📚 Docs To Update
docs/configuration.mdx
→ Addtype = "firebase"
preswald.toml
snippet🧩 Related Files
preswald/engine/managers/data.py
preswald.toml
secrets.toml
firebase-admin
(pip install firebase-admin
)🔮 Future Ideas
The text was updated successfully, but these errors were encountered: