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
Markdown
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).**
```bash
pnpm add js.foresight
npm install js.foresight
yarn add js.foresight
```