# mathisonian/premonish

Predict which DOM element a user will interact with next.

Repository: https://github.com/mathisonian/premonish
Canonical: https://ross.abutalabs.com/products/premonish
Homepage: https://mathisonian.github.io/premonish
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2016-12-09T21:39:46+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3562, "days_push": 3554, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1729, forks 46 (observed 2026-08-28T04:05:28.546783+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: web-development, frontend, performance
- platform: browser
- tags: mouse-prediction, intent-detection, preload, voronoi, dom, nodejs

## Member repositories
- mathisonian/premonish (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.546783+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:31:57.314624+00:00, confidence not recorded.
  - readme: https://github.com/mathisonian/premonish (fetched 2026-08-28T04:05:28.546783+00:00, sha d1b36bfb2e9a)
  - homepage: https://mathisonian.github.io/premonish (fetched 2026-08-29T11:09:04.054641+00:00, sha 8fc211eeec1a)
  - registry_npm: https://registry.npmjs.org/premonish (fetched 2026-08-29T11:09:04.057227+00:00, sha f2d0264be9ff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
