Package · npm

js.foresight

npm · v4.2.1 · MIT

Predicts where users will click based on mouse movement, keyboard navigation, and scroll behavior. Includes touch device support. Triggers callbacks before interactions happen to enable prefetching and faster UI responses. Works with any framework.

Tentative categories were assigned with moderate confidence (0.5 to 0.75): they are shown, but they do not count toward a category’s momentum. How categories work

Install

npm install js.foresight

Adoption

Downloads (30 days)
124.9K
Observeddownloads / 30 days
Popularity
Lower half on npm
Derived26th percentile within npm
Dependents
Collectinghistory
Collecting
Maintenance
0.76
DerivedRelease cadence and recency, 0 to 1
Releases per year
55
64 versions over its life

Growth by period

Derived by Crest of Tech from two observations of npm’s own figure, a period apart. Nothing is stored or estimated: without an observation near the period’s start, the period is still collecting.

7 days
+8.5% · 7d
Derived+9.8K downloads / 30 days, SEP 30 → OCT 7
30 days
+16.2% · 30d
Derived+17.5K downloads / 30 days, SEP 7 → OCT 7
90 days
+65.1% · 90d
Derived+49.2K downloads / 30 days, JUL 6 → OCT 7
1 year
+708.3% · 1y
Derived+109.5K downloads / 30 days, NOV 10 → OCT 7

Adoption history

Adoption historydownloads / 30 days · 31 observations

SEP 7, 2026: 107,480 downloads / 30 daysSEP 8, 2026: 106,222 downloads / 30 daysSEP 9, 2026: 106,165 downloads / 30 daysSEP 10, 2026: 106,990 downloads / 30 daysSEP 11, 2026: 105,492 downloads / 30 daysSEP 12, 2026: 101,708 downloads / 30 daysSEP 13, 2026: 103,466 downloads / 30 daysSEP 14, 2026: 105,552 downloads / 30 daysSEP 15, 2026: 104,407 downloads / 30 daysSEP 16, 2026: 104,769 downloads / 30 daysSEP 17, 2026: 105,291 downloads / 30 daysSEP 18, 2026: 106,184 downloads / 30 daysSEP 19, 2026: 103,579 downloads / 30 daysSEP 20, 2026: 103,744 downloads / 30 daysSEP 21, 2026: 106,719 downloads / 30 daysSEP 22, 2026: 110,593 downloads / 30 daysSEP 23, 2026: 112,633 downloads / 30 daysSEP 24, 2026: 112,532 downloads / 30 daysSEP 25, 2026: 109,618 downloads / 30 daysSEP 26, 2026: 109,127 downloads / 30 daysSEP 27, 2026: 106,188 downloads / 30 daysSEP 28, 2026: 108,987 downloads / 30 daysSEP 29, 2026: 113,885 downloads / 30 daysSEP 30, 2026: 115,163 downloads / 30 daysOCT 1, 2026: 117,789 downloads / 30 daysOCT 2, 2026: 116,553 downloads / 30 daysOCT 3, 2026: 123,709 downloads / 30 daysOCT 4, 2026: 124,939 downloads / 30 daysOCT 5, 2026: 131,846 downloads / 30 daysOCT 6, 2026: 130,323 downloads / 30 daysOCT 7, 2026: 124,939 downloads / 30 days
Table of observations (31)
Daydownloads / 30 daysDependents
OCT 7, 2026124,939Not observed
OCT 6, 2026130,323Not observed
OCT 5, 2026131,846Not observed
OCT 4, 2026124,939Not observed
OCT 3, 2026123,709Not observed
OCT 2, 2026116,553Not observed
OCT 1, 2026117,789Not observed
SEP 30, 2026115,163Not observed
SEP 29, 2026113,885Not observed
SEP 28, 2026108,987Not observed
SEP 27, 2026106,188Not observed
SEP 26, 2026109,127Not observed
SEP 25, 2026109,618Not observed
SEP 24, 2026112,532Not observed
SEP 23, 2026112,633Not observed
SEP 22, 2026110,593Not observed
SEP 21, 2026106,719Not observed
SEP 20, 2026103,744Not observed
SEP 19, 2026103,579Not observed
SEP 18, 2026106,184Not observed
SEP 17, 2026105,291Not observed
SEP 16, 2026104,769Not observed
SEP 15, 2026104,407Not observed
SEP 14, 2026105,552Not observed
SEP 13, 2026103,466Not observed
SEP 12, 2026101,708Not observed
SEP 11, 2026105,492Not observed
SEP 10, 2026106,990Not observed
SEP 9, 2026106,165Not observed
SEP 8, 2026106,222Not observed
SEP 7, 2026107,480Not observed

Facts from the registry

Latest version
v4.2.1
64 versions
First published
MAY 8, 2025
Last release
JUL 8, 2026
4mo ago
Licence
MIT

Repository

In the Crest catalog

spaansba/ForesightJS

Lightweight JavaScript library that predicts user intent based on mouse movements and keyboard navigation. Perfect for smart prefetching. Also works for mobile!

Stars
1.8K
Forks
41
Language
TypeScript
Last push
23d ago
Last release
4mo ago

Linked by the package’s own registry metadata.GitHub (opens in a new tab)

Dependencies latest version · v4.2.1

Runtime 2

  • position-observer^1.0.3
  • tabbable^6.4.0

Related news

No published news event mentions this package or its repository yet.