WriteTrack Documentation
WriteTrack is a TypeScript SDK that captures and analyzes typing behavior. It records behavioral signals like timing, rhythm, corrections, and clipboard interactions from any text input element.
Get Started Install and integrate WriteTrack in under 5 minutes
Download Full Docs Get all documentation as a single file for LLMs
Key Features
Section titled “Key Features”- 100% Client-side — All capture and analysis happens in the browser; no data is sent anywhere unless you configure output sinks
- Framework agnostic — Works with vanilla JS, React, Vue, Svelte, or any frontend framework
- Lightweight — ~115KB gzipped, zero runtime dependencies
- Detailed Behavioural Data — Captures timing, rhythm, corrections, clipboard usage, and more
Quick Example
Section titled “Quick Example”import { WriteTrack, webhook } from 'writetrack';
const textarea = document.querySelector<HTMLTextAreaElement>('#response-field')!;const tracker = new WriteTrack({ target: textarea });
// Session data is POSTed to your endpoint when getData() is calledtracker.pipe(webhook({ url: 'https://api.example.com/writetrack' }));tracker.start();
// ... user types ...
// Retrieve session data and dispatch to all registered sinksconst data = tracker.getData();How It Works
Section titled “How It Works”WriteTrack instruments your text inputs and captures behavioral signals:
- Timing Patterns — Dwell time (key hold duration), flight time (between keystrokes), rhythm consistency
- Correction Behavior — Backspaces, deletions, arrow key navigation, revision patterns
- Clipboard Interactions — Paste events, selection patterns, copy/cut operations
- Session Dynamics — Typing bursts, natural pauses, fatigue progression
- Authenticity Analysis — Optional WASM-powered analysis scores each session across six categories: content origin, timing authenticity, session continuity, physical plausibility, revision behavior, and temporal patterns
Browser Compatibility
Section titled “Browser Compatibility”- Desktop: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
- Mobile: iOS Safari 14+, Android Chrome 90+, Mobile Firefox 88+
Next Steps
Section titled “Next Steps”- Quickstart — Install and integrate in under 5 minutes
- Licensing — License keys for production use
- API Reference — Complete method reference