finds.dev← search

// the find

firebase/functions-samples

★ 12,220 · JavaScript · Apache-2.0 · updated Jun 2026

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase

Official Google-maintained collection of ~50 Cloud Functions for Firebase examples covering every trigger type: Firestore, Realtime Database, Auth, Storage, PubSub, HTTP. It's the first place you look when you're wiring up a Firebase function and want a working starting point rather than reading docs in isolation. Both Node (1st and 2nd gen) and Python (2nd gen) variants are included for most samples.

The trigger coverage is thorough — you'll find a working example for almost every Firebase event type without hunting through StackOverflow. The 1st-gen vs 2nd-gen split is handled cleanly with parallel directory trees, so migrating forward is a direct comparison. CI runs against all samples via GitHub Actions, which means the code actually runs rather than just looking right in a README. The auth samples (blocking functions, authorized HTTPS endpoints) show patterns that are easy to get wrong and the implementations here are correct.

The vast majority of samples still live under Node-1st-gen and most haven't been ported to 2nd-gen — if you're starting a new project today, you're often looking at deprecated patterns. Python support is marked public preview and the sample coverage is noticeably thinner than Node. Dependencies across the 50+ independent packages are not consistently up to date; several samples are pinned to old SDK versions that have breaking changes downstream. There's no cross-sample shared infrastructure, so you can't run any meaningful end-to-end flow across samples — each one is a standalone island with its own firebase.json and its own deploy.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →