WebInfer

Installation

Get started with WebInfer in your project

Overview

WebInfer provides multiple installation options depending on your use case:

  • Browser Extension - For end users to enable AI on any website
  • Client SDK - For developers building AI-powered applications (repository preview)
  • Direct polyfill - Call navigator.llm on pages where the extension is installed

Browser Extension

The WebInfer Chrome extension enables AI access on any website through the WebInfer SDK.

Installation

  1. Clone and build the repository using the development steps below
  2. Open chrome://extensions and load apps/extension/dist unpacked
  3. Configure API keys, use Chrome's browser-managed built-in AI when available, or connect a local daemon

Development Installation

To load the extension locally for development:

terminal
# Clone and buildgit clone https://github.com/iplanwebsites/webinfer.gitcd webinfernpm installnpm run build:extension# Load in Chrome# 1. Navigate to chrome://extensions# 2. Enable "Developer mode"# 3. Click "Load unpacked"# 4. Select apps/extension/dist

Client SDK preview

The intended public npm package has not shipped yet. Do not install the unscoped webinfer package from npm: it currently belongs to another project. During the early preview, consume@webinfer/client from a clone of this repository.

Installation

terminal
git clone https://github.com/iplanwebsites/webinfer.gitcd webinfernpm installnpm run build:client

From another local project, install the built workspace package by path:

terminal
npm install ../webinfer/packages/client

Then import the scoped client package:

app.ts
import { generateText } from '@webinfer/client'

What Gets Installed

The preview @webinfer/client package includes:

  • The typed browser SDK and transport selection
  • Availability, error and cancellation helpers
  • The navigator.llm facade types used by the extension

CDN availability

A WebInfer CDN build is not published during the early preview. URLs such as esm.sh/webinfer currently resolve the unrelated npm package and must not be used. Static pages can call the extension-injectednavigator.llm API directly; packaged SDK imports should wait for the T-006 release or use the local workspace path above.

Vercel AI SDK Provider

The Vercel AI SDK provider is also a repository preview and is not yet published on npm. Install it from a sibling clone:

terminal
npm install ../webinfer/packages/vercel-ai-provider ai@^7

Usage:

app.ts
import { webinfer } from 'webinfer-ai-provider'import { generateText } from 'ai'const result = await generateText({  model: webinfer(),  prompt: 'Explain TypeScript'})

Next Steps