#2121st of 129 in Model serving
web-llm
Runs LLMs inside the browser on WebGPU with an OpenAI-style JS API
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts web-llm on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.web-llm is on your watch list. Its new releases and problems show there.
- Stars
- 19.4k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- TypeScript
17,463 on 25 Mar 202619,419 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
WebLLM is a TypeScript npm package that runs quantized LLMs entirely in the browser using WebGPU and WebAssembly, with no server. It exposes an OpenAI-style `engine.chat.completions` API with streaming, JSON mode and seeding, and supports web workers, service workers and Chrome extensions. Models use the MLC format, and custom models are compiled through MLC LLM.
Who it is for: Web developers adding local, in-browser LLM inference to their apps
Strengths
- No server needed: inference and model caching happen client-side, so prompts stay in the browser
- OpenAI-style chat API with streaming, JSON mode, and seed for reproducible output
- Web Worker, Service Worker and Chrome extension support, with examples in the repo
- Optional SRI hash verification of model config, WASM and tokenizer files
Weaknesses
- Requires a WebGPU-capable browser; the README gives no browser or GPU requirements
- First run downloads full model weights, which can take a long time
- Function calling is marked WIP, so OpenAI compatibility is partial
- Custom models must be compiled to MLC format with MLC LLM
What it needs
- GPU required
- Needs WebGPU-capable browser, MLC LLM (for custom model compilation)
- Models: Llama 3, Llama 2, Phi 3, Gemma-2B, Mistral-7B
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Reported, then fixed by a linked change
- Build not working : require is not defined in ES module scope ↗ (opens in a new tab)1 reactions · closed 6 May 2026Fixed by [Fix] Update cleanup script ↗ (opens in a new tab)
- gemma3-1b-it-q4f16_1-MLC cannot load, and with sliding_window_size: -1 it outputs garbage ↗ (opens in a new tab)0 reactions · closed 30 Oct 2026Fixed by [Version] Bump version to 0.2.87 ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Model serving
See all 129| Rank | Project | Score |
|---|---|---|
| #19 | rapid-mlxMLX-based LLM inference server for Apple Silicon with coding-agent tool calling | 83 out of 100 |
| #20 | airllmPython library that runs huge LLMs on small GPUs by streaming layers | 82 out of 100 |
| #22 | mooncakeKV cache transfer engine and distributed cache store for LLM inference clusters | 82 out of 100 |
| #23 | llama-swapGo proxy that starts and swaps local model servers per request | 82 out of 100 |
| #24 | openvinoInference toolkit for converting and running models on Intel CPUs, GPUs and NPUs | 81 out of 100 |