# @ai-sdk/react

Latest version **4.0.140** (published 2026-10-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @ai-sdk/react
pnpm add @ai-sdk/react
yarn add @ai-sdk/react
bun add @ai-sdk/react
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.140 |
| Published | 2026-10-09 |
| First published | 2024-06-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 6 |
| Unpacked size | 318.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 27121 |
| Maintainers | vercel-release-bot, matheuss, matt.straka |
| Keywords | ai, react |

## Links

- npm: https://www.npmjs.com/package/@ai-sdk/react
- Repository: https://github.com/vercel/ai
- Homepage: https://ai-sdk.dev/docs
- Issues: https://github.com/vercel/ai/issues
- npm.io page: https://npm.io/package/@ai-sdk/react

## Dependencies (6)

- [ai](https://npm.io/package/ai.md) 7.0.137
- [swr](https://npm.io/package/swr.md) ^2.4.1
- [throttleit](https://npm.io/package/throttleit.md) 2.1.0
- [@ai-sdk/mcp](https://npm.io/package/@ai-sdk/mcp.md) 2.0.73
- [@ai-sdk/provider](https://npm.io/package/@ai-sdk/provider.md) 4.0.26
- [@ai-sdk/provider-utils](https://npm.io/package/@ai-sdk/provider-utils.md) 5.0.58

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 4.0.140 (latest) — 2026-10-09
- 3.0.306 (ai-v6) — 2026-10-09
- 2.0.276 (ai-v5) — 2026-10-07
- 0.0.0-f1630544-20260811180950 (snapshot) — 2026-08-11
- 4.0.0-beta.192 (beta) — 2026-06-24
- 4.0.0-canary.180 (canary) — 2026-06-15
- 2.0.0-alpha.15 (alpha) — 2025-06-18
- 4.0.139 — 2026-10-09
- 4.0.138 — 2026-10-08
- 4.0.137 — 2026-10-08
- 4.0.136 — 2026-10-08
- 4.0.135 — 2026-10-07
- 4.0.134 — 2026-10-07
- 3.0.305 — 2026-10-07
- 4.0.133 — 2026-10-07
- … 1274 more at https://npm.io/package/@ai-sdk/react/versions

## README

# AI SDK: React provider

[React](https://react.dev/) UI components for the [AI SDK](https://ai-sdk.dev/docs):

- [`useChat`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat) hook
- [`useCompletion`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-completion) hook
- [`useObject`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-object) hook

---
_Source: https://npm.io/package/@ai-sdk/react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
