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
| Category | Exports |
|---|---|
| Client factory | createKelpClient |
| Capability factories | createKelpSearch, createAnalytics, createIdentity, createKelpEmail |
| Client methods | search, browse, suggest, trackEvents, identify (on the returned client) |
| Storage utilities | memoryStorage, localStorageAdapter, resolveStorage |
| Analytics helpers | defaultSerializeFilterBy |
| Error classes | KelpError, KelpApiError, KelpNotImplementedError |
| Constants | VERSION |
| Types | See 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.