# elastic/elasticsearch-js

Official Elasticsearch client library for Node.js

Repository: https://github.com/elastic/elasticsearch-js
Canonical: https://ross.abutalabs.com/products/elasticsearch-js
Homepage: https://ela.st/js-client
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: elasticsearch, nodejs, client, rest, javascript
Last push: 2026-08-26T20:14:06+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4821, "days_push": 7, "days_rel": 29, "gap_med": 7.0, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5291, forks 722 (observed 2026-08-28T04:09:15.144947+00:00)

## What it is
The official Elasticsearch client library for Node.js, maintained by Elastic. It provides a one-to-one mapping to the Elasticsearch REST API with TypeScript support, connection pooling, load balancing, and pluggable architecture.

## Use cases
- connect to elasticsearch from node.js
- index and search documents in elasticsearch
- build search functionality in a node app
- query elasticsearch with typescript
- manage elasticsearch indices programmatically
- integrate elasticsearch into a node.js backend

## When to choose
- you use Elasticsearch from a Node.js or TypeScript application
- you want an officially supported client with full REST API coverage
- you need cluster node discovery, retries, and load balancing out of the box

## When to avoid
- you use a language other than JavaScript/Node.js (use the official client for that language)
- you need a raw HTTP client with no Elasticsearch abstraction
- you target an Elasticsearch version with no matching client branch

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, search-engine, http-client
- domain: databases, developer-tools, backend
- platform: -
- tags: elasticsearch, official-client, rest-api, api-client, search, nodejs, javascript, typescript

## Member repositories
- elastic/elasticsearch-js (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:15.144947+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:12.599237+00:00, confidence not recorded.
  - readme: https://github.com/elastic/elasticsearch-js (fetched 2026-08-28T04:09:15.144947+00:00, sha 51a3fb4c2dc1)
  - homepage: https://ela.st/js-client (fetched 2026-08-29T08:54:38.436100+00:00, sha 5fa90cc785e5)
  - site_page: https://www.elastic.co/docs (fetched 2026-08-29T08:54:38.438685+00:00, sha c4139162fd2c)
  - site_page: https://www.elastic.co/docs/release-notes (fetched 2026-08-29T08:54:38.440914+00:00, sha d4b31583341e)
  - site_page: https://www.elastic.co/docs/troubleshoot (fetched 2026-08-29T08:54:38.442762+00:00, sha b263eaa4c10d)
  - site_page: https://www.elastic.co/docs/reference (fetched 2026-08-29T08:54:38.444761+00:00, sha 80a0b6758b94)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch (fetched 2026-08-29T08:54:38.446383+00:00, sha 9a16ee61c2e5)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch-clients (fetched 2026-08-29T08:54:38.447890+00:00, sha 72b5f16ced87)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch/clients/java/license (fetched 2026-08-29T08:54:38.449347+00:00, sha e80508851078)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch/clients/javascript/getting-started (fetched 2026-08-29T08:54:38.451040+00:00, sha ef7759af35fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
