r/javascript • u/andreinwald • Aug 02 '25
WebGPU enables running LLM in your browser with JavaScript. Check this demo AI chat. No API requests, no downloaded programs. iPhone (iOS26) and Android also supported!
https://github.com/andreinwald/browser-llm1
u/0xEconomist Aug 05 '25
Can you give a browser-based JS notebook so that one can play around?
something like this - https://app.scribbler.live/?jsnb=https://examples.scribbler.live/WebLLM-Experiments.jsnb
0
18
Aug 02 '25
[removed] — view removed comment
10
2
u/andreinwald Aug 02 '25
Model works via WASM file. I hope browsers will cache them between sites, maybe based on file hash.
1
0
u/LuckyOneAway Aug 02 '25
i don't want to download the same model from four different sites consuming disk space (and data volume).
CDN helps with it. You download most JS codes just once, even if they are used across many sites.
7
u/iliark Aug 02 '25
You're definitely downloading a program and the model, it's just going to your cache instead of an easily accessible spot on the file system.