npm function kit deploys Cloud Functions that mirror Firestore collections into Typesense for fuzzy full-text search, faceting, and filters.
Overview
Firestore Typesense Search is a Firebase function kit that keeps Typesense indexes aligned with Firestore. Cloud Functions listen to configured collection paths and create, update, or delete Typesense documents when Firestore data changes. A separate backfill function loads existing Firestore data into Typesense after deploy.
Search capabilities come from Typesense: typo-tolerant full-text search, faceting, filtering, sorting, curation, synonyms, and geosearch on data that otherwise lives in Firestore. One install can sync multiple collections into separate Typesense collections, including subcollection paths with placeholders.
Setup expects firebase-tools, an existing Typesense collection schema, and environment configuration written by the kit CLI. Operators deploy from the Firebase project directory and can adjust .env before redeploying. The kit connects to Typesense over HTTPS; self-hosted Typesense needs TLS on port 443 or a tunnel for local development.
The package replaced an earlier Firebase Extension distribution and ships as typesense-firestore-search for teams managing their own Firebase and Typesense infrastructure.
Key features
- Realtime Firestore-to-Typesense sync
- Multi-collection configuration
- Subcollection path placeholders
- Optional field lists per collection
- Backfill via Firestore trigger document
- HTTPS Typesense connectivity
- Nested document flattening option
- Secret Manager for API keys
Use cases
- Full-text search on Firestore data
- Faceted product or user catalogs
- Search after Firebase-centric apps
- Migrating off limited Firestore queries
Open-source alternative to
Algolia“Think of it as an open source alternative to Algolia and an easier-to-use, batteries-included alternative to ElasticSearch.” source