A lightweight serializer/deserializer for converting between plain JSON objects and Firestore REST API's Document format. Version 1.0.5, stable, no dependencies. Essential for backend functions needing to trigger Firestore security rules via REST with user ID tokens, which the Admin SDK cannot do. Unlike the official Firebase SDK, this module is minimal and framework-agnostic, focusing solely on field conversion.
npm install firestore-rest-serdesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic serialization and deserialization between plain JSON and Firestore REST Document fields.
Manually handle unsupported types using Firestore REST API types before serialization.
Extract the fields property from a Document before calling deserialize.
Use BigInt or string for numbers outside Number.MAX_SAFE_INTEGER, but they will be serialized as doubleValue.
Use 'import { serialize } from 'firestore-rest-serdes'Use named imports: import { serialize, deserialize } from 'firestore-rest-serdes'Convert Date objects to strings or timestamps before serialization.
No dependency data recorded yet.