humanbehavior-js
Version:
SDK for HumanBehavior session and event recording
14 lines (13 loc) • 495 B
text/typescript
import { HumanBehaviorTracker } from '../index.js';
// Create a Svelte store-like interface for HumanBehavior
export const humanBehaviorStore = {
init: (apiKey: string, options?: {
ingestionUrl?: string;
logLevel?: 'none' | 'error' | 'warn' | 'info' | 'debug';
redactFields?: string[];
suppressConsoleErrors?: boolean;
recordCanvas?: boolean; // Enable canvas recording with PostHog-style protection
}) => {
return HumanBehaviorTracker.init(apiKey, options);
}
};