Latest / Developer tools

ForesightJS

github.com · Open source · Active

Predicts user intent from pointer and keyboard movement to prefetch content

Visit github.com ↗Share

  • prefetching
  • mouse tracking
  • keyboard tracking
  • performance optimization
  • intent prediction
  • link prefetch
  • web performance
  • npm library
Stars
2k
Forks
44
Open issues
4
Last commit
Releases
26
Found
19 months ago

GitHub figures as of . They are context, not a ranking.

ForesightJS is a lightweight JavaScript library that predicts which link a user is about to open, so content can be prefetched earlier than with hover-based prefetching. It works without configuration on desktop and mobile and supports keyboard navigation.

Repository description on GitHub: “Lightweight JavaScript library that predicts user intent based on mouse movements and keyboard navigation. Perfect for smart prefetching. Also works for mobile!”

What it does

  • Predicts intent from mouse and keyboard movement
  • Works out of the box without configuration
  • Different prediction strategies for desktop and mobile

Good for

  • Prefetch likely navigation targets to speed up page loads
  • Add predictive prefetching to a site with keyboard users

Suits: Front-end developers optimizing site navigation.

What you can try

Install the js.foresight package from npm and add it to a page, following the README.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw ForesightJS on , when spaansba created its repository on GitHub. The oldest published release on GitHub is v2.0, dated . Its first tagged release came 25 days after it was found. 26 releases have been published in total; the latest is js.foresight@4.2.1 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).

Checked , later than day 7 because tracking began after.

Day 30 4 releases shipped

  • 4 releases in the first 30 days: v2.0 (2 Jun 2025), V2.0.1 (4 Jun 2025), V2.0.3 (6 Jun 2025), V2.0.4 (6 Jun 2025)

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (26 in total, busiest month 9).
  1. Repository created on GitHub: spaansba/ForesightJS
  2. Found: spaansba created its repository on GitHub. GitHub
  3. Release v2.0
  4. Release V3.5.0
  5. Release V4.0
  6. Release V4.1.0
  7. Release V4.2.0
  8. Release js.foresight-devtools@2.2.1
  9. Release js.foresight@4.2.1
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 26 releases. All releases on GitHub

Quick answers

When was ForesightJS released?
Its first tagged release on GitHub is dated 2 Jun 2025. Kip found it on GitHub on 8 May 2025.
Is ForesightJS open source?
Its source is public on GitHub at spaansba/ForesightJS under the MIT licence.
What does ForesightJS run on?
Library, Web.
Is ForesightJS free?
It is open source, so the code is free to read and run; check the licence for terms.
Is ForesightJS still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
GitHublisting
official API record
GitHub repositoryspaansba/ForesightJS
REST API record
GitHub Releasesrelease list
REST API record

Stable ID github-980107570. Summary written by KipFound’s editor.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.