Documentation

Node.js JavaScript client library

Use the InfluxDB JavaScript client library to integrate InfluxDB into your Node.js application.

This library supports browser and server-side (Node.js) Javascript environments. Use the @influxdata/influxdb-client module when targeting Node.js. The module supports both CommonJS and ES Module syntax.

To use InfluxDB management APIs in your project, also add @influxdata/influxdb-client-apis as a dependency to your project.

If you target the browser or deno, use @influxdata/influxdb-client-browser. It is UMD-compatible for use with module loaders. See Javascript (browser) for more information.

In this guide, you’ll start a Node.js project from scratch and code some simple API operations.

For more examples and information, see the JavaScript client on GitHub.


Select your region

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.