MCPcopy Index your code
hub / github.com/algolia/algoliasearch-client-javascript

github.com/algolia/algoliasearch-client-javascript @5.55.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.55.1 ↗ · + Follow
618 symbols 1,647 edges 1,316 files 374 documented · 61%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Algolia for JavaScript

The perfect starting point to integrate Algolia within your JavaScript project

<a href="https://npmjs.com/package/algoliasearch"><img src="https://img.shields.io/npm/v/algoliasearch.svg?style=flat-square" alt="NPM version"></img></a>
<a href="http://npm-stat.com/charts.html?package=algoliasearch"><img src="https://img.shields.io/npm/dm/algoliasearch.svg?style=flat-square" alt="NPM downloads"></a>
<a href="https://www.jsdelivr.com/package/npm/algoliasearch"><img src="https://data.jsdelivr.com/v1/package/npm/algoliasearch/badge" alt="jsDelivr Downloads"></img></a>
<a href="https://github.com/algolia/algoliasearch-client-javascript/raw/5.55.1/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>

DocumentationInstantSearchCommunity ForumStack OverflowReport a bugSupport

✨ Features

  • Thin & minimal low-level HTTP client to interact with Algolia's API
  • Works both on the browser and node.js
  • UMD and ESM compatible, you can use it with any module loader
  • Built with TypeScript

💡 Getting Started

To get started, you first need to install algoliasearch (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments.

With a package manager

yarn add algoliasearch@5.55.1
# or
npm install algoliasearch@5.55.1
# or
pnpm add algoliasearch@5.55.1

Without a package manager

Add the following JavaScript snippet to the of your website:

// for the full client
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.55.1/dist/algoliasearch.umd.js"></script>

// for the lite client
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.55.1/dist/lite/builds/browser.umd.js"></script>

Usage

You can now import the Algolia API client in your project and play with it.

import { algoliasearch } from 'algoliasearch';

const client = algoliasearch('YOUR_APP_ID', 'YOUR_API_KEY');

// or with the lite client
import { liteClient } from 'algoliasearch/lite';

const client = liteClient('YOUR_APP_ID', 'YOUR_API_KEY');

For full documentation, visit the Algolia JavaScript API Client.

❓ Troubleshooting

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

📄 License

The Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.

Core symbols most depended-on inside this repo

Shape

Function 587
Class 20
Method 11

Languages

TypeScript100%

Modules by API surface

packages/client-search/src/searchClient.ts82 symbols
packages/ingestion/src/ingestionClient.ts69 symbols
packages/agent-studio/src/agentStudioClient.ts49 symbols
packages/client-analytics/src/analyticsClient.ts30 symbols
packages/client-common/src/transporter/errors.ts27 symbols
packages/composition/src/compositionClient.ts25 symbols
packages/monitoring/src/monitoringClient.ts19 symbols
packages/client-query-suggestions/src/querySuggestionsClient.ts17 symbols
packages/advanced-personalization/src/advancedPersonalizationClient.ts17 symbols
packages/abtesting/src/abtestingV3Client.ts17 symbols
packages/recommend/src/recommendClient.ts16 symbols
packages/client-abtesting/src/abtestingClient.ts16 symbols

For agents

$ claude mcp add algoliasearch-client-javascript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page