
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
firebase-where
Advanced tools
Ever wanted to search users, posts, or anything in a firebase with a "where" filter? So did we! That's why we made firebase-where. The easiest way to index and find your Firebase data. Oh, and it's pretty darn efficient at it too (only loads data which matches query and some indexing data)!
// Create a normal ref
var ref = new Firebase(URL);
// Set up our where (which will write to /_index in your Firebase
var firebaseWhere = new FirebaseWhere(ref);
// Add some children
firebaseWhere.child('users/abe').setWithIndex({username: 'abe', color: 'red', town: 'sf'});
firebaseWhere.child('users/joe').setWithIndex({username: 'joe', color: 'pink', town: 'bl'});
firebaseWhere.child('users/jacki').setWithIndex({username: 'jacki', color: 'pink', town: 'bl'});
// Watch for users who are in BL and whose color is pink.
firebaseWhere.onWithQuery("child_added", {town: 'bl', color: 'pink'}, function (snapshot) {
console.log(snapshot.val()); // Will trigger for Joe and Jacki
});
// Adding more children
firebaseWhere.child('users/nate').setWithIndex({username: 'nate', color: 'red', town: 'el'}); // Wont trigger event :(
firebaseWhere.child('users/becki').setWithIndex({username: 'becki', color: 'pink', town: 'bl'}); // Will trigger event :)
Although he did not directly work on firebase-where, all high-fives for this should go to Michael Wulf. Without his FirebaseIndex and his/Firebase's firebase-util libraries, this would have been an exponentially larger project.
Development of this library is sponsored by Rigidflame Consultants.
FAQs
Simple, efficient 'where' filtering in Firebase
We found that firebase-where demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.