Libraries.dev drops on-device UI mood model
Libraries.dev released Mood Recognition, a 32 KB on-device behavioral model for React that detects user frustration, confusion, and hesitation from cursor movements and click patterns. Running locally via 360 gradient-boosted trees, it evaluates 43 interaction metrics four times per second to trigger adaptive UI adjustments without cloud calls or LLM latency.
Adaptive UI has long been bottlenecked by intrusive server-side telemetry or bloated LLM orchestration; running compact decision trees entirely in the browser solves both privacy and latency hurdles for dynamic UX.
- –Zero-latency local inference: Packaging 360 gradient-boosted trees into a 32 KB gzipped JSON payload enables 250 ms evaluation cycles and 66 ms fast-path signal handling with zero network overhead.
- –Privacy-first behavioral telemetry: Tracks purely kinetic parameters—cursor trajectory, velocity jitter, rage clicks, and disabled button hits—without inspecting user text inputs, DOM content, or screen captures.
- –Actionable adaptive primitives: The companion React hook (useMood) exposes smooth reaction scores (0–1) and CSS variables (--mood), allowing developers to subtly highlight unlock steps, reveal hints, or slow down animations when users struggle.
- –Tree-based over deep learning: Opting for lightweight GBDTs rather than neural nets keeps browser memory footprints negligible while generalizing across planted UX roadblocks with an 80% detection rate.
- –Licensing caveats: Free for development and non-commercial prototypes under MIT for the wrapper, but the underlying JSON model weights require a commercial Libraries.dev Pro license for production deployments.
DISCOVERED
30m ago
2026-11-24
PUBLISHED
2h ago
2026-11-24
RELEVANCE
AUTHOR
Jakubantalik