Ross ROSS = Recommend OSS · open-source software intelligence for agents

spaansba/ForesightJS

Lightweight JavaScript library that predicts user intent based on mouse movements and keyboard navigation. Perfect for smart prefetching. Also works for mobile! observed · 2026-08-28

github.com/spaansba/ForesightJS · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

81/100

  • Activity 94
  • Release rhythm 92
  • Longevity 34
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: 3
  • age_days: 482
  • days_rel: 56
  • days_push: 37
  • n_releases_24m: 26

Full methodology

Adoption not part of the score

1803 stars · 40 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

ForesightJS is a lightweight, framework-agnostic JavaScript library that predicts user intent from mouse trajectory, keyboard navigation, scroll, and touch cues to trigger prefetching before a user reaches a link or element. It ships official integrations for React, Vue, Angular, and Astro, plus devtools for visual debugging.

Use cases

  • prefetch links before the user hovers them
  • predict user intent from mouse movement
  • prefetch on keyboard tab navigation
  • smart prefetching for mobile touch devices
  • reduce perceived page load times
  • prefetch content when user scrolls toward an element
  • respect data-saver and slow connections when prefetching

When to choose

  • you want intent-based prefetching that works out of the box with zero configuration
  • you need framework-agnostic prefetching with official React, Vue, Angular, or Astro adapters
  • you want to support both desktop (mouse/keyboard) and mobile (touch/viewport) prediction strategies
  • you need to avoid wasting bandwidth on slow connections or data-saver mode

When to avoid

  • you only need simple hover or click prefetching without intent prediction
  • your app is not browser-based (e.g., server-side or native-only)
  • you cannot tolerate any client-side JavaScript overhead for tracking user input

Facets

library · maturity active

caching developer-tools middleware web-development frontend performance browser cross-platform prefetching intent-prediction mouse-trajectory keyboard-navigation smart-prefetch react vue angular astro typescript web-server

7 sources

Member repositories

RepositoryRoleHealth v2
spaansba/ForesightJSmain81

For agents

markdown · JSON · MCP: product_card(name="spaansba/ForesightJS")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem