New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@aibind/react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aibind/react

AI SDK bindings for React — hooks for streaming, structured output, and agents

Source
npmnpm
Version
0.9.0
Version published
Maintainers
1
Created
Source

@aibind/react

Low-level React hooks for AI streaming. If you're using Next.js, use @aibind/nextjs instead — it wraps this package with sensible defaults and server handlers.

Install

npm install @aibind/react ai react

Using Next.js? Install @aibind/nextjs instead — it includes this package and adds API route handlers and default endpoints.

Usage

This package requires you to specify an endpoint for every hook. For Next.js projects, @aibind/nextjs provides defaults automatically.

"use client";

import { useStream } from "@aibind/react";

function Chat() {
  const { text, loading, send } = useStream({
    endpoint: "/api/stream", // required
    system: "You are a helpful assistant.",
  });

  return <p>{text}</p>;
}

Entry Points

EntryExports
@aibind/reactuseStream, useStructuredStream, defineModels
@aibind/react/agentuseAgent
@aibind/react/markdownStreamMarkdown
@aibind/react/historyChatHistory, MessageTree
@aibind/react/projectProject

Documentation

Full documentation: aibind.dev

Requirements

  • React 18+ or 19+
  • AI SDK 6.0+

License

MIT

Keywords

react

FAQs

Package last updated on 09 Mar 2026

Related posts