# Node.js SDKs

Use the IONOS Cloud Node.js SDKs to build Node.js apps on IONOS Cloud. Each SDK is available on npm.

### Available Node.js SDKs

#### Core Infrastructure

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Cloud API Node.js SDK</strong></mark></td><td>Manage compute, networking, and storage</td><td><a href="https://app.gitbook.com/o/-MKo2eBjDjmABTFNKPGq/s/-MgQ1VXOWpmtm7r_Cdnx-3956399747/">Cloud API NodeJS SDK</a></td></tr></tbody></table>

#### Database

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>DBaaS Mongo Node.js SDK</strong></mark></td><td>Provision and manage MongoDB clusters</td><td><a href="https://app.gitbook.com/o/-MKo2eBjDjmABTFNKPGq/s/mLKm79S33kdyAaTS6Uqu/">DBaaS Mongo NodeJS SDK</a></td></tr><tr><td><mark style="color:blue;"><strong>DBaaS Postgres Node.js SDK</strong></mark></td><td>Provision and manage PostgreSQL clusters</td><td><a href="https://app.gitbook.com/o/-MKo2eBjDjmABTFNKPGq/s/QrYa6RYxx5nsHC9p5p5W/">DBaaS Postgres Java SDK</a></td></tr><tr><td><mark style="color:blue;"><strong>MariaDB SDK Node.js</strong></mark></td><td>Provision and manage MariaDB clusters</td><td><a href="https://app.gitbook.com/o/-MKo2eBjDjmABTFNKPGq/s/ZN1Ka4Hi77YuXafBkY62/">MariaDB SDK NodeJS</a></td></tr></tbody></table>

#### Containers

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Container Registry Node.js SDK</strong></mark></td><td>Manage container registries and image repositories</td><td><a href="https://app.gitbook.com/o/-MKo2eBjDjmABTFNKPGq/s/dMTeVE3owSDkxYgz4DCY/">Container Registry NodeJS SDK</a></td></tr></tbody></table>

#### Security

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Certificate Manager Node.js SDK</strong></mark></td><td>Manage TLS/SSL certificates</td><td><a href="https://app.gitbook.com/o/-MKo2eBjDjmABTFNKPGq/s/WEb7onjoUX9oVRHaUAe9/">Certificate Manager NodeJS SDK</a></td></tr></tbody></table>

### Quick Start

Install the Cloud API Node.js SDK:

```bash
npm install @ionos-cloud/sdk-nodejs
```

Set up a client:

```javascript
const ionoscloud = require('@ionos-cloud/sdk-nodejs');

const config = new ionoscloud.Configuration({
    username: process.env.IONOS_USERNAME,
    password: process.env.IONOS_PASSWORD,
});

const api = new ionoscloud.DataCentersApi(config);
```

Use a token instead:

```javascript
const config = new ionoscloud.Configuration({
    tokenApiKey: process.env.IONOS_TOKEN,
});
```

### Authentication

All Node.js SDKs use the same credentials. Store them in environment variables and keep them out of your source code.

```bash
export IONOS_USERNAME=your@email.com
export IONOS_PASSWORD=yourpassword

# Use a token for CI/CD:
export IONOS_TOKEN=your_api_token
```

### GitHub Repositories

All Node.js SDKs are open source on GitHub under [ionos-cloud](https://github.com/ionos-cloud). Product SDKs follow the pattern `@ionos-cloud/sdk-nodejs-{service}`.
