Skip to content

Latest commit

 

History

45,708 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Node.js Client Libraries

Node.js idiomatic client libraries for Google Cloud Platform services.

Libraries are available on GitHub and npm for developing Node.js applications that interact with individual Google Cloud services:

Repo Release Level Version
Access Approval Stable npm
Access Context Manager Stable npm
Address Validation Stable npm
Advisory Notifications Stable npm
AlloyDB Stable npm
Analytics Hub Stable npm
API Gateway Stable npm
API Keys Stable npm
Apigee Connect Stable npm
Apigee Registry Stable npm
App Engine Admin Stable npm
Artifact Registry Stable npm
Asset Stable npm
Assured Workloads Stable npm
AutoML Stable npm
Backup for GKE Stable npm
Bare Metal Solution Stable npm
Batch Stable npm
BeyondCorp AppConnections Stable npm
BeyondCorp AppConnectors Stable npm
BeyondCorp AppGateways Stable npm
BeyondCorp ClientConnectorServices Stable npm
BeyondCorp ClientGateways Stable npm
BigQuery Connection Stable npm
BigQuery Data Policy Stable npm
BigQuery Data Transfer Stable npm
BigQuery Migration Stable npm
BigQuery Reservation Stable npm
Billing Stable npm
Billing Budget Stable npm
Binary Authorization Stable npm
Build Stable npm
Certificate Authority Stable npm
Certificate Manager Stable npm
Channel Stable npm
Composer Stable npm
Compute Engine Stable npm
Confidential Computing Stable npm
Connect Gateway Stable npm
Contact Center AI Insights Stable npm
Container Analysis Stable npm
Container Analysis Stable npm
Data Catalog Stable npm
Data Fusion Stable npm
Data Lineage Stable npm
Database Migration Stable npm
Dataform Stable npm
Dataplex Stable npm
Dataproc Stable npm
Dataproc Metastore Stable npm
Datastream Stable npm
Deploy Stable npm
Dialogflow Stable npm
Dialogflow CX API Stable npm
Discovery Engine Stable npm
Document AI Stable npm
Document AI Warehouse Stable npm
Domains Stable npm
Essential Contacts Stable npm
Eventarc Stable npm
Eventarc Publishing Stable npm
Filestore Stable npm
Functions Stable npm
Generative Language Stable npm
GKE Hub Stable npm
GKE Multi-Cloud Stable npm
Google Workspace add-ons Stable npm
IAM Service Account Credentials Stable npm
Identity and Access Management (IAM) Stable npm
Identity-Aware Proxy Stable npm
IDS Stable npm
IoT Stable npm
Key Management Service (KMS) Stable npm
KMS Inventory Stable npm
Kubernetes Engine Stable npm
Live Stream Stable npm
Managed Service for Microsoft Active Directory Stable npm
Maps Platform Datasets Stable npm
Memorystore for Memcached Stable npm
Memorystore for Redis Stable npm
Migration Center Stable npm
Monitoring Stable npm
Monitoring Stable npm
Natural Language Stable npm
Network Connectivity Stable npm
Network Management Stable npm
Network Security Stable npm
Notebooks Stable npm
Organization Policy Stable npm
OS Config Stable npm
OS Login Stable npm
Places API (New) Stable npm
Policy Troubleshooter Stable npm
Product Registry Stable npm
Public Certificate Authority Stable npm
Quotas Stable npm
Rapid Migration Assessment Stable npm
reCAPTCHA Enterprise Stable npm
Recommender Stable npm
Resource Manager Stable npm
Routes Stable npm
Run Admin Stable npm
Scheduler Stable npm
Secret Manager Stable npm
Security Command Center Stable npm
Sensitive Data Protection (DLP) Stable npm
Serverless VPC Access Stable npm
Service Control Stable npm
Service Directory Stable npm
Service Management Stable npm
Service Usage Stable npm
Shell Stable npm
Shopping Merchant Accounts Stable npm
Speech-to-Text Stable npm
Storage Insights Stable npm
Storage Transfer Stable npm
Support Stable npm
Talent Solution Stable npm
Tasks Stable npm
Text-to-Speech Stable npm
TPU Stable npm
Transcoder Stable npm
Translation Stable npm
Vertex AI Stable npm
Vertex AI Search for commerce Stable npm
Video Intelligence Stable npm
Video Stitcher Stable npm
Vision Stable npm
VM Migration Stable npm
VMware Engine Stable npm
Web Risk Stable npm
Web Security Scanner Stable npm
Workflows Stable npm
Workstations Stable npm
Agent Identity Preview npm
Agent Registry Preview npm
Analytics Hub Preview npm
API hub Preview npm
API Registry Preview npm
App Hub Preview npm
App Lifecycle Manager Preview npm
App Optimize Preview npm
App Topology Preview npm
Area120 Tables Preview npm
Audit Manager Preview npm
Backup and DR Service Preview npm
BigQuery Storage API Preview npm
Bigtable API Preview npm
Capacity Planner Preview npm
Chronicle Preview npm
Cluster Director Preview npm
Commerce Consumer Procurement Preview npm
Commerce Producer Preview npm
Config Delivery Preview npm
Connectors Preview npm
Controls Partner Preview npm
CSS Preview npm
Data Analytics API with Gemini Preview npm
Data Labeling Preview npm
Data Lineage Preview npm
Data Manager Preview npm
Data QnA Preview npm
Database Center Preview npm
Dataflow Preview npm
Datastore API Preview npm
Developer Connect Preview npm
Developer Knowledge Preview npm
Device Streaming Preview npm
Distributed Cloud Edge Container Preview npm
Distributed Cloud Edge Network Preview npm
Financial Services Preview npm
Firestore API Preview npm
FTP Preview npm
GDC Hardware Management Preview npm
Gemini Enterprise for Customer Experience Preview npm
Geocoding Preview npm
GKE Recommender Preview npm
Google Ad Manager Preview npm
Google Analytics Admin Preview npm
Google Analytics Data Preview npm
Google Chat Preview npm
Google Health Preview npm
Google Marketing Platform Admin Preview npm
Google Meet Preview npm
Google Workspace Events Preview npm
Infrastructure Manager Preview npm
Isochrones Preview npm
Last Mile Fleet Solution Delivery Preview npm
License Manager Preview npm
Life Sciences Preview npm
Local Rides and Deliveries Preview npm
Location Finder Preview npm
Logging API Preview npm
Maintenance Preview npm
Managed Lustre Preview npm
Managed Service for Apache Kafka Preview npm
Managed Service for Apache Kafka Preview npm
Map Management Preview npm
Media Translation Preview npm
Memorystore Preview npm
Memorystore for Redis Preview npm
Model Armor Preview npm
Navigation Connect Preview npm
NetApp Preview npm
Network Services Preview npm
Oracle Database@Google Cloud Preview npm
Parallelstore Preview npm
Parameter Manager Preview npm
Phishing Protection Preview npm
Places Aggregate Preview npm
Policy Simulator Preview npm
Policy Troubleshooter Preview npm
Private Catalog Preview npm
Privileged Access Manager Preview npm
Profiler Preview npm
Pub/Sub Preview npm
Route Optimization Preview npm
Secure Source Manager Preview npm
Security Command Center Management Preview npm
Security Compliance Preview npm
Service Health Preview npm
Shopping Merchant Conversions Preview npm
Shopping Merchant Data Sources Preview npm
Shopping Merchant Inventories Preview npm
Shopping Merchant Issue Resolution Preview npm
Shopping Merchant LFP Preview npm
Shopping Merchant Notifications Preview npm
Shopping Merchant Order Tracking Preview npm
Shopping Merchant Products Preview npm
Shopping Merchant Promotions Preview npm
Shopping Merchant Quota Preview npm
Shopping Merchant Reports Preview npm
Shopping Merchant Reviews Preview npm
Solar Preview npm
Spanner API Preview npm
SQL Admin Preview npm
Storage Preview npm
Storage Batch Operations Preview npm
Street View Publish Preview npm
Telco Automation Preview npm
Vector Search Preview npm
Vision AI Preview npm
Workload Identity Preview npm
Workload Manager Preview npm

