@amodalai/react
v0.1.19
Published
React bindings for Amodal agent runtime
Downloads
1,955
Readme
@amodalai/react
React hooks, components, and embeddable chat widget for adding Amodal agents to any web application.
Install
npm install @amodalai/reactQuick start
import { ChatWidget } from "@amodalai/react/widget";
import "@amodalai/react/widget/style.css";
function App() {
return (
<ChatWidget
endpoint="https://your-runtime.example.com"
appId="your-app-id"
/>
);
}What's included
- Chat widget — drop-in conversational UI with SSE streaming, tool call display, and theming via CSS custom properties
- React hooks —
useChat,useSessionHistory,useWidgetEventsfor building custom chat interfaces - SSE client —
ChatClientfor connecting to the Amodal runtime from any JavaScript environment - Widget components — entity cards, timelines, data tables, score breakdowns, and more
