Skip to content

API Reference

new WriteTrack(selector: string, options?: WriteTrackOptions)

Creates a new WriteTrack instance attached to the specified input element.

tracker.analyze(): AnalysisResult

Returns an analysis of the typing patterns captured so far.

Returns:

{
isAuthentic: boolean; // Whether typing appears human
confidence: number; // Confidence score (0-1)
signals: SignalData; // Detailed behavioral signals
}
tracker.reset(): void

Clears all captured data and resets the tracker.

tracker.stop(): void

Stops capturing events. Call this when the input is no longer needed.

tracker.getStats(): Statistics

Returns current capture statistics without performing full analysis.

interface WriteTrackOptions {
minSamples?: number;
sensitivity?: 'low' | 'medium' | 'high';
captureClipboard?: boolean;
captureCorrections?: boolean;
}
interface AnalysisResult {
isAuthentic: boolean;
confidence: number;
signals: {
timingVariance: number;
rhythmScore: number;
correctionRate: number;
pasteRatio: number;
};
}