#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.

Stars
19.4k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
TypeScript
Stars, last 35 weeks+1,956
25 Mar 2026: 17,463 stars1 Apr 2026: 17,498 stars8 Apr 2026: 17,564 stars15 Apr 2026: 17,620 stars22 Apr 2026: 17,665 stars29 Apr 2026: 17,703 stars6 May 2026: 17,784 stars13 May 2026: 17,827 stars20 May 2026: 17,904 stars27 May 2026: 17,946 stars3 Jun 2026: 17,994 stars10 Jun 2026: 18,045 stars17 Jun 2026: 18,107 stars24 Jun 2026: 18,164 stars1 Jul 2026: 18,189 stars8 Jul 2026: 18,233 stars15 Jul 2026: 18,274 stars22 Jul 2026: 18,343 stars29 Jul 2026: 18,385 stars5 Aug 2026: 18,429 stars12 Aug 2026: 18,471 stars19 Aug 2026: 18,500 stars26 Aug 2026: 18,527 stars2 Sept 2026: 18,807 stars9 Sept 2026: 18,988 stars16 Sept 2026: 19,086 stars23 Sept 2026: 19,132 stars30 Sept 2026: 19,172 stars7 Oct 2026: 19,216 stars14 Oct 2026: 19,246 stars21 Oct 2026: 19,277 stars28 Oct 2026: 19,309 stars4 Nov 2026: 19,344 stars11 Nov 2026: 19,368 stars18 Nov 2026: 19,398 stars25 Nov 2026: 19,419 stars

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

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
Also in Model serving
RankProjectScore
#19rapid-mlxMLX-based LLM inference server for Apple Silicon with coding-agent tool calling4.2k stars+144 (+3.6%) in 30 daysApache-2.083 out of 100
#20airllmPython library that runs huge LLMs on small GPUs by streaming layers Live demo ↗ (opens in a new tab)43.6k starsApache-2.082 out of 100
#22mooncakeKV cache transfer engine and distributed cache store for LLM inference clusters7.2k stars+241 (+3.5%) in 30 daysApache-2.082 out of 100
#23llama-swapGo proxy that starts and swaps local model servers per request6.4k stars+221 (+3.6%) in 30 daysMIT82 out of 100
#24openvinoInference toolkit for converting and running models on Intel CPUs, GPUs and NPUs13.1k starsApache-2.081 out of 100