If the service is not listed above, google-api-nodejs-client interfaces with additional Google Cloud APIs using a legacy REST interface.

When building Node.js applications, preference should be given to the libraries listed in the table.

Enabling APIs

Before you can interact with a given Google Cloud Service, you must enable its API.

Links are available for enabling APIs in the table at the beginning of this document, and in each libraries README.md.

Authentication

Download your Service Account Credentials JSON file

To use Application Default Credentials, You first need to download a set of JSON credentials for your project. Go to APIs & Auth > Credentials in the Google Developers Console and select Service account from the Add credentials dropdown.

This file is your only copy of these credentials. It should never be committed with your source code, and should be stored securely.

Once downloaded, store the path to this file in the GOOGLE_APPLICATION_CREDENTIALS environment variable.

Other Authentication Methods

Other authentication methods are outlined in the README for google-auth-library-nodejs, which is the authentication library used by all Google Cloud Node.js clients.

Example Applications

  • nodejs-getting-started - A sample and tutorial that demonstrates how to build a complete web application using Cloud Datastore, Cloud Storage, and Cloud Pub/Sub and deploy it to Google App Engine or Google Compute Engine.
  • gcloud-node-todos - A TodoMVC backend using google-cloud-node and Datastore.
  • gitnpm - Easily lookup an npm package's GitHub repo using google-cloud-node and Google App Engine.
  • gcloud-kvstore - Use Datastore as a simple key-value store.
  • hya-wave - Cloud-based web sample editor. Part of the hya-io family of products.
  • gstore-node - Google Datastore Entities Modeling library.
  • gstore-api - REST API builder for Google Datastore Entities.

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.

Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:

  • Legacy versions are not tested in continuous integration.
  • Some security patches and features cannot be backported.
  • Dependencies cannot be kept up-to-date.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed through npm dist-tags. The dist-tags follow the naming convention legacy-(version). For example, {{ metadata['lib_install_cmd'] }}@legacy-10 installs client libraries for versions compatible with Node.js 10.

Versioning

Our libraries follow Semantic Versioning.

Please note it is currently under active development. Any release versioned 0.x.y is subject to backwards-incompatible changes at any time.

Stable: Libraries defined at the Stable quality level are stable. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against Stable libraries are addressed with the highest priority.

Preview: Libraries defined at the preview quality level are still a work-in-progress and are more likely to get backwards-incompatible updates.

Contributing

Contributions to this library are always welcome and highly encouraged.

See CONTRIBUTING for more information on how to get started.

License

Apache 2.0 - See LICENSE for more information.

About

Google Cloud Client Library for Node.js

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3.2k stars

Watchers

181 watching

Forks

Releases

Packages

Used by

Contributors

Languages