Node.js samples for Google Cloud Platform products. https://cloud.google.com/nodejs
  • JavaScript 97.4%
  • Shell 0.9%
  • HTML 0.5%
  • Dockerfile 0.4%
  • TypeScript 0.4%
  • Other 0.2%
Find a file
Angel Caamal 0f66e3ed6a
chore(billing): migrate deprecated slack package to @slack/web-api (#4281)
* chore(billing): migrate deprecated slack package to @slack/web-api

* fix(billing): update node engine to >=18.0.0 for slack web-api compatibility

* refactor: rename web variable to slackClient
2026-04-22 15:33:27 -07:00
.github ci(genai): Update genai directory to run tests in specific directories only (#4203) 2025-12-18 13:34:25 -06:00
.kokoro chore(cloudfunctions): remove unused functions/speech-to-speech sample app (#3964) 2025-02-04 21:11:22 -08:00
ai-platform/snippets ci(ai-platform): skip tests for imagetext@001 samples (#4191) 2025-11-10 16:56:58 -08:00
appengine chore: Migrate gsutil usage to gcloud storage (#4210) 2026-03-11 14:32:56 +11:00
asset/snippets fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
auth feat: Documenting custom credential suppliers (#4194) 2025-12-17 14:25:09 -08:00
automl fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
batch feat: create_batch_custom_network (#3793) 2024-08-23 10:43:53 -07:00
bigquery/cloud-client feat(bigquery): Add samples for control access 2/3 (#4024) 2025-03-18 16:30:49 -06:00
cloud-language fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
cloud-sql chore(ci): migrate sqlserver/mssql sample to new ci (#4066) 2025-04-28 12:46:39 +10:00
cloud-tasks fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
cloudbuild fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
composer fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
compute chore(compute): Renove older region tag (#4062) 2025-04-04 12:56:00 -07:00
contact-center-insights fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
container fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
container-analysis/snippets fix(container-analysis): Update createNote.js to replace vulnerability with attestation (#4182) 2025-09-12 15:25:29 -07:00
datacatalog chore(datacatalog): add information about deprecation of Data Catalog (#3979) 2025-02-25 09:31:47 -08:00
datalabeling fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
dataproc fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
datastore/functions fix(deps): update all dependencies (#3671) 2024-08-10 21:23:45 -07:00
dialogflow fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
dialogflow-cx fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
discoveryengine fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
dlp fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
document-ai fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
document-warehouse fix(deps): update all dependencies (#3671) 2024-08-10 21:23:45 -07:00
endpoints chore(grpc): migrate from grpc to @grpc/grpc-js in getting-started-grpc example (#4077) 2025-04-24 12:59:08 -07:00
error-reporting fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
eventarc chore: Migrate gsutil usage to gcloud storage (#4211) 2026-03-11 14:37:52 +11:00
functions chore(billing): migrate deprecated slack package to @slack/web-api (#4281) 2026-04-22 15:33:27 -07:00
genai chore(genai): Update live-audio-with-txt.js to gimini-live-2.5-flash-native-audio (#4222) 2026-02-20 19:01:51 -08:00
generative-ai/snippets feat(generative-ai): clear unused samples and update gemini model name (#4067) 2025-04-25 09:54:27 -04:00
healthcare fix(healthcare): correct typo 'occured' to 'occurred' in importDicomInstance (#4291) 2026-04-21 09:13:01 -07:00
iam/deny fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
kms fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
media feat: test-isolation env var interpolation (#3977) 2025-02-19 10:40:27 -08:00
mediatranslation fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
memorystore/redis chore: Migrate gsutil usage to gcloud storage (#4213) 2026-03-11 15:07:08 +11:00
model-armor chore(modelarmor): enabled floor settings tests (#4123) 2025-08-12 16:54:38 +10:00
monitoring fix: update broken link to invalid anchor in README (#4116) 2025-06-27 14:10:05 -07:00
parametermanager fix(samples): Update NodeJs comment for rendering latest parameter version (#4287) 2026-04-16 15:29:11 +05:30
pubsub feat: adding pubsub base for future samples to be added in (#3223) 2023-05-15 09:53:51 -07:00
recaptcha_enterprise chore(deps): Update recaptcha demosite dependencies. (#4271) 2026-03-27 20:18:40 -07:00
retail chore: Correct region tag for consistency (#4138) 2025-07-17 10:08:20 -07:00
routeoptimization/snippets fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
run refactor(run/image-processing): replace deprecated gm library with sharp (#4297) 2026-04-21 17:08:48 -07:00
scheduler ci(scheduler): migrate to new CI (#4006) 2025-03-05 08:18:06 +11:00
secret-manager chore(secretmanager): Added samples for delete secret annotation (#4139) 2025-07-22 10:07:46 +05:30
security-center/snippets feat(securitycenter): Add Resource SCC Management API Org SHA Custom … (#3978) 2025-03-12 09:49:29 +11:00
service-directory/snippets fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
spanner feat(spanner): migrate batch 3 core samples and tests (#4278) 2026-04-08 13:20:36 -07:00
speech chore(speech): Remove older region tags (#4016) 2025-03-06 09:28:13 -08:00
storage feat(storage): migrate ACL samples and tests (#4260) 2026-03-28 13:09:03 -06:00
storage-control fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
storagetransfer fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
talent fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
texttospeech fix(deps): update all dependencies (#3671) 2024-08-10 21:23:45 -07:00
tpu feat(tpu): Updating TPU samples to use TPUv5e (#4028) 2025-03-14 11:35:52 +11:00
translate chore(translate): rename region tag, delete unused region tags, and add link to supported MIME types. (#4074) 2025-04-17 16:53:34 -06:00
video-intelligence fix(deps): update all dependencies (#3842) 2024-09-15 12:49:01 -07:00
vision fix(vision): Improve logo detection (#4209) 2026-01-06 19:22:10 -08:00
workflows fix: update broken link to invalid anchor in README (#4116) 2025-06-27 14:10:05 -07:00
.eslintignore Move recaptcha demosite to nodejs-docs-samples (#2968) 2023-01-10 12:04:11 -08:00
.eslintrc.json feat: Documenting custom credential suppliers (#4194) 2025-12-17 14:25:09 -08:00
.gitignore docs(samples): Add Sample for Gen App Builder - Search 2023-05-11 10:57:48 -05:00
.mocharc.js ci: use flakybot with actions workflows (#3079) 2023-04-07 11:10:36 -05:00
.prettierignore build: update to latest version of gts and typescript (#1725) 2020-04-19 11:22:16 -04:00
.prettierrc.js build: update to latest version of gts and typescript (#1725) 2020-04-19 11:22:16 -04:00
buildsetup.sh build: experiment with GitHub Actions for healthcare/datasets (#2365) 2021-10-14 11:11:29 -07:00
CODE_OF_CONDUCT.md chore: run repo-tools generate (#638) 2018-06-05 15:44:30 -04:00
CODEOWNERS feat(modelarmor): Added snippet for quickstart (#4052) 2025-05-15 10:05:52 -07:00
CONTRIBUTING.md fix: remove experimental from forked repo tests (#4088) 2025-05-13 14:36:21 -07:00
LICENSE chore: run repo-tools generate (#638) 2018-06-05 15:44:30 -04:00
linkinator.config.json build: perform 404 scanning on docs (#2305) 2021-08-03 14:22:44 -07:00
Makefile feat: testing isolation (#3872) 2024-11-18 15:29:26 -08:00
owlbot.py fix: owlbot error output bug 2024-08-09 10:10:33 -07:00
package.json chore(deps): update all dependencies (#3799) 2024-08-20 14:30:47 -07:00
README.md chore: update the minimum language based on maintenance mode 2025-04-04 17:29:29 -07:00
renovate.json chore(config): migrate config renovate.json (#3911) 2024-10-29 14:38:34 +11:00
SECURITY.md docs: add a security policy (#2285) 2021-07-07 12:43:28 -07:00

Google Cloud Platform logo

Google Cloud Platform Node.js Samples

Node.js samples for Google Cloud Platform products.

See cloud.google.com/nodejs to get up and running with Node.js on Google Cloud Platform.

To browse documentation pages that use the samples found in this repository, visit the Google Cloud Samples page.

Setup

  1. Install Node.js version 18 or greater

  2. Install the Google Cloud CLI (gcloud)

  3. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
    
  4. Obtain authentication credentials.

    Create local credentials by running the following command and following the oauth2 flow (read more about the command here):

     gcloud auth application-default login
    

    Read more about Google Cloud Platform Authentication.

How to run a sample

  1. Change directory to one of the sample folders, e.g. run/helloworld:

     cd run/helloworld
    
  2. Install the sample's dependencies (see the sample's README for details):

     npm install
    
    • For samples with an available TypeScript variant, compile the TypeScript code:

          npm run build
      
  3. Run the sample:

     npm start [args]...
    

Other sample applications

Bookshelf tutorial app

The Bookshelf app is a sample web app written in Node.js that shows you how to use a variety of Google Cloud Platform features.

View the tutorial or the source code.

Contributing

Contributions welcome! See the Contributing Guide.