npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rawdash/connector-firebase-crashlytics

v0.27.0

Published

Rawdash connector for Firebase Crashlytics - syncs daily crash counts, crash-free user rate, and top issues from the Crashlytics -> BigQuery export

Readme

@rawdash/connector-firebase-crashlytics

npm version license

Track mobile app reliability over time from the Firebase Crashlytics -> BigQuery export: daily crashes, crash-free user rate, and top issues by impact.

Install

npm install @rawdash/connector-firebase-crashlytics

Authentication

Authenticate against the BigQuery API with a Google service account JSON key. The service account needs the BigQuery Data Viewer role on the Crashlytics export dataset and the BigQuery Job User role on the project that runs the queries.

  1. Enable the Firebase Crashlytics -> BigQuery export in the Firebase console (Project Settings -> Integrations -> BigQuery). This is a manual one-time setup per project; data starts flowing into the firebase_crashlytics dataset within a day.
  2. Create a service account at Google Cloud -> IAM & Admin -> Service Accounts in the same project (or grant an existing one access).
  3. Grant the service account roles/bigquery.dataViewer on the Crashlytics dataset (so it can read the export tables) and roles/bigquery.jobUser on the project (so it can run query jobs).
  4. Generate a JSON key for the service account and store its contents as a secret (e.g. FIREBASE_SA_JSON).
  5. Reference the key from config as serviceAccountJson: secret("FIREBASE_SA_JSON") and set projectId to the Firebase project that owns the export.

Configuration

| Field | Type | Required | Description | | -------------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | serviceAccountJson | secret | Yes | Contents of the JSON key file for a Google service account with the role required by this connector. Create one at Google Cloud -> IAM & Admin -> Service Accounts and store the JSON as a secret. | | projectId | string | Yes | Project that hosts the Firebase Crashlytics -> BigQuery export (also the project used to bill the BigQuery queries this connector runs). | | bqDataset | string | No | BigQuery dataset containing the Crashlytics export tables. Defaults to firebase_crashlytics (the default name Firebase uses when you enable the export). | | bqLocation | string | No | Region or multi-region of the Crashlytics dataset (e.g. US, EU, us-central1). Defaults to US. | | lookbackDays | number | No | How many days of history to query on a full sync. Defaults to 90. | | topIssuesLimit | number | No | How many top issues to retain per sync, ranked by event count over the backfill window. Defaults to 50. |

Resources

  • crashes_per_day (metric) - Daily crash counts and approximate crash-free user rate per (date, application version, platform). One sample per day per app/version/platform combination present in the Crashlytics BigQuery export.
    • Endpoint: POST /bigquery/v2/projects/{projectId}/queries
    • Unit: crashes
    • Granularity: daily
    • Dimensions: app_id, platform, version, crash_free_user_rate, crashing_users
    • Reads from firebasecrashlytics._* via a wildcard. The trailing 2 days are always refetched on incremental syncs to pick up streamed rows.
  • top_issues (entity) - Top crash issues by event count over the backfill window, ranked across all apps and versions present in the export. One entity per Crashlytics issue id.
    • Endpoint: POST /bigquery/v2/projects/{projectId}/queries
    • topIssuesLimit caps how many issues are retained per sync (default 50). Rows are sorted by descending event count over the backfill window.
    • issue_id: Stable Crashlytics issue identifier.
    • title: Issue title (most recent value seen for this issue id within the window).
    • subtitle: Issue subtitle (most recent value seen for this issue id within the window).
    • app_id: Bundle identifier (iOS) or package name (Android) most recently seen for this issue.
    • platform: Application platform (ios, android, or unknown).
    • event_count: Total crash events attributed to this issue within the backfill window.
    • user_count: Distinct users that experienced this issue within the backfill window.
    • last_seen: ISO timestamp of the most recent event for this issue within the window.

Example

import {
  defineConfig,
  defineDashboard,
  defineMetric,
  secret,
} from '@rawdash/core';

const crashlytics = {
  name: 'crashlytics',
  connectorId: 'firebase-crashlytics',
  config: {
    serviceAccountJson: secret('FIREBASE_SA_JSON'),
    projectId: 'my-firebase-project',
    bqDataset: 'firebase_crashlytics',
    bqLocation: 'US',
    lookbackDays: 90,
    topIssuesLimit: 50,
  },
};

export default defineConfig({
  connectors: [crashlytics],
  dashboards: {
    mobile: defineDashboard({
      widgets: {
        crashes: {
          kind: 'stat',
          title: 'Crashes (last 7d)',
          metric: defineMetric({
            connector: crashlytics,
            shape: 'metric',
            name: 'crashes_per_day',
            fn: 'sum',
          }),
        },
      },
    }),
  },
});

Rate limits

BigQuery jobs.query is rate-limited per project; standard 429 / RESOURCE_EXHAUSTED responses are retried with backoff. Each connector sync runs one query per resource.

Limitations

  • Requires the Firebase Crashlytics -> BigQuery export to be configured in the Firebase console; that step is manual and one-time per project, and only days after the configuration date are present in the export.
  • Reads the firebasecrashlytics. tables via a wildcard; one row in storage covers one app/version/platform tuple per day.
  • Crash-free user rate is approximated from the daily ratio of unique crashing users to total event users observed in the export; matching the Firebase console number exactly requires the full Crashlytics signal, not just the BigQuery export.
  • Each BigQuery query is billed against the configured projectId; over long lookback windows the cost adds up. Prefer once-a-day syncs and reasonable lookbackDays.
  • The Crashlytics BigQuery export is streamed; the trailing 2 days are always refetched on incremental syncs to pick up late-arriving rows.

Links

License

Apache-2.0