WebLLM

In-browser LLM inference engine that runs models client-side over WebGPU with an OpenAI-style API.

Open SourceSelf HostedOffline CapableGPU Required
0.0 (0)

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

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 SourceSelf HostedOffline
Advanced
0.0 (0)

Open-source ChatGPT alternative that runs 100% offline on your computer.

Open SourceSelf HostedOffline
Beginner
0.0 (0)
Featured

Port of Meta's LLaMA model in C/C++ for efficient CPU inference

Open SourceSelf HostedOffline
Intermediate
0.0 (0)

Fast LLM inference on consumer GPUs using neuron-aware sparse computation.

Open SourceSelf HostedOfflineGPU 4GB+
Advanced
0.0 (0)
Featured

High-throughput LLM serving engine with PagedAttention

Open SourceSelf HostedOfflineGPU 16GB+
Intermediate
0.0 (0)

Minimalist machine learning framework for Rust focused on performance and serverless inference.

Open SourceSelf HostedOffline
Intermediate
0.0 (0)
Browse all LLM Inference & Serving tools