Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/app

Package Overview
Dependencies
Maintainers
4
Versions
3372
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/app

The primary entrypoint to the Firebase JS SDK

  • 0.10.11-canary.2561b6306
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4M
decreased by-27.8%
Maintainers
4
Weekly downloads
 
Created

What is @firebase/app?

The @firebase/app package is the core module of the Firebase JavaScript SDK. It initializes and configures the Firebase app, allowing other Firebase services to be used in web and Node.js applications. It provides the necessary infrastructure to manage the communication between your app and Firebase services.

What are @firebase/app's main functionalities?

Initialization

This feature allows you to initialize your Firebase application using your project's configuration. The configuration includes keys and identifiers for your project.

import { initializeApp } from 'firebase/app';
const firebaseConfig = {
  apiKey: 'API_KEY',
  authDomain: 'PROJECT_ID.firebaseapp.com',
  projectId: 'PROJECT_ID',
  storageBucket: 'PROJECT_ID.appspot.com',
  messagingSenderId: 'SENDER_ID',
  appId: 'APP_ID'
};
const app = initializeApp(firebaseConfig);

Accessing Firebase Services

After initializing the Firebase app, you can access various Firebase services such as authentication and Firestore database by importing and initializing them with the app instance.

import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
const auth = getAuth(app);
const db = getFirestore(app);

Other packages similar to @firebase/app

FAQs

Package last updated on 18 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc