@algolia/client-personalization

中文文档
5.61.0发布于 2026/10/29MITTypeScriptESM + CJS构建来源已验证近 30 天下载 3023.1万

JavaScript client for client-personalization

原始使用文档
文档目录7 节
  1. ✨ Features
  2. 💡 Getting Started
  3. With a package manager
  4. Without a package manager
  5. Usage
  6. ❓ Troubleshooting
  7. 📄 License

Algolia for JavaScript

The perfect starting point to integrate Algolia within your JavaScript project

NPM version NPM downloads jsDelivr Downloads License

Documentation • InstantSearch • Community Forum • Stack Overflow • Report a bug • Support

✨ 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

[!TIP] This API client is already a dependency of the algoliasearch client, you don't need to manually install @algolia/client-personalization if you already have algoliasearch installed.

To get started, you first need to install @algolia/client-personalization (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 @algolia/[email protected]
# or
npm install @algolia/[email protected]
# or
pnpm add @algolia/[email protected]

Without a package manager

Add the following JavaScript snippet to the of your website:

<script src="https://cdn.jsdelivr.net/npm/@algolia/[email protected]/dist/builds/browser.umd.js"></script>

Usage

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

import { personalizationClient } from '@algolia/client-personalization';

const client = personalizationClient('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.

版本与发布记录

@algolia/client-personalization 共发布 274 个版本,首次发布于 2021/06/23;过去 12 个月发布了 35 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.61.0latest2026/10/297 天前
5.60.02026/10/1224 天前
5.59.02026/09/091 个月前
5.57.02026/08/182 个月前
5.56.02026/07/153 个月前
5.55.22026/07/083 个月前

其他发布通道:alpha → 5.0.0-alpha.112,beta → 5.10.0-beta.1,v4 → 4.27.0。

关于 @algolia/client-personalization 的常见问题

@algolia/client-personalization 是什么?

JavaScript client for client-personalization

如何安装 @algolia/client-personalization?

在项目目录运行 npm install @algolia/client-personalization,或使用 pnpm add / yarn add / bun add。

@algolia/client-personalization 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@algolia/client-personalization 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@algolia/client-personalization 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 14.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@algolia/client-personalization 可以商用吗?

@algolia/client-personalization 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@algolia/client-personalization 的下载量有多少?

根据 npm 官方下载统计,@algolia/client-personalization 在 2026/10/06 – 2026/11/04 这 30 天内被下载 30,230,885 次,日均约 1,007,696 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@algolia/client-personalization 还在维护吗?

最新版本 5.61.0 发布于 2026/10/29(7 天前);至今共发布 274 个版本,其中过去 12 个月发布了 35 个;首次发布于 2021/06/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。