Minimal Firebase
The current firebase.js download is 210k. Minified it's down to 132k. And add in gzip compression to get it to 44k.
Firebase has a ton of features, but many times you don't need all of them. This project aims to be a minimal, not full-featured implementation of the Javascript SDK through use of the REST API.
At its core, The main goal is to have a quick way to simply load and query data from your firebase.
Comparing to the sizes above, it is currently 5.7k, 2.8k, and 1.4k.
Features
| Feature | Supported | Unsupported |
Usage
- Include MinimalFirebase:
- Use it:
# setup your minimal firebase firebase_root = "https://minimal-firebase.firebaseio.com"firebase = firebase_root # get refs child = firebasechild "some_key"parent = childparentconsolelog "child.path = "consolelog "child.key = " # load data childonce consolelog "child value = "childonce shallow: true consolelog "child shallow value"valuechildonce format: 'export' consolelog "child value with priorities"value # load data synchronously value = childonce # authenticate user = firebasegetAuthfirebasecreateUser 'hello@test.com''world' consolelog useruidfirebaseauthWithPassword 'hello@test.com''world' consolelog useruidfirebaseauthAnonymously consolelog userprovider