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.llmon pages where the extension is installed
Browser Extension
The WebInfer Chrome extension enables AI access on any website through the WebInfer SDK.
Installation
- Clone and build the repository using the development steps below
- Open
chrome://extensionsand loadapps/extension/distunpacked - 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:
# 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/distClient 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
git clone https://github.com/iplanwebsites/webinfer.gitcd webinfernpm installnpm run build:clientFrom another local project, install the built workspace package by path:
npm install ../webinfer/packages/clientThen import the scoped client package:
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.llmfacade 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:
npm install ../webinfer/packages/vercel-ai-provider ai@^7Usage:
import { webinfer } from 'webinfer-ai-provider'import { generateText } from 'ai'const result = await generateText({ model: webinfer(), prompt: 'Explain TypeScript'})Next Steps
- Quick Start - Make your first API call
- Browser Usage - Learn about the WebInfer SDK
- Provider Setup - Configure API keys for different providers