WebLLM
In-browser LLM inference engine that runs models client-side over WebGPU with an OpenAI-style API.
About
Everything WebLLM does happens client-side: the engine downloads model weights into browser cache and runs LLM inference through WebGPU, so a chat application needs no inference server at all. The API is deliberately OpenAI-shaped, with streaming chat completions and JSON-schema structured generation, letting existing OpenAI client code retarget to in-browser models. It ships prebuilt support for Llama 3, Phi 3, Gemma, Mistral, and Qwen model families through the MLC LLM ecosystem, and custom models can be compiled with MLC's workflow; the project is the official companion to MLC LLM. Integration options cover dedicated web workers and service workers to keep the UI responsive, Chrome extensions, and multiple cache backends including the Cache API, IndexedDB, and OPFS. Installation is npm install @mlc-ai/web-llm or a CDN import. Apache-2.0 licensed with about 18.5k GitHub stars and a paper at arXiv 2412.15803, it is the standard way to put a genuinely private, offline-capable LLM inside a web page, provided the visitor's browser and GPU support WebGPU.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- LLM Inference & Serving
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Intermediate (3/5)
- License
- Apache-2.0
- Added
- Jul 29, 2026
Related Tools
Minimalist ML framework in Rust by Hugging Face for fast inference.
Open-source ChatGPT alternative that runs 100% offline on your computer.
Port of Meta's LLaMA model in C/C++ for efficient CPU inference
Fast LLM inference on consumer GPUs using neuron-aware sparse computation.
High-throughput LLM serving engine with PagedAttention
Minimalist machine learning framework for Rust focused on performance and serverless inference.