finds.dev

firebase/functions-samples

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

View on GitHubHomepage ↗

★ 12,220JavaScriptApache-2.0updated Jun 2026

// the take

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.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
12,220
Forks
3,844
Language
JavaScript
License
Apache-2.0
Last commit
13 Jun 2026

// nearby

If functions-samples isn't quite it.

All repos →