What is Klevu JS Library?

Klevu JavaScript library (aka JSv2) is a community-driven, open-source JS library that can be used to build Klevu search UIs from scratch. This library gives full control of Klevu JavaScript, HTML and CSS to you, the developers, and provides a more flexible approach than our hosted JS approach.

We recommend everybody (merchants, agencies and developers) read through our Frequently Asked Questions which help to explain why we’ve created this library and who it is suitable for.

Getting Started for Developers

The library itself is a small JavaScript file that can be loaded directly or downloaded from the following URL: https://js.klevu.com/klevu-js-v2/2.0/klevu.js. For versioning information, please click here.

To help you get started and learn how to use Klevu JavaScript Library to build your own search integration, we’ve prepared some demos and examples which we recommend following in the below order: