UNPKG

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.

18 lines (12 loc) 463 B
# js.foresight The core ForesightJS library package. A lightweight JavaScript/TypeScript library that predicts user intent based on mouse movements, scroll behavior, and keyboard navigation. Published as `js.foresight` on npm. **For complete documentation, usage examples, and API reference, see the [main README](../../README.md).** ## Installation ```bash pnpm add js.foresight # or npm install js.foresight # or yarn add js.foresight ```