
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@firebase/database
Advanced tools
This is the realtime database component for the Firebase JS SDK. It has a peer dependency on the [`@firebase/app`](https://npm.im/@firebase/app) package on NPM. This package is included by default in the [`firebase`](https://npm.im/firebase) wrapper packa
This is the realtime database component for the Firebase JS SDK. It has a peer
dependency on the @firebase/app package on NPM. This package
is included by default in the firebase wrapper
package.
You can install this package by running the following in your project:
$ npm install @firebase/database
You can then use the firebase namespace exposed by this package as illustrated below:
ES Modules
import firebase from '@firebase/app';
import '@firebase/database'
// Do stuff w/ `firebase` and `firebase.database`
CommonJS Modules
const firebase = require('@firebase/app').default;
require('@firebase/database');
// Do stuff with `firebase` and `firebase.database`
For comprehensive documentation please see the Firebase Reference Docs.
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.
FAQs
This is the Firebase Realtime Database component of the Firebase JS SDK.
The npm package @firebase/database receives a total of 4,000,084 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.