mathisonian/premonish
Predict which DOM element a user will interact with next. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3562
- days_rel: n/a
- days_push: 3554
- n_releases_24m: 0
Adoption not part of the score
1729 stars · 46 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small JavaScript library that predicts which DOM element a user is about to interact with by analyzing mouse velocity and expected position using a voronoi-based approach. It exposes an onIntent callback with the predicted element and a confidence score.
Use cases
- predict which link a user will hover next
- preload resources before a user clicks
- optimize UI interactions based on mouse intent
- implement a smarter bubble cursor
- trigger hover effects early based on mouse trajectory
When to choose
- you want to speculatively preload content before a click
- you need lightweight mouse-intent prediction in the browser
- you want to improve perceived performance with early hover/click preparation
When to avoid
- you need touch or keyboard interaction prediction
- you require high-accuracy intent detection beyond naive mouse trajectory heuristics
- the project needs actively maintained dependencies
Facets
library · maturity maintenance
ui-components developer-tools web-development frontend performance browser mouse-prediction intent-detection preload voronoi dom nodejs
3 sources
- readme: https://github.com/mathisonian/premonish · fetched 2026-08-28 · d1b36bfb2e9a
- homepage: https://mathisonian.github.io/premonish · fetched 2026-08-29 · 8fc211eeec1a
- registry_npm: https://registry.npmjs.org/premonish · fetched 2026-08-29 · f2d0264be9ff
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mathisonian/premonish | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="mathisonian/premonish")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem