ForesightJS
github.com · Open source · Active
Predicts user intent from pointer and keyboard movement to prefetch content
- Developer tools
- Open source
- TypeScript
- Day-7 check
- Day-30 check
- prefetching
- performance
- javascript
- 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.
Release timeline every entry links to its source
- Repository created on GitHub: spaansba/ForesightJS
- Found: spaansba created its repository on GitHub. GitHub
- Release v2.0
- Release V3.5.0
- Release V4.0
- Release V4.1.0
- Release V4.2.0
- Release js.foresight-devtools@2.2.1
- Release js.foresight@4.2.1
- Day-7 check recorded by Kip (details)
- 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
| Source | Record | Last checked |
|---|---|---|
| GitHub | listing official API record | |
| GitHub repository | spaansba/ForesightJS REST API record | |
| GitHub Releases | release list REST API record |
Stable ID github-980107570. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.