from Hacker News

OS JavaScript library to prefetch on mouse intent

by BartSpaans on 5/15/25, 8:47 AM with 1 comments

  • by BartSpaans on 5/15/25, 8:47 AM

    Hi HN,

    I recently dropped ForesightJS, an open source Javascript library where developers can prefetch content based on mouse intent instead of onClick or onHover like we are used to doing.

    Since ForesightJS is framework agnostic, it can be integrated with any JavaScript framework. While I haven't yet built integrations for every framework, ready-to-use implementations for React Router and Next.js are already available.

    I would love feedback on this project!

    open-source repo https://github.com/spaansba/ForesightJS