@hikari/chat-react

Chat SDK for React

Three integration tiers — from zero-code script tags to fully custom headless primitives. All powered by agent-api.

import { ChatBubble, ChatProvider } from "@hikari/chat-react";

Pre-built Components

React

Drop-in ChatBubble, ChatSidebar, and ChatPage with built-in theming and styling.

ThemingSuggestionsA2UIHITL

Headless Primitives

React

Unstyled Chat.* compound components. Full behavior, zero styling opinions.

Custom CSSFull controlAccessibleComposable

Zero-JS Embed

HTML

Single script tag. No React, no build step. Works on any website.

No buildJS APIEventsdata-* config

Full Feature Coverage

🎨

A2UI Rendering

18 component types rendered automatically

🛡

Human-in-the-Loop

Approvals, choices, and text inputs

Client Actions

Register frontend functions the AI can call

📦

State Sharing

Share app state with the AI via readables

🔧

Custom Tool UI

Replace default tool call rendering with custom components

💬

Suggestions

AI-generated suggestion chips with custom instructions

🌙

Theming

Light, dark, and system themes with customizable accent

🎯

Page Actions

Agent-driven highlights, tooltips, and DOM injection