![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
@firebase/database
Advanced tools
Package description
The @firebase/database package is a client library for Firebase Realtime Database, a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. It offers APIs that allow developers to easily store and sync data across multiple clients and platforms.
Realtime Data Syncing
This feature allows you to listen for and receive data in realtime from the Firebase database. Whenever data changes, the event is triggered and the callback function is executed with the updated data.
firebase.database().ref('/path/to/data').on('value', (snapshot) => {
const data = snapshot.val();
console.log(data);
});
Data Writing
Enables you to write data to a specified path in your Firebase database. This can be used to add new data or overwrite existing data at the path.
firebase.database().ref('/path/to/data').set({
username: 'name',
email: 'email@example.com',
profile_picture : 'imageUrl'
});
Data Reading
Allows you to read data from your Firebase database. This method fetches data once without listening for changes.
firebase.database().ref('/path/to/data').once('value').then((snapshot) => {
const data = snapshot.val();
console.log(data);
});
Data Deleting
This feature enables you to delete data from your Firebase database at a specified path.
firebase.database().ref('/path/to/data').remove();
PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the browser. It allows you to store data locally while offline, then synchronize it with CouchDB and compatible servers when the application is back online, similar to the realtime syncing capabilities of @firebase/database.
Realm is a mobile database that runs directly inside phones, tablets or wearables. It offers realtime and offline data storage/syncing. Realm differs from @firebase/database in that it's more focused on local storage, but it also supports syncing data with the cloud.
RxDB (Reactive Database) is a realtime NoSQL database for JavaScript Applications. It supports reactive data queries so you can program in a reactive style. This is similar to @firebase/database's realtime data syncing but RxDB uses a different approach, focusing on the reactive programming paradigm.
Readme
This is the Firebase Realtime Database component of the Firebase JS SDK.
This package is not intended for direct usage, and should only be used via the officially supported firebase package.
FAQs
This is the Firebase Realtime Database component of the Firebase JS SDK.
The npm package @firebase/database receives a total of 2,473,647 weekly downloads. As such, @firebase/database popularity was classified as popular.
We found that @firebase/database demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.