Seekora Search SDK
The Seekora Search SDK is a JavaScript/TypeScript SDK for integrating with the Seekora Search API. It provides a comprehensive set of features for building powerful search experiences.
Features
- Search Functionality - Full-text search with filtering, faceting, and sorting
- Multi-Search - Batch up to 10 queries in a single request for federated search
- Query Suggestions - Autocomplete with dropdown recommendations and filtered tabs
- Analytics Tracking - Track clicks, views, conversions, and custom events
- Configuration Management - Manage store and query suggestions configuration
- Personalization - Support for user ID, anonymous ID, and session ID
- Multi-Environment - Built-in support for local, staging, and production environments
- TypeScript First - Full type definitions included
Package Information
| Property | Value |
|---|---|
| Package Name | @seekora-ai/search-sdk |
| License | MIT |
Quick Example
import { SeekoraClient } from '@seekora-ai/search-sdk';
// Initialize client
const client = new SeekoraClient({
storeId: 'your-store-id',
readSecret: 'your-read-secret',
environment: 'production',
});
// Perform a search
const results = await client.search('laptop', {
per_page: 20,
filter_by: 'price:100-500',
facet_by: 'category',
sort_by: 'price:asc',
});
console.log(`Found ${results.totalResults} results`);
// Track a click event
await client.trackClick(results.results[0].id, 1, results.context);
Next Steps
- Installation - Install the SDK in your project
- Quick Start - Get started with basic usage
- Search API - Learn about search functionality
- Query Suggestions - Implement autocomplete
- Analytics - Track user interactions
- Configuration - Configure the SDK
- User Management - User identification and personalization
- TypeScript Types - Type definitions referenceNeed pre-built UI components? See the UI SDK.