Firemigrate
An open-source CLI tool for migrating data from Firebase Firestore to PostgreSQL.
Firemigrate is an open-source command-line interface (CLI) tool I built to simplify database migration from Firebase Firestore to PostgreSQL. It helps developers inspect their existing Firebase data, understand its structure, prepare a relational schema, and migrate data with greater visibility and control.
The tool follows an "Inspect first. Write last." approach, prioritizing data inspection and migration planning before making changes to the target database. Developers can inspect Firestore collections, field types, subcollections, Firebase Authentication users, and Cloud Storage metadata before proceeding with migration.
Key features include automated project initialization, Firestore data inspection, PostgreSQL schema generation, table planning, dry-run migration previews, controlled write operations, and post-migration verification using row counts. These features help developers understand what will happen before committing data to PostgreSQL.
Firemigrate also provides predictable handling for nested Firestore subcollections by mapping them to separate PostgreSQL tables. Firebase Authentication records and Cloud Storage metadata are documented and handled within the tool's migration workflow, with clear limitations around what is migrated automatically.
Built for developers transitioning from Firebase to PostgreSQL, Firemigrate is open source under the MIT license and designed to make database migrations more transparent, structured, and manageable.
Package: @ezekielreu6/firemigrate