# Browser AI provider for Vercel AI SDK

<div align="center">

![Hero](https://raw.githubusercontent.com/jakobhoeg/browser-ai/main/packages/vercel/core/hero.png)

</div>

<div align="center">

[![NPM Version](https://img.shields.io/npm/v/%40browser-ai%2Fcore)](https://www.npmjs.com/package/@browser-ai/core)
[![NPM Downloads](https://img.shields.io/npm/dm/%40browser-ai%2Fcore)](https://www.npmjs.com/package/@browser-ai/core)
[![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/%40browser-ai%2Fcore)](https://www.jsdelivr.com/package/npm/@browser-ai/core)

</div>

A TypeScript library that provides access to browser-based AI capabilities with seamless fallback to using server-side models using the [Vercel AI SDK](https://ai-sdk.dev/). This library enables you to leverage **Chrome** and **Edge's** built-in browser AI features ([Prompt API](https://github.com/webmachinelearning/prompt-api)) with the AI SDK.

## Installation

```bash
npm i @browser-ai/core
```

The `@browser-ai/core` package is the AI SDK provider for your Chrome and Edge browser's built-in browser AI models. It provides seamless access to both language models and text embeddings through browser-native APIs.

## Documentation

For a complete documentation including examples, refer to [this](https://www.browser-ai.dev/docs/ai-sdk-v6/core) site.

## Author

2025 © Jakob Hoeg Mørk
