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

spaansba/ForesightJS

Some data may be outdated — see provenance labels.

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

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

Health v2 · maintenance only

80/100

  • Activity 96
  • Release rhythm 84
  • Longevity 37
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 3
  • age_days: 530
  • days_rel: 104
  • days_push: 24
  • n_releases_24m: 26

Full methodology

Adoption not part of the score

1815 stars · 40 forks observed · 2026-09-29

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/ForesightJSmain80

For agents

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

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem