
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
recombee-js-api-client
Advanced tools
Client-side js library for easy use of the Recombee recommendation API
There are two ways to include the library in your project:
You can add the following <script> tag into your HTML file:
<script src="https://cdn.jsdelivr.net/npm/recombee-js-api-client@6.1.0/dist/recombee-api-client.min.js"></script>
After this script is included, you can access the client using the global recombee object (also available as window.recombee).
If you prefer, you can also use a package manager:
npm install recombee-js-api-client
# or
yarn add recombee-js-api-client
# or
pnpm add recombee-js-api-client
# or
bun add recombee-js-api-client
Afterwards, you can import the recombee object:
import recombee from 'recombee-js-api-client'
With the recombee object, you can send user-item interactions and receive recommendations as follows:
// Initialize the API client with the ID of your database and the associated PUBLIC token
export const client = new recombee.ApiClient(
'database-id',
'...db-public-token...',
{
// the region of your database (default: 'eu-west')
region: 'us-west',
},
);
// Send interactions
client.send(
new recombee.AddDetailView('user-4395', 'item-129', {
cascadeCreate: true,
recommId: '23eaa09b-0e24-4487-ba9c-8e255feb01bb',
}),
);
// Request recommendations
client
.send(
new recombee.RecommendItemsToItem('item-356', 'user-13434', 5, {
returnProperties: true,
includedProperties: ['title'],
}),
)
.then((response) => {
// `recommId` needs to be sent with interactions based on recommendations
console.log(response.recommId);
// The `recomms` object contains the `id` (and `values` if `returnProperties` is true)
response.recomms.forEach((item) => {
console.log(`ID: ${item.id}, Title: ${item.values.title}`);
});
})
.catch((error) => {
console.log(error);
// use fallback...
});
Discover the full JavaScript API Client documentation for comprehensive guides and examples.
For a complete breakdown of all endpoints and their responses, check out our API Reference.
We welcome all contributions—whether it’s fixing a bug, improving documentation, or suggesting a new feature.
To contribute, simply fork the repository, make your changes, and submit a pull request. Be sure to provide a clear description of your changes.
Thanks for helping make this project better!
Are you having issues? We recommend checking our documentation to see if it contains a possible solution.
If you want to reach out, you can either open a GitHub issue or send an email to support@recombee.com.
The Recombee JavaScript API Client is provided under the MIT License.
FAQs
Client-side js library for easy use of the Recombee recommendation API
We found that recombee-js-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.