I built Flame to clarify and reduce model, serialization, authorization, validation, query, and paging code in my projects. In large projects, I've found Flame reduces my Firestore related code by around 90% compared to using firebase-admin directly in each API/Lambda/Function endpoint.
After re-designing the library more than once over the past few years, I've finally put together some docs and published to npm+yarn+etc.
Let me know if you have any questions or suggestions.