Every browser state has a product state.
Feature detection, downloads, progress, cancellation, quotas, context overflow, failure, and cleanup are reactive and typed.
Private AI. Native to Chrome. Ready for your framework.
Production-ready components and composables for Chrome's Prompt API, writing tools, translation, Proofreader, and WebMCP. No inference server. No API key. No deep-reactivity slowdown.
A production layer, not another model SDK
Chrome provides the model. Browser AI Kit handles the states and limits that turn a browser experiment into a feature people can depend on.
Feature detection, downloads, progress, cancellation, quotas, context overflow, failure, and cleanup are reactive and typed.
Native sessions stay outside deep reactivity. Stream rendering is frame-coalesced so typing remains crisp during local inference.
Measure real browser quotas, split at safe boundaries, and merge with API-specific strategies instead of arbitrary character caps.
Start with accessible components, move to composables for a fully custom UI, and keep direct access to familiar native operations.
From install to local response in minutes
Drop in a complete chat interface or keep the UI entirely yours. Browser AI Kit stays close to Chrome's vocabulary, so the native documentation and your application code still line up.
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 context-strategy="summarize" />
</template>Calling the native API directly is a good fit for one-off tasks. The kit earns its place when lifecycle, persistence, SSR, or long content matters.
Live in your browser
Availability below is detected from this Chrome profile. Open an example to test the real local API—there is no mocked response or hosted fallback behind these demos.
Stream private chats, return schema-constrained JSON, and keep long sessions useful.
Turn long content into summaries, key points, headlines, or teasers on-device.
Draft text in the tone, format, and length your interface needs.
Make existing text clearer, shorter, longer, or more formal without a server.
Translate supported language pairs with Chrome-managed local packs.
Rank likely languages with confidence scores and long-text merging.
Correct grammar, spelling, and punctuation with inspectable edit ranges.
Publish lifecycle-safe app tools for compatible browser agents to discover and call.
Built for more than one ecosystem
Vue, Nuxt, React, Angular, Svelte, and a framework-neutral TypeScript core ship from one repository and share one tested browser-behavior contract.
Components, composables, and complete TypeScript coverage.
Package guide →Auto-imports, client components, and SSR-safe defaults.
Package guide →Hooks, external-store state, and accessible components.
Package guide →Signals, injectable services, and standalone components.
Package guide →Readable stores, controllers, and Svelte components.
Package guide →Tree-shakeable lifecycle, text, attachment, and WebMCP controllers.
Package guide →A privacy boundary users can understand
The library does not send prompts, outputs, or telemetry to DeSource Labs. Chrome owns model execution and storage. If your app adds a hosted fallback, that becomes a separate product and consent decision.
Read the privacy and fallback guide →Open source and ready to build on
Start with a package guide, run every API against your local Chrome profile, or inspect the shared contracts that keep every framework adapter aligned.