
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@opensearch-project/opensearch
Advanced tools
OpenSearch Node.js client
opensearch-js is a community-driven, open source fork of elasticsearch-js licensed under the Apache v2.0 License. For more information, see opensearch.org.
The OpenSearch JavaScript client provides a safer and easier way to interact with your OpenSearch cluster. Rather than using OpenSearch from the browser and potentially exposing your data to the public, you can build an OpenSearch client that takes care of sending requests to your cluster.
The client contains a library of APIs that let you perform different operations on your cluster and return a standard response body. The example here demonstrates some basic operations like creating an index, adding documents, and searching your data.
To add the client to your project, install it with npm:
npm i @opensearch-project/opensearch
If you prefer to add the client manually or just want to examine the source code, see opensearch-js on GitHub.
Then require the client:
const { Client } = require('@opensearch-project/opensearch');
Please see the USER_GUIDE for code snippets.
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact opensource-codeofconduct@amazon.com with any additional questions or comments.
This project is licensed under the Apache v2.0 License.
Copyright OpenSearch Contributors. See NOTICE for details.
The 'elasticsearch' npm package is the official client for Elasticsearch, a distributed search and analytics engine. It provides similar functionalities to @opensearch-project/opensearch, such as connecting to clusters, indexing documents, searching, and managing indices. However, it is tailored specifically for Elasticsearch clusters.
The 'meilisearch' npm package is a client for MeiliSearch, an open-source, easy-to-use, and fast search engine. While it offers similar functionalities like indexing and searching documents, MeiliSearch focuses on simplicity and speed, making it a good alternative for smaller projects or those requiring quick setup.
The 'typesense' npm package is a client for Typesense, an open-source, typo-tolerant search engine optimized for instant search experiences. It provides functionalities for indexing and searching documents, similar to @opensearch-project/opensearch, but is designed to offer a more user-friendly and developer-friendly experience.
FAQs
The official OpenSearch client for Node.js
The npm package @opensearch-project/opensearch receives a total of 1,393,884 weekly downloads. As such, @opensearch-project/opensearch popularity was classified as popular.
We found that @opensearch-project/opensearch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.