SDK API reference

SDK API reference

Overview of all @kelpclick/client exports - functions, types, errors, and constants.

@kelpclick/client is the root package. It re-exports every capability from all subpath modules. You can import everything from the root, or import only the subpath you need to keep bundles small.

Version

The SDK exports its own version string:

import { VERSION } from '@kelpclick/client';

console.log(VERSION); // e.g. '0.2.0'

What is exported

CategoryExports
Client factorycreateKelpClient
Capability factoriescreateKelpSearch, createAnalytics, createIdentity, createKelpEmail
Client methodssearch, browse, suggest, trackEvents, identify (on the returned client)
Storage utilitiesmemoryStorage, localStorageAdapter, resolveStorage
Analytics helpersdefaultSerializeFilterBy
Error classesKelpError, KelpApiError, KelpNotImplementedError
ConstantsVERSION
TypesSee Types

Subpath re-exports

All subpaths are re-exported from the root:

import {
  createKelpClient,
  createKelpSearch,
  createAnalytics,
  createIdentity,
  createKelpEmail,
} from '@kelpclick/client';

Or import only what you need:

import { createKelpSearch } from '@kelpclick/client/search';
import { createAnalytics }  from '@kelpclick/client/analytics';
import { createKelpEmail }  from '@kelpclick/client/email';
import { KelpProvider, useSearch } from '@kelpclick/client/react';

See Subpath exports for the full entry-point table and tree-shaking guidance.

Reference pages

  • Functions - all exported functions with signatures and one-line purpose
  • Types - all exported types and interfaces with field tables

On this page