MCPcopy
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples

github.com/GoogleCloudPlatform/nodejs-docs-samples @main sqlite

repository ↗ · DeepWiki ↗
4,008 symbols 8,941 edges 2,228 files 371 documented · 9%
README

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.

Core symbols most depended-on inside this repo

getProjectId
called by 434
storagetransfer/test/utils/bucket.js
toString
called by 317
recaptcha_enterprise/demosite/app/static/demo-2af4c10e.js
execSync
called by 133
retail/test/quickstart.js
set
called by 72
recaptcha_enterprise/demosite/app/static/demo-2af4c10e.js
express
called by 44
error-reporting/express.js
delay
called by 40
genai/test/util.js
get
called by 31
recaptcha_enterprise/demosite/app/static/demo-2af4c10e.js
add
called by 29
vision/textDetection.js

Shape

Function 3,685
Method 217
Class 106

Languages

TypeScript100%
Python1%

Modules by API surface

recaptcha_enterprise/demosite/app/static/demo-2af4c10e.js272 symbols
vision/detect.js25 symbols
retail/interactive-tutorials/setup/setup-cleanup.js21 symbols
speech/recognize.js15 symbols
vision/textDetection.js13 symbols
spanner/dml.js13 symbols
storagetransfer/test/utils/bucket.js12 symbols
video-intelligence/analyze.js11 symbols
batch/test/advanced_creation.test.js11 symbols
translate/translate.js10 symbols
spanner/datatypes.js10 symbols
recaptcha_enterprise/demosite/app/controllers/controller.js10 symbols

Dependencies from manifests, versioned

@aws-sdk/client-sts3.58.0 · 1×
@aws-sdk/credential-providers3.0.0 · 1×
@azure/storage-blob12.12.0 · 1×
@google-cloud/aiplatform3.0.0 · 1×
@google-cloud/asset5.0.0 · 1×
@google-cloud/automl4.0.0 · 1×
@google-cloud/batch1.0.0 · 1×
@google-cloud/bigquery7.9.2 · 1×
@google-cloud/billing5.1.0 · 1×
@google-cloud/cloud-sql-connector1.0.0 · 1×
@google-cloud/cloudbuild4.0.0 · 1×
@google-cloud/compute4.0.0 · 1×

For agents

$ claude mcp add nodejs-docs-samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact