Code Monkey home page Code Monkey logo

influxdb-client-js's Introduction

influxdb-client-js

CircleCI codecov code style: prettier Language grade: JavaScript License npm Slack Status

This repository contains the reference javascript client for InfluxDB 2.0. Node, browser and deno environments are supported.

Note: Use this client library with InfluxDB 2.x and InfluxDB 1.8+. For connecting to InfluxDB 1.7 or earlier instances, see the node-influx client library.

Features

InfluxDB 2.0 client consists of two main packages

  • @influxdata/influxdb-client
    • Querying data using the Flux language
    • Writing data
      • batched in chunks on background
      • automatic retries on write failures
  • @influxdata/influxdb-client-apis
    • provides all other InfluxDB 2.0 APIs for managing
      • sources, buckets
      • tasks
      • authorizations
      • health check
      • ...
    • built on top of @influxdata/influxdb-client

Installation

To write or query InfluxDB, add @influxdata/influxdb-client dependency to your project using your favourite package manager.

$ npm install --save @influxdata/influxdb-client
$ yarn add @influxdata/influxdb-client
$ pnpm add @influxdata/influxdb-client

@influxdata/influxdb-client module primarily works in Node.js (main CJS and module ESM), but a browser (browser UMD) distribution is also available therein. If you target browser or deno, use @influxdata/influxdb-client-browser.

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

$ npm install --save @influxdata/influxdb-client-apis
$ yarn add @influxdata/influxdb-client-apis
$ pnpm add @influxdata/influxdb-client-apis

Usage

The following examples help to start quickly with this client:

There are also more advanced examples that show

  • how to execute parameterized queries
  • how to use this client with InfluxDB 1.8+
  • how to use this client in the browser or deno
  • how to process InfluxDB query results with RX Observables
  • how to customize the way of how measurement points are written to InfluxDB
  • how to visualize query results in Giraffe

The client API Reference Documentation is available online at https://influxdata.github.io/influxdb-client-js/ .

Contributing

If you would like to contribute code you can do through GitHub by forking the repository and sending a pull request into the master branch.

Build Requirements:

  • node v14 LTS
  • yarn 1.9.4. or higher

Run tests:

$ yarn test

Check code coverage:

$ yarn coverage

Build distributions:

$ yarn build

License

The InfluxDB 2.0 javascript client is released under the MIT License.

influxdb-client-js's People

Contributors

121watts avatar aliriegray avatar backbone87 avatar bednar avatar bthesorceror avatar chnn avatar dependabot[bot] avatar ebb-tide avatar ischolten avatar kelseiv avatar kelwang avatar ofthedelmer avatar palakp41 avatar rhajek avatar russorat avatar sranka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.