Bart Spaans's Avatar

Bart Spaans

@bartspaans.com

Self-taught developer currently creating ForesightJS, an open-source library for prefetching based on mouse movement

27
Followers
101
Following
68
Posts
07.03.2025
Joined
Posts Following

Latest posts by Bart Spaans @bartspaans.com

Thanks!

18.08.2025 06:39 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Gratz!

16.08.2025 06:28 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Half of the youtubers I used to watch now only spit out AI videos.

09.08.2025 19:36 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

๐Ÿ˜ณ๐Ÿ˜ณ๐Ÿ˜ณ

06.08.2025 18:17 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 1
Preview
Release V3.3.0 - Full Touch Device Support! ๐Ÿ“ฑ ยท spaansba/ForesightJS V3.3.0 js.foresight This version introduces first-party touch device support for mobile and pen interactions. While desktop systems use multiple concurrent prediction strategies (mouse trajectory, ...

Full mobile/pen support for ForesightJS is live in V3.3.0!

github.com/spaansba/For...

02.08.2025 16:47 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Crazy results for foresight.com

02.08.2025 08:45 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Opened a discussion space for ForesightJS and the devtools. Feel free to share how you are using it or ask questions!

github.com/spaansba/foresightjs/discussions

30.07.2025 17:38 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Mobile support for js.foresight beta is live ๐Ÿ˜. Let me know what you think and if you run into any bugs.

It has 2 options "viewport" (default) and "onTouchStart". Which can be set by using the touchDeviceStrategy prop during initialization.

29.07.2025 21:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

b. In a it feels like the cards stacked on top of eachother are grouped together even though they are not

26.07.2025 07:11 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Gratz!!

19.07.2025 05:08 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

Never miss when Claude Code is done running

14.07.2025 08:04 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

1 in 20,229 ๐Ÿ˜

14.07.2025 06:55 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
ForesightJS ForesightJS is a lightweight JavaScript library that predicts user intent based on mouse movements and keyboard navigation, enabling optimal prefetching timing and improved performance.

See for yourself!

foresightjs.com

11.07.2025 17:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Released V3.1.1 of Foresight with new devtools written in Lit

11.07.2025 17:23 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Nothing special but the one I had the most issue with was checking if a line was intersecting with a DOMRect.

07.07.2025 15:19 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Adding border radius to everything is the โ€” of UI.

07.07.2025 15:08 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Tried @lit.dev for the Foresight devtools and its so much fun to work with.

Probably will make a full switch to it as the current control panel is getting hard to maintain without a framework.

06.07.2025 14:52 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

This would have been a huge help! I recently had to create a bunch of functions regarding the DOMRect, and I'm not a geometry expert, so this would have been very useful.

05.07.2025 13:21 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Ah thats great! Good job

04.07.2025 09:15 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Is this defined per event log or will it show on every sequential event of the same type?

04.07.2025 09:05 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

thanks for sharing, had no idea!

03.07.2025 17:30 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Bundle Results of ForesightJS 3.0 > 2.2

- Bundle size: 77.6kB โ†’ 25kB (-68%)
- Gzipped: 18.6kB โ†’ 7.7kB (-58%)
- Download time: 372ms โ†’ 155ms (-58%)
- Dependencies: 3 โ†’ 2

02.07.2025 07:05 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Events | ForesightJS Documentation on how to use the built-in js.foresight events

Just released V3.0.0 of ForesightJS! By decoupling the debugger into a new package (js.foresight-devtools) the core package is now 68% smaller (7.7kb minified + gzipped) ๐Ÿ˜.

This is done by introducing events, which can now also be used by users for telemtry etc.

foresightjs.com/docs/getting...

01.07.2025 12:52 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I'm trying to decouple the Foresight Debugger completely from the js.foresight package. However, I don't know the right approach to take for this. Is there anyone with experience doing that is open for a chat?

30.06.2025 08:03 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
ForesightJS ForesightJS is a lightweight JavaScript library that predicts user intent based on mouse movements and keyboard navigation, enabling optimal prefetching timing and improved performance.

Completely redesigned the docs of foresightjs.com

Feedback is appreciated!

24.06.2025 13:11 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
useForesight | ForesightJS React hook for ForesightJS integration

Official React hook for ForesightJS is live: foresightjs.com/docs/integra...

23.06.2025 16:30 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

What is the best app for getting an overview of all your finances? Love something I can host myself if possible

20.06.2025 03:16 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

This Week In React 238

Read and subscribe here!
thisweekinreact.com/newsletter/238

โš›๏ธ
- React Router
- RSC
- shadcn/ui
- TanStack Start
- React Aria
- ForesightJS
- Cosmos
๐Ÿ“ฑ
- iOS 26
- JSI setRuntimeData
- Windows
- Nitro
- WebView
- Bottom Tabs
- PencilKit

11.06.2025 18:03 ๐Ÿ‘ 19 ๐Ÿ” 4 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
https://nextjs.org/docs/app/guides/prefetching

https://nextjs.org/docs/app/guides/prefetching

No way, the prefetching docs of @nextjs.org refer to ForesightJS ๐Ÿ˜ณ.

11.06.2025 12:39 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Release V2.1 ~ Performance Gains and better debugger! ยท spaansba/ForesightJS Features Added onAnyCallbackFired to the ForesightManager, this function will run when ANY callback function is hit. Read More Added new debuggerSettings.showNameTags to show or hide name tags on ...

Just shipped ForesightJS v2.1 performance update.

Key changes:
- Replaced ResizeObserver + scroll/resize events with PositionObserver for async bounds calculation
- Added IntersectionObserver to only track elements in the viewport

Check out the changelog: github.com/spaansba/For...

10.06.2025 06:55 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0