{"id":13528290,"url":"https://github.com/influxdata/influxdb-client-js","last_synced_at":"2025-05-15T08:07:48.969Z","repository":{"id":37405421,"uuid":"162643764","full_name":"influxdata/influxdb-client-js","owner":"influxdata","description":"InfluxDB 2.0 JavaScript client","archived":false,"fork":false,"pushed_at":"2024-04-02T09:16:57.000Z","size":7010,"stargazers_count":317,"open_issues_count":8,"forks_count":69,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-04-14T03:04:12.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://influxdata.github.io/influxdb-client-js/ ","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/influxdata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-21T00:01:14.000Z","updated_at":"2024-05-01T12:06:37.548Z","dependencies_parsed_at":"2023-10-03T16:10:06.464Z","dependency_job_id":"eda3bd2d-3bb3-4ea3-a89e-ea5fddc9024b","html_url":"https://github.com/influxdata/influxdb-client-js","commit_stats":{"total_commits":1615,"total_committers":24,"mean_commits":67.29166666666667,"dds":0.3931888544891641,"last_synced_commit":"c1b20a3b68ae9961d23d9e70fd32049b6f0d79a7"},"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-client-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-client-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-client-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-client-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/influxdb-client-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248870771,"owners_count":21175100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:02:23.968Z","updated_at":"2025-04-14T11:27:02.381Z","avatar_url":"https://github.com/influxdata.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# influxdb-client-js\n\n[![CircleCI](https://circleci.com/gh/influxdata/influxdb-client-js.svg?style=svg)](https://circleci.com/gh/influxdata/influxdb-client-js)\n[![codecov](https://codecov.io/gh/influxdata/influxdb-client-js/branch/master/graph/badge.svg)](https://codecov.io/gh/influxdata/influxdb-client-js)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/influxdata/influxdb-client-js.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/influxdata/influxdb-client-js/context:javascript)\n[![License](https://img.shields.io/github/license/influxdata/influxdb-client-js.svg)](https://github.com/influxdata/influxdb-client-js/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/@influxdata/influxdb-client)](https://www.npmjs.com/package/@influxdata/influxdb-client)\n[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack\u0026style=social)](https://www.influxdata.com/slack)\n\nThis repository contains the JavaScript client library for use with InfluxDB 2.x and Flux. This client supports Node.js, browser, and Deno environments. InfluxDB 3.x users should instead use the lightweight [v3 client library](https://github.com/InfluxCommunity/influxdb3-js). InfluxDB 1.x users may want to use the [node-influx](https://github.com/node-influx/node-influx) client library.\n\nFor ease of migration and a consistent query and write experience, v2 users should consider using InfluxQL and the [node-influx](https://github.com/node-influx/node-influx) client library.\n\n## Documentation\n\nThis section contains links to the client library documentation.\n\n- [Product documentation](https://docs.influxdata.com/influxdb/latest/api-guide/client-libraries/nodejs/), [Getting Started](#usage)\n- [Examples](examples#influxdb-client-examples)\n- [API Reference](https://influxdata.github.io/influxdb-client-js/influxdb-client.html)\n- [Changelog](CHANGELOG.md)\n\n## Features\n\nInfluxDB 2.x client consists of two main packages\n\n- @influxdata/influxdb-client\n  - Query data using the Flux language\n  - Write data to InfluxDB\n    - batch data in the background\n    - retry automatically on failure\n- @influxdata/influxdb-client-apis\n  - Create/Modify/Delete/Manage\n    - buckets\n    - tasks\n    - authorizations\n    - sources\n    - ... and other InfluxDB domain objects\n  - Delete data from a bucket\n  - Invoke a flux script\n  - built on @influxdata/influxdb-client\n\n## Installation\n\nTo write or query InfluxDB, add `@influxdata/influxdb-client` as a dependency to your project using your favorite package manager.\n\n```\n$ npm install --save @influxdata/influxdb-client\n$ yarn add @influxdata/influxdb-client\n$ pnpm add @influxdata/influxdb-client\n```\n\nIf you target Node.js, use [@influxdata/influxdb-client](./packages/core/README.md).\nIt provides main (CJS), module (ESM), and browser (UMD) exports.\n\nIf you target browsers (including [Deno](https://deno.land/) and [Ionic](https://ionic.io/)), use [@influxdata/influxdb-client-browser](./packages/core-browser/README.md) in place of `@influxdata/influxdb-client`. It provides main (UMD) and module (ESM) exports.\n\nTo use InfluxDB management APIs in your project, also add `@influxdata/influxdb-client-apis` as a dependency to your project.\n\n```\n$ npm install --save @influxdata/influxdb-client-apis\n$ yarn add @influxdata/influxdb-client-apis\n$ pnpm add @influxdata/influxdb-client-apis\n```\n\n## Usage\n\nUse the following examples to get started with the JavaScript client for InfluxDB:\n\n- @influxdata/influxdb-client\n  - [write points](./examples/write.mjs)\n  - [query data](./examples/query.ts)\n- @influxdata/influxdb-client-apis\n  - [setup / onboarding](./examples/onboarding.mjs)\n  - [create bucket](./examples/createBucket.mjs)\n\nSee [examples](./examples/README.md) for more advanced use case like the following:\n\n- Execute parameterized queries.\n- Delete bucket data.\n- Use the client library with InfluxDB 1.8+.\n- Use the client library in the browser or [Deno](./examples/query.deno.ts).\n- Process InfluxDB query results with RX Observables.\n- Customize the writing of measurement points to InfluxDB.\n- [Reuse connections](https://github.com/influxdata/influxdb-client-js/issues/393#issuecomment-985272866) in communication with InfluxDB.\n\nJavaScript client API Reference Documentation is available online at https://influxdata.github.io/influxdb-client-js/ .\n\n## Contributing\n\nTo contribute code, fork the repository, apply changes and submit a pull request to the `master` branch.\n\nRequirements:\n\n- Node.js LTS version, v18 recommended\n  ```bash\n  node --version\n  ```\n- yarn 1.22.19 or higher\n  ```bash\n  yarn -v\n  ```\n\nRun tests:\n\n```bash\n$ yarn test\n```\n\nCheck code coverage:\n\n```bash\n$ yarn coverage\n```\n\nBuild distributions:\n\n```bash\n$ yarn build\n```\n\n## License\n\nThe InfluxDB 2.x JavaScript client is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Finfluxdb-client-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Finfluxdb-client-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Finfluxdb-client-js/lists"}