qmetrics.net

WebLLM

In-browser WebGPU language model inference for web apps

WebLLM screenshot

WebLLM runs large language model inference inside the web browser with WebGPU acceleration and no server-side processing. Developers integrate it via npm, yarn, or CDN and use an OpenAI-compatible API.

Overview

WebLLM is an in-browser inference engine that brings language model execution onto the client with hardware acceleration through WebGPU. Inference stays on the user’s device instead of relying on a remote inference cluster, which the project positions as a path toward lower cost, personalization, and stronger privacy for AI assistants in web experiences.

The package exposes a modular interface centered on MLCEngine, which you create and use to load models and request chat completions. It mirrors the OpenAI chat API, including streaming responses, JSON mode, logit-level control, seeding, and preliminary function-calling support. Applications can offload work to dedicated web workers or service workers so heavy computation does not block the UI, and examples cover Chrome extensions as well as ordinary web pages.

WebLLM ships with built-in support for many open model families, including Llama, Phi, Gemma, Mistral, and Qwen, with a fuller catalog documented separately. Custom weights in MLC format can be integrated by supplying model artifact URLs and matching WebAssembly model libraries, reusing the same deployment flow as the related MLC LLM project.

You install WebLLM through npm or yarn, import it in application code, or load it from a CDN on platforms such as jsfiddle or CodePen. Optional integrity verification can check downloaded configs, WASM, and tokenizer files against Subresource Integrity hashes before models load. Several cache backends are available for stored artifacts, including options that depend on browser storage APIs or a compatible cross-origin extension.

Key features

  • WebGPU-accelerated in-browser inference
  • OpenAI-compatible chat completion API
  • Streaming and JSON-mode responses
  • Built-in Llama, Phi, Gemma, Mistral, and Qwen models
  • Custom MLC-format model integration
  • Web worker and service worker engines
  • npm, yarn, and CDN installation
  • Optional SRI integrity verification for model files

Use cases

  • Privacy-focused browser chatbots
  • Local OpenAI-style APIs in web apps
  • Chrome extensions with on-device LLMs
  • Offline-capable assistants via service workers
  • Interactive streaming chat UIs

Tags

Similar software

PageIndex

Reasoning-based document retrieval without vector indexes

PageIndex builds a hierarchical tree index from PDFs and answers questions by having a language model reason over that structure instead of embedding chunks in a vector database.

  • Tree index built from PDF layout
  • LLM reasoning over the index for retrieval
  • Local SDK with pluggable chat models
PythonDetails →
★ 40.9k⟳ yesterdayMIT

Composio

SDK and CLI for connecting AI agents to many apps

Composio equips AI agents with large sets of pre-authenticated toolkits, per-user sessions, authentication, triggers, and a sandbox. SDKs ship for TypeScript and Python with adapters for common agent frameworks.

  • Pre-authenticated app toolkits
  • Per-user agent sessions
  • Runtime tool discovery and execution
TypeScriptCLIDetails →
★ 31.4k⟳ yesterdayMIT

PageAgent

In-page JavaScript GUI agent for web applications

Embeddable script adds a natural-language agent to any webpage for DOM-based actions without screenshots or a Python backend.

  • Single-script or npm integration
  • DOM-based page manipulation
  • Bring-your-own LLM configuration
TypeScriptWeb, Browser extensionDetails →
★ 29.8k⟳ 4 days agoMIT

AI SDK

TypeScript toolkit for AI applications and agents

The AI SDK is a provider-agnostic TypeScript library for building AI-powered applications and agents with popular UI frameworks and Node.js runtimes.

  • Unified provider API
  • Vercel AI Gateway support
  • Text and structured output
TypeScriptDetails →
★ 28.4k⟳ yesterdayApache-2.0

Stagehand

SDK for AI-driven browser automation

Stagehand gives agents Playwright-style browser control with natural-language act, observe, and extract helpers. It ships for TypeScript, Python, and Go with local Chrome or hosted cloud browsers.

  • Playwright-style page methods
  • Natural-language act and extract
  • Self-healing action adaptation
TypeScriptCLIDetails →
★ 26.3k⟳ yesterdayMIT

Memvid

Single-file portable memory layer for AI agents

Packages embeddings, search structure, and metadata into one portable file so agents get fast retrieval and persistent memory without a separate vector database

  • Single .mv2 memory capsule file
  • Append-only Smart Frame storage
  • Hybrid BM25 and vector search
RustCLIDetails →
★ 17.4k⟳ 4 months agoApache-2.0