@hanfani/react
v0.1.0
Published
React board UI — components and hooks — for the Hanfani agent framework.
Maintainers
Readme
@hanfani/react
React board UI — components and hooks — for the Hanfani
agent framework. It renders the agent board (agent cards, pipeline columns, run/gate modals,
activity panel) and provides the hooks that talk to a @hanfani/server runtime over its HTTP +
SSE API (useBoard, useGate, useDispatch, useWorkItemThread, useHealth, …).
Install
pnpm add @hanfani/react @hanfani/core react react-domUsage
import { WorkflowsProvider, AgentGrid, type WorkflowsConfig } from '@hanfani/react'
import '@hanfani/react/styles.css'Exports
| Entry | Contents |
|-------|----------|
| . | Components + hooks (AgentGrid, AppHeader, PipelineColumn, useBoard, useGate, useWorkItemThread, …) |
| ./testIds | Stable data-testid values for e2e tests |
| ./styles.css | The compiled stylesheet — import once at the app root |
