Fireblaze is a schema migration tool for Firestore, forked from the unmaintained fireway. Current stable version is 1.4.0. It provides a CLI for managing Firestore schema changes with deterministic migration ordering using semantic versioning. Supports JavaScript, TypeScript (via ts-node), and JSDoc-typed migrations. Key differentiators include async migration support, dry-run mode, emulator compatibility, and typed migration options. Release cadence is low; last update was in early 2024.
npm install fireblazeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a minimal migration: export a migrate function using the injected Firestore instance.
Update Node.js to 18+ and firebase-admin to 11+.
Use module.exports.migrate = async ... instead of export function migrate.
Rename migration files to match the pattern v<semver>__<description>.js.
Add "ts-node": { "compilerOptions": { "module": "commonjs" } } to tsconfig.Run export FIRESTORE_EMULATOR_HOST="localhost:8080" before migrating locally.
Install ts-node as a dev dependency: npm install --save-dev ts-node
Rename to 'v1.0.0__init.js' (include patch version 0 and double underscore).
Fireblaze is a CLI tool; run `npx fireblaze migrate` from terminal, not in code.