Skip to main content

Constructor.io JavaScript Client

Build powerful search experiences with AI-powered results optimization, natural language processing, and personalized recommendations.

Key Features

AI-Powered Search

Deliver relevant results with natural language processing and machine learning optimization.

Smart Autocomplete

Provide instant suggestions as users type with intelligent query prediction.

Product Browse

Enable seamless catalog browsing with powerful filtering and faceting capabilities.

Personalized Recommendations

Show tailored product suggestions based on user behavior and preferences.

Interactive Quizzes

Guide users to perfect products through conversational quiz experiences.

AI Shopping Agent

Engage customers with an intelligent conversational commerce assistant.

Quick Start

1

Install the package

Install the Constructor.io JavaScript client via npm:
npm install @constructor-io/constructorio-client-javascript
2

Initialize the client

Create a client instance with your API key:
const ConstructorioClient = require('@constructor-io/constructorio-client-javascript');

const constructorio = new ConstructorioClient({
  apiKey: 'YOUR_API_KEY'
});
3

Start searching

Use the search module to retrieve results:
const results = await constructorio.search.getSearchResults('laptop');
console.log(results);

Explore the Documentation

Installation Guide

Learn how to install and set up the JavaScript client in your project.

Core Concepts

Understand client configuration, tracking, and user segmentation.

Module Guides

Explore detailed guides for search, autocomplete, browse, and more.

API Reference

Complete API documentation for all modules and methods.

Why Constructor.io?

Constructor.io provides search as a service that optimizes results using artificial intelligence, including:
  • Natural Language Processing - Understand user intent beyond simple keyword matching
  • AI-Powered Re-ranking - Optimize results to maximize conversions and revenue
  • Personalization - Adapt results based on individual user behavior and preferences
  • Real-time Analytics - Track and analyze search performance with comprehensive metrics
This client is intended for browser environments and React Native applications. For server-side integrations, use @constructor-io/constructorio-node.

Build docs developers (and LLMs) love