
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@algolia/composition
Advanced tools
Documentation • InstantSearch • Community Forum • Stack Overflow • Report a bug • Support
[!TIP] This API client is already a dependency of the algoliasearch client, you don't need to manually install
@algolia/compositionif you already havealgoliasearchinstalled.
To get started, you first need to install @algolia/composition (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments.
yarn add @algolia/composition@1.22.4-beta.2
# or
npm install @algolia/composition@1.22.4-beta.2
# or
pnpm add @algolia/composition@1.22.4-beta.2
Add the following JavaScript snippet to the of your website:
<script src="https://cdn.jsdelivr.net/npm/@algolia/composition@1.22.4-beta.2/dist/builds/browser.umd.js"></script>
You can now import the Algolia API client in your project and play with it.
import { compositionClient } from '@algolia/composition';
const client = compositionClient('YOUR_APP_ID', 'YOUR_API_KEY');
For full documentation, visit the Algolia JavaScript API Client.
Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client. You can also open a GitHub issue
The Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.
FAQs
JavaScript client for composition
The npm package @algolia/composition receives a total of 1,115 weekly downloads. As such, @algolia/composition popularity was classified as popular.
We found that @algolia/composition demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 104 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.