Skip to main content

A beta model for React that runs in the browser and estimates when a visitor is frustrated, confused or lost from how they interact with the page.

About Mood recognition

Mood recognition is an on-device beta model from Jakub Antalik at libraries.dev. It uses how someone moves a pointer, presses controls, scrolls and types to estimate frustration, confusion or difficulty finding the next step. The TypeScript kit exposes those signals to a React interface, which can use them to show a hint or emphasize the control the visitor needs. The model runs in the browser and does not read text or field values.

libraries.dev offers the JSON model and the React kit as separate ZIP downloads with a free account. The current versions use the Libraries.dev Model License. The license allows development and noncommercial use at no charge. A commercial release requires a paid license.

Pricing: Free for development and noncommercial use. Commercial releases require a paid license, from $9/month. Libraries.dev pricing

Pricing model: Freemium

Features

  • Uses pointer movement, presses, scrolling and typing patterns to estimate where a visitor may be stuck
  • Runs the 32 KB gzipped model locally in the browser without a server or an LLM
  • Reads positions, timings and control states without reading text or field values
  • Provides a React hook and a CSS variable for showing hints or emphasizing a blocked step
  • Offers separate downloads for the model and the TypeScript kit, with support for React 18 and later

FAQs

Common questions about Mood recognition

How do I install Mood recognition for React?
Download the React TypeScript kit and JSON model separately from the official install page using a free account. Bundle both with your app. The kit works with React 18 and later.
Does the model send interaction data to a server?
The model runs locally in the browser. It works from positions, timings and control states without reading field values, typed text or the contents of the screen.
Can I ship it in a commercial product?
Yes, with a qualifying paid license. Libraries.dev offers Pro for solo builders, Business for teams and Enterprise by agreement. See the Model License for release and redistribution terms.
How reliable is the beta?
The publisher says the model can miss short searches and interpret a blocked checkout as someone being lost. Use its output for small, reversible interface changes.

Featured