npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kuzzle-storage-es-9

v1.3.0

Published

Elasticsearch 9 storage driver for Kuzzle

Readme

kuzzle-storage-es-9

The Elasticsearch 9 storage driver for Kuzzle 2.

kuzzle-storage-es-9 is the Elasticsearch 9 storage driver of Kuzzle 2. It is Kuzzle's Elasticsearch 8 driver on the Elasticsearch 9 client: same mappings, same queries, same errors. Kuzzle 2 does not ship it: you install it next to Kuzzle.

📖 Full documentation: https://docs.kuzzle.io/drivers/storage-es-9/1/

Install

Install the package in your application, next to kuzzle:

npm install kuzzle-storage-es-9

Then select it in your .kuzzlerc, with the address of your Elasticsearch 9 cluster:

{
  "services": {
    "storageEngine": {
      "driver": "kuzzle-storage-es-9",
      "client": { "node": "http://localhost:9200" }
    }
  }
}

majorVersion is not read when driver is set, and Kuzzle logs a warning if both are set: remove majorVersion. The same works with the kuzzle_services__storageEngine__driver environment variable.

The rest of services.storageEngine (client, commonMapping, defaultSettings, internalIndex...) works as before: see Configuration.

Requirements

  • Kuzzle 2.61 or later, within Kuzzle 2. Older versions do not know services.storageEngine.driver and silently ignore it: they run the Elasticsearch code they embed, not this package.
  • Elasticsearch 9.x (tested on 9.0.8 and 9.5.5)
  • Node.js 22.12 or later

Every node of a Kuzzle cluster must run the same driver, in the same version.

TypeScript

The package ships its declarations. It exports the driver class, ES9Driver (also its default export), whose static createNativeClient() builds an @elastic/elasticsearch 9.5.1 Client. To type the native client Kuzzle gives your application:

import type { ES9Driver } from "kuzzle-storage-es-9";

type StorageClient = ReturnType<typeof ES9Driver.createNativeClient>;

const client = app.storage.storageClient as StorageClient;

See TypeScript.

Capabilities

The driver declares every optional capability (aggregations, mappingUpdates, stats, updateByQuery): every Kuzzle API action works.

Development

npm ci
npm run test:unit   # the unit suite, no Elasticsearch needed

docker run -d -p 9200:9200 -e discovery.type=single-node -e xpack.security.enabled=false elasticsearch:9.5.5
npm test            # the unit suite and Kuzzle's conformance kit, against ELASTICSEARCH_NODE (default http://localhost:9200)

npm run lint, npm run typecheck and npm run build complete the checks the CI runs. The unit suite is the same in the storage-es-7, storage-es-8 and storage-es-9 repositories: only test/unit/elasticsearch.test.ts and test/unit/esWrapper.test.ts name their driver.

Shared code

The five storage drivers (storage-es-7, storage-es-8, storage-es-9, storage-opensearch-2, storage-opensearch-3) share most of their code. A drift guard, npm run check:drift (run by the CI), checks that the shared files listed in scripts/check-drift.sh are identical to their canonical copy, in storage-es-8 at the commit scripts/drift.env pins; ALLOW there lists the shared files a repository deliberately keeps different. To change a shared file, change it in storage-es-8 first, copy it to the other drivers, then move CANONICAL_REF to that commit in all five.

To write a driver for another engine, see Write a storage driver.

Release

Releases are made by semantic-release: beta publishes prereleases on the beta npm tag, master publishes stable versions. The documentation is in doc/1/.

License

Apache-2.0