# firebase/geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase

Repository: https://github.com/firebase/geofire-js
Canonical: https://ross.abutalabs.com/products/geofire-js
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-05-28T03:57:58+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 8, longevity 100
- inputs: {"age_days": 4725, "days_push": 97, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1447, forks 341 (observed 2026-08-28T04:04:45.408897+00:00)

## What it is
GeoFire is a lightweight JavaScript/TypeScript library that stores and queries keys by geographic location on top of the Firebase Realtime Database. It enables realtime geoqueries, returning only keys within a given radius as data changes.

## Use cases
- find nearby users in realtime with firebase
- store and query locations by radius
- build a realtime map of nearby drivers
- geo query keys within a geographic area
- location-based notifications as positions update
- add geolocation queries to a firebase app

## When to choose
- you use Firebase Realtime Database and need realtime location queries
- you want lightweight geo indexing without changing your existing data model
- you need selective loading of only nearby data for large datasets

## When to avoid
- you use Cloud Firestore instead of Realtime Database (use Firestore geoquery solutions)
- you need offline or non-Firebase geospatial storage
- you need advanced geospatial features like polygons or complex spatial indexes

## Facets
- artifact type: library
- maturity: active
- function: database, search-engine, sdk
- domain: databases, web-development
- platform: browser
- tags: geolocation, geoqueries, firebase, realtime-database, location-based-services, geohashing, maps, real-time, nodejs, javascript, web-server

## Member repositories
- firebase/geofire-js (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.408897+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:06.385443+00:00, confidence not recorded.
  - readme: https://github.com/firebase/geofire-js (fetched 2026-08-28T04:04:45.408897+00:00, sha b622926fbc26)
- Data as of 2026-08-30T08:39:29.467469+00:00.
