Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase
This report summarizes scanner evidence for firebase/functions-samples, a JavaScript project with 12,210 GitHub stars. SynthScan examined 335,537 lines of code across 700 source files, recording 76 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 71 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 16 finding(s).
Which changes need focused human review? 76 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 76 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Python/pyproject.toml | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/pyfmt.py | 1 | """Utility to format Python source files for Firebase docs.""" | COMMENT |
| LOW | Python/alerts-to-discord/functions/main.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | Python/taskqueues-backup-images/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/post-signup-event/functions/main.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | Python/testlab-to-slack/functions/main.py | 1 | # Copyright 2022 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/http-flask/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/remote-config-diff/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/delete-unused-accounts-cron/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/thumbnails/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …/quickstarts/auth-blocking-functions/functions/main.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | Python/quickstarts/uppercase-rtdb/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …thon/quickstarts/firestore-sync-auth/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …thon/quickstarts/firestore-sync-auth/functions/main.py | 41 | # add auth medadata to the document | COMMENT |
| LOW | Python/quickstarts/callable-functions/functions/main.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | …thon/quickstarts/uppercase-firestore/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/quickstarts/https-time-server/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | Python/quickstarts/https-time-server/functions/main.py | 21 | # [END functionsimport] | COMMENT |
| LOW | Python/quickstarts/https-time-server/functions/main.py | 41 | # [START usingMiddleware] | COMMENT |
| LOW | Python/quickstarts/custom-events/functions/main.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | Python/quickstarts/custom-events/functions/main.py | 61 | # [END_EXCLUDE] | COMMENT |
| LOW | Python/quickstarts/pubsub-helloworld/functions/main.py | 1 | # Copyright 2023 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …ickstarts/callable-functions-streaming/bin/server.dart | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | Dart/quickstarts/callable-functions/bin/server.dart | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | Dart/quickstarts/https-time-server/bin/server.dart | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | Dart/quickstarts/https-time-server/bin/server.dart | 21 | import 'package:intl/intl.dart'; | COMMENT |
| LOW | Dart/codelab-dart-functions/analysis_options.yaml | 1 | # This file configures the analyzer, which statically analyzes Dart code to | COMMENT |
| LOW | Dart/codelab-dart-functions/analysis_options.yaml | 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file | COMMENT |
| LOW | …b-dart-functions/packages/shared/analysis_options.yaml | 1 | # This file configures the static analysis results for your project (errors, | COMMENT |
| LOW | …b-dart-functions/packages/shared/analysis_options.yaml | 21 | COMMENT | |
| LOW | Node-1st-gen/template-handlebars/functions/index.js | 41 | // This HTTPS endpoint can only be accessed by your Firebase Users. | COMMENT |
| LOW | …-1st-gen/vision-annotate-images/functions/src/index.ts | 21 | COMMENT | |
| LOW | Node-1st-gen/presence-firestore/public/index.js | 41 | // and `false` when disconnected. | COMMENT |
| LOW | …-1st-gen/quickstarts/uppercase-rtdb/functions/index.js | 21 | // [START import] | COMMENT |
| LOW | …-1st-gen/quickstarts/uppercase-rtdb/functions/index.js | 61 | // [END makeUppercase] | COMMENT |
| LOW | …gen/quickstarts/uppercase-firestore/functions/index.js | 41 | .add({ original: original }); | COMMENT |
| LOW | .github/workflows/stale.yml | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | .github/workflows/test_dart.yml | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | .github/workflows/test_node.yml | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | .github/workflows/test_python.yml | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | .github/workflows/test_node_1st_gen.yml | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | .github/ISSUE_TEMPLATE/config.yml | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | …quickstarts/auth-blocking-functions/functions/index.js | 41 | // Only users of a specific domain can sign up. | COMMENT |
| LOW | …quickstarts/auth-blocking-functions/functions/index.js | 61 | // Obtain a document in Firestore of the banned email address. | COMMENT |
| LOW | Node/quickstarts/genkit-helloworld/functions/index.js | 21 | // [END import-trigger] | COMMENT |
| LOW | Node/quickstarts/uppercase-rtdb/functions/index.js | 21 | const {onRequest} = require("firebase-functions/https"); | COMMENT |
| LOW | Node/quickstarts/callable-functions/functions/index.js | 21 | COMMENT | |
| LOW | Node/quickstarts/callable-functions/functions/index.js | 61 | // Saves a message to the Firebase Realtime Database but sanitizes the | COMMENT |
| LOW | Node/quickstarts/uppercase-firestore/functions/index.js | 41 | // Push the new message into Firestore using the Firebase Admin SDK. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Python/fcm-notifications/functions/main.py | 9 | def send_follower_notification(event: db_fn.Event[db_fn.Change]) -> None: | CODE |
| LOW | Python/alerts-to-discord/functions/main.py | 57 | def post_fatal_issue_to_discord(event: crashlytics_fn.CrashlyticsNewFatalIssueEvent) -> None: | CODE |
| LOW | Python/alerts-to-discord/functions/main.py | 122 | def post_performance_alert_to_discord(event: performance_fn.PerformanceThresholdAlertEvent) -> None: | STRING |
| LOW | …/quickstarts/auth-blocking-functions/functions/main.py | 91 | def send_verification_email_using_your_smtp_server(email, link): | CODE |
| LOW | …-1st-gen/template-handlebars/functions/firebaseUser.js | 62 | async function addDecodedIdTokenToRequest(idToken, req) { | CODE |
| LOW | Node-1st-gen/coupon-on-purchase/functions/index.js | 89 | async function sendHighValueCouponViaFCM(uid, userLanguage) { | CODE |
| LOW | Node-1st-gen/exif-images/functions/index.js | 69 | function imageMagickOutputToObject(output) { | CODE |
| LOW | Node-1st-gen/exif-images/functions/index.js | 100 | function makeKeyFirebaseCompatible(key) { | CODE |
| LOW | Node-1st-gen/fulltext-search-firestore/public/index.js | 27 | function searchAlgoliaUnauthenticated(query) { | CODE |
| LOW | Node-1st-gen/fulltext-search-firestore/public/index.js | 47 | function searchAlgoliaAuthenticated(query) { | CODE |
| LOW | Node-1st-gen/fulltext-search-firestore/public/index.js | 113 | async function searchTypesenseUnauthenticated(query) { | CODE |
| LOW | Node-1st-gen/fulltext-search-firestore/public/index.js | 138 | async function searchTypesenseAuthenticated(query) { | CODE |
| LOW | Node-1st-gen/quickstarts/big-ben/functions/index.js | 68 | function secondsLeftBeforeEndOfHour(date) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Python/quickstarts/pubsub-helloworld/functions/main.py | 33 | # Print the message. | COMMENT |
| LOW | Python/quickstarts/pubsub-helloworld/functions/main.py | 56 | # Print the message in the logs. | COMMENT |
| LOW | Python/quickstarts/pubsub-helloworld/functions/main.py | 71 | # Print the message in the logs. | COMMENT |
| LOW | .github/workflows/targeted-dependency-update.yml | 72 | # Check if PR already exists before creating | COMMENT |
| LOW | .github/workflows/test_dart.yml | 63 | # Check if this is a Flutter project | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Python/testlab-to-slack/functions/main.py | 73 | # Create the title of the message | COMMENT |
| MEDIUM | Python/testlab-to-slack/functions/main.py | 76 | # Create the details of the message | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Python/taskqueues-backup-images/README.md | 49 | NASA_API_KEY=your-api-key | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Python/quickstarts/callable-functions/functions/main.py | 132 | except Exception as e: | CODE |
| MEDIUM | Dart/codelab-dart-functions/lib/main.dart | 60 | print("Error calling function: $e"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …b-dart-functions/packages/shared/analysis_options.yaml | 9 | # If you want a smaller set of lints you can change this to specify | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Python/taskqueues-backup-images/functions/main.py | 17 | CODE | |
| LOW | Python/quickstarts/callable-functions/functions/main.py | 20 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Python/pyfmt.py | 63 | CODE |