js.foresight
Version:
Predicts mouse trajectory to trigger actions as users approach elements, enabling anticipatory UI updates or pre-loading. Made with vanilla javascript and usable in every framework.
77 lines • 2.09 kB
JSON
{
"name": "js.foresight",
"version": "3.0.1",
"description": "Predicts mouse trajectory to trigger actions as users approach elements, enabling anticipatory UI updates or pre-loading. Made with vanilla javascript and usable in every framework.",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/spaansba/ForesightJS"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"keywords": [
"javascript-prefetch",
"smart-prefetch",
"fast-prefetch",
"mouse-trajectory",
"element-hitslop",
"foresight",
"interaction-prediction",
"cursor-prediction",
"vanilla-javascript",
"prefetching",
"keyboard-tracking",
"keyboard-prefetching",
"tab-prefetching"
],
"author": "Bart Spaans",
"license": "MIT",
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@types/node": "^22.15.30",
"@vitest/coverage-v8": "3.2.4",
"@vitest/ui": "^3.2.4",
"happy-dom": "^18.0.1",
"jsdom": "^26.1.0",
"rollup": "^4.42.0",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"tslib": "^2.8.1",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"dependencies": {
"position-observer": "^1.0.0",
"tabbable": "^6.2.0"
},
"scripts": {
"build": "rollup -c --bundleConfigAsCjs",
"rollup": "rollup -c --bundleConfigAsCjs",
"dev": "rollup -c --bundleConfigAsCjs --watch",
"test": "vitest",
"test:watch": "vitest --watch",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"test:run": "vitest run"
}
}