google-api-nodejs-client is a client library that provides Node.js access to Google APIs with built-in support for OAuth 2.0, API Keys, and JWT authentication.
The library solves the problem of integrating Google APIs into Node.js applications by automatically generating API endpoints from Google's API specifications. This approach ensures that newly released Google APIs become available to developers without requiring manual library updates. The library handles the complexity of authentication and authorization, supporting multiple credential types including OAuth 2.0 flows, API keys, application default credentials, and service account tokens.
Developers should choose this library when building Node.js applications that need to call Google APIs beyond Google Cloud Platform services. The library suits projects requiring access to APIs like Blogger, Gmail, Drive, or other Google services. However, for Google Cloud Platform-specific APIs such as Datastore, Cloud Storage, or Pub/Sub, the README explicitly recommends using purpose-built @google-cloud client libraries instead, which are idiomatic and actively developed. The library offers the option to install individual API submodules to reduce startup times rather than loading the entire package. TypeScript support and HTTP/2 capability are included.
The project is in maintenance mode, addressing critical bugs and security issues but not accepting new features. The library supports the maintenance LTS, active LTS, and current release versions of Node.js.