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:

  • Try our Live Demo to see what a feature-rich integration might look like.
  • Follow this Hello World basic example, which introduces all core elements of the library.
  • Next follow our more advanced Examples and Tutorials to give it try for yourself.
  • Use the search functionality and Object Reference section of this documentation to find out more about the core library code.
  • Sign up to our Community Forum to see what kinds of questions people are asking and find answers to your own.
  • Finally get in touch with us to start your next project!