#2222nd of 29 in Model serving

web-llm

In-browser LLM inference engine with an OpenAI-style JavaScript API

Stars
19.3k
License
Apache-2.0
Last commit
Oct 2026
Last release
Sep 2026
Language
TypeScript

Missed the latest GitHub check; these facts may be older.

Overview

WebLLM is an npm package that runs MLC-format language models inside the browser using WebGPU, with no server component. It exposes an OpenAI-style engine.chat.completions interface with streaming, JSON mode and seeding, and supports Web Worker, Service Worker and Chrome extension setups. Custom models must be compiled to MLC format with MLC LLM.

Who it is for: Web developers embedding local LLM inference in browser apps or extensions

Strengths

  • Runs fully client-side on WebGPU, so no inference server is needed
  • OpenAI-style chat API with streaming, JSON mode and seed support
  • Worker, Service Worker and Chrome extension engines, with examples for each
  • Optional SRI hash verification of model config, WASM and tokenizer files

Weaknesses

  • Requires a WebGPU-capable browser
  • First load downloads full model weights; large models take a long time
  • Function calling is marked WIP; the model request parameter is ignored
  • Custom models must be compiled to MLC format through MLC LLM

What it needs

  • GPU required
  • Needs WebGPU-capable browser, MLC LLM (for compiling custom models)
  • Models: Llama 3, Llama 2, Phi 3, Gemma-2B, Mistral-7B

Also in Model serving

See all 29
Also in Model serving
RankProjectScore
1LocalAISelf-hosted inference server with OpenAI-compatible API and pluggable backends49.5k starsMIT82 out of 100
2OllamaLocal model runner with CLI and REST API for open-weight LLMs183.2k starsMIT80 out of 100
3llama.cppC/C++ inference engine serving GGUF models over an OpenAI-compatible API131.2k starsMIT80 out of 100
#4vLLMInference engine for Hugging Face LLMs with PagedAttention and continuous batching93.8k starsApache-2.076 out of 100
#5colibriC inference engine that runs huge MoE models by streaming experts from disk41.9k starsApache-2.072 out of 100