@polpo-ai/react package wraps the TypeScript SDK with React hooks and a context Provider. It connects to the SSE event stream for live updates — no polling needed.
Install
Provider setup
Wrap your app withPolpoProvider:
| Prop | Type | Default | Description |
|---|---|---|---|
baseUrl | string | required | API base URL |
apiKey | string | — | Project API key |
autoConnect | boolean | true | Auto-connect to SSE stream |
eventFilter | string[] | — | Filter SSE events (e.g. ["task:*"]) |