Usage
API Index
Complete searchable index for all Human-Like APIs
Use this page to find any prop, callback, hook method, or config key fast. Each item links to its canonical section.
Component Props
text
(string) – Text to type → Component APIspeed
(number) – Base ms per char → Component APImistakeFrequency
(number) – Error probability → Component APIkeyboardMode
('mobile'|'desktop') – Platform behavior → Component APIshowCursor
(boolean) – Show cursor → Component APIcursorChar
(string) – Cursor symbol → Component APIcursorBlinkSpeed
(number) – Blink interval → Component APIautoStart
(boolean) – Start on mount → Component APIid
(string) – Instance identifier → Component APIclassName
(string) – CSS class → Component APIstyle
(React.CSSProperties) – Inline styles → Component APIconfig
(Partial<HumanLikeConfig>) – Advanced config → Component API
Event Callbacks
onStart
– Typing started → EventsonComplete
– Typing finished → EventsonChar
– Character typed → EventsonMistake
– Mistake made → EventsonBackspace
– Backspace pressed → EventsonPause
– Typing paused → EventsonResume
– Typing resumed → EventsonKey
– Key pressed → EventsonStateChange
– State changed → EventsonKeyboardReset
– Keyboard reset → EventsonError
– Error occurred → Events
Hook Methods
start()
– Start typing → Hook APIstop()
– Stop typing → Hook APIpause()
– Pause typing → Hook APIresume()
– Resume typing → Hook APIreset()
– Reset to beginning → Hook APIskip()
– Skip to end → Hook APIrewind()
– Go to beginning → Hook API
Hook Return Values
Display State
displayText
(string) – Current typed text → Hook APIisTyping
(boolean) – Currently typing → Hook APIisPaused
(boolean) – Currently paused → Hook APIisCompleted
(boolean) – Finished typing → Hook APIcurrentState
(TypingState) – Detailed state → Hook API
Progress & Performance
progress
(number) – Progress 0-100 → Hook APIcurrentWPM
(number) – Words per minute → Hook APImistakeCount
(number) – Total mistakes → Hook APItotalDuration
(number) – Time elapsed (ms) → Hook API
Cursor State & Control
showCursor
(boolean) – Cursor visibility → Hook APIcursorChar
(string) – Cursor character → Hook APIcursorBlinkSpeed
(number) – Blink speed → Hook APIsetCursorVisible
(function) – Set cursor visibility → Hook APIsetCursorChar
(function) – Set cursor character → Hook APIsetCursorBlinkSpeed
(function) – Set blink speed → Hook API
Configuration Keys
Core Timing
speed
(number) – Base ms per char → ConfigurationspeedVariation
(number) – Random ±ms → ConfigurationminCharDelay
(number) – Minimum delay → Configuration
Platform & Mistakes
keyboardMode
('mobile'|'desktop') – Platform → ConfigurationmistakeFrequency
(number) – Error probability → ConfigurationmistakeTypes
(object) – Enabled mistake kinds → Configuration
Human Behavior
fatigueEffect
(boolean) – Gradual slowdown → ConfigurationconcentrationLapses
(boolean) – Random pauses → Configurationovercorrection
(boolean) – Correction mistakes → Configuration
Advanced Timing
sentencePause
(number) – Pause after . ! ? → ConfigurationwordPause
(number) – Pause between words → ConfigurationthinkingPause
(number) – Pause before complex words → ConfigurationbackspaceSpeed
(number) – Correction speed → ConfigurationrealizationDelay
(number) – Time to notice mistakes → ConfigurationcorrectionPause
(number) – Pause before retyping → Configuration
Development
debug
(boolean) – Enable console logging → Configuration
Constants & Utilities
Timing Constants
TIMING_CONSTANTS.BASE_SPEED
– Default typing speed → ConstantsTIMING_CONSTANTS.SPEED_VARIATION
– Random variation → ConstantsTIMING_CONSTANTS.SENTENCE_PAUSE
– Pause after sentences → ConstantsTIMING_CONSTANTS.WORD_SPACE
– Pause between words → ConstantsTIMING_CONSTANTS.BACKSPACE_SPEED
– Correction speed → ConstantsTIMING_CONSTANTS.THINKING_PAUSE
– Complex word pauses → Constants
Behavior Constants
BEHAVIOR_RATES.MISTAKE_FREQUENCY
– Base mistake rate → ConstantsBEHAVIOR_RATES.CONCENTRATION_LAPSE
– Random pause rate → ConstantsBEHAVIOR_RATES.BURST_TYPING
– Rapid sequence rate → ConstantsBEHAVIOR_RATES.OVERCORRECTION_RATE
– Correction mistake rate → Constants
Adjacent Key Maps
DESKTOP_ADJACENT
– QWERTY adjacent keys → ConstantsMOBILE_ADJACENT
– Touch-optimized keys → ConstantsQWERTY_ADJACENT
– Legacy desktop keys → ConstantsgetAdjacentKeys(mode)
– Get platform keys → Constants
Specialized Constants
COMMON_TYPOS
– Real-world typo mapping → ConstantsSPECIAL_CHARS
– Special character set → ConstantsSHIFT_CHARS
– Shift-requiring characters → ConstantsNUMBER_CHARS
– Number character set → ConstantsDEFAULT_CONFIG
– Complete default config → Constants
Keyboard Components
MobileKeyboard
– Touch keyboard component → Mobile KeyboardDesktopKeyboard
– Physical keyboard component → Desktop KeyboarduseKeyPressIndicator
– Key press tracking hook → Key Press IndicatorKeyboardSimulationDemo
– Complete demo component → Keyboard Simulation Demo
TypeScript Types
Core Interfaces
HumanLikeProps
– Component props interface → TypesHumanLikeHookOptions
– Hook options interface → TypesHumanLikeHookReturn
– Hook return interface → TypesHumanLikeConfig
– Configuration interface → Types
Event & State Types
MistakeInfo
– Mistake event data → TypesKeyInfo
– Key press event data → TypesStateChangeEvent
– State transition data → TypesErrorEvent
– Error event data → TypesTypingState
– Typing state enum → Types
Utility Types
Platform
– Platform detection type → TypesKeyType
– Key classification type → TypesMistakeType
– Mistake classification → TypesKeyboardView
– Keyboard view enum → TypesShiftState
– Shift key state enum → Types