Vue · React · Svelte · Angular · Nuxt · TypeScript

Private, on-device AI.
Built for your app.

Add chat, summaries, writing tools, and translation to your app. Chrome runs the models locally; the kit provides components and APIs for your framework. No inference server or API key needed.

  • ✓ MIT licensed
  • ✓ TypeScript-first
  • ✓ SSR-safe
  • ✓ Zero telemetry
Local AI session Ready
Turn this release note into three customer benefits.
Clearer decisions. Structured output keeps every response predictable.

Faster workflows. Streaming local inference responds without a network round trip.

Private by default. Content stays inside the browser's built-in model.
Ask the local model…
AI processing stays on-device No API key
Prompt API Structured output Long-input handlingWebMCPFrameworks integration

Why Browser AI Kit

Chrome provides the models.
The kit makes them part of your app.

A useful AI feature needs more than a response. Give users clear download progress, streamed answers, saved conversations, and a way to stop, with state and cleanup that fit your framework.

01

Show availability and download progress

Know whether the model is ready, needs a download, or is unavailable. Components show these states for you; typed APIs give a custom interface the same information.

02

Stay responsive while AI works

Show answers as they arrive and let users stop a request. Stream updates are batched to keep the interface responsive, and sessions are reused across compatible requests.

03

Handle long text and conversations

Summarize long documents in chunks, translate text in order, and restore chat context as conversations grow. Shared workflows account for the model's input limits.

04

Use components or build your own UI

Start with a complete chat or writing tool. Keep your own design with Vue composables, React hooks, Svelte stores, Angular signals, or plain TypeScript controllers.

Quick start

Choose your framework.

Install one package and add a chat component, or connect the APIs to your own interface. Component styles are a single import; Nuxt adds them automatically.

Vue quick start
npm install @desource/browser-ai-vue

<script setup lang="ts">
import { PromptApi } from "@desource/browser-ai-vue";
import "@desource/browser-ai-vue/assets/lib.css";
</script>

<template><PromptApi /></template>
Vue package guide →

Open your app in Chrome on HTTPS or localhost. The first use may need a model download. Check browser setup →

Application behaviorNative APIKit
Download and readiness UXBuild itIncluded
Measured long inputBuild itIncluded
Prompt context recoveryBuild itIncluded
Nuxt SSR safetyManualIncluded
Accessible starter UINoneIncluded

A direct native call can be enough for a small experiment. Use the kit when your app needs download progress, streaming UI, saved chats, or long-input handling.

Live in your browser

Try local AI
in your browser.

Open an example to see what your browser can do. AI demos use the local models available on your device; WebMCP lets you try application tools. Required downloads start when you choose to use a feature.

Packages

At home in
your framework.

Use familiar refs, hooks, stores, or signals. All four UI frameworks include the same chat and text tools. Nuxt adds client-safe auto-imports, and the TypeScript core works without a UI framework.

Private, on-device AI

Your users' prompts stay with them.

Chrome processes AI requests locally. The kit sends no prompts, responses, or telemetry to DeSource Labs. Once the model is downloaded, inference can work offline too. Your app's WebMCP tools and any cloud services you connect have their own data flows.

Read the privacy and fallback guide →

Open source · MIT

Give your app its first local AI feature.

Choose your framework, add a component, and try it with a model running on your device.