r/javascript • • 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-llm
0 Upvotes

11 comments sorted by

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.

1

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

u/Traditional-Hall-591 Aug 03 '25

Locally generated slop. Sweet!!

18

u/[deleted] Aug 02 '25

[removed] — view removed comment

10

u/gmaaz Aug 02 '25

And battery

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

u/_koenig_ Aug 04 '25

No data should be cached/shared between domains for security purposes.

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.