
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@firebase/performance
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
The @firebase/performance package is part of the Firebase suite, designed to help developers collect and analyze performance metrics of their web and mobile applications. It provides automatic and custom tracing capabilities that allow developers to measure the performance of their applications in real-time.
Automatic Tracing
Automatic tracing automatically collects performance data about your app's most common tasks. This feature requires no additional code after initialization and helps in monitoring performance out-of-the-box.
import { getPerformance } from 'firebase/performance';
const perf = getPerformance();
// Automatic traces are started and stopped by Firebase itself.
Custom Tracing
Custom tracing allows developers to manually define specific parts of their application to measure performance metrics. This is useful for measuring performance of custom operations not automatically traced by Firebase.
import { getPerformance, trace } from 'firebase/performance';
const perf = getPerformance();
const myTrace = trace(perf, 'customTraceName');
myTrace.start();
// Code to trace
myTrace.stop();
Network Request Performance
This feature automatically captures performance metrics of network requests made by the application. It helps in understanding the time taken by the app to make and complete requests, and to optimize them if necessary.
import { getPerformance } from 'firebase/performance';
const perf = getPerformance();
// Network performance data is automatically collected and available in the Firebase console.
New Relic is a powerful performance monitoring tool that offers extensive features for application performance monitoring (APM). Unlike @firebase/performance, which is tightly integrated with Firebase services, New Relic provides a broader range of monitoring capabilities across different platforms and services.
Datadog Real User Monitoring (RUM) captures real-time data from actual users to provide insights into application performance. While @firebase/performance focuses on Firebase applications, Datadog RUM supports a wider array of environments and integrates with a variety of backend systems.
This is the Firebase Performance 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
Firebase performance for web
The npm package @firebase/performance receives a total of 2,425,724 weekly downloads. As such, @firebase/performance popularity was classified as popular.
We found that @firebase/performance 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.