React SDK
SDK Introduction
Build React applications with Pipecat’s React client library
The Pipecat React SDK provides React-specific components and hooks for building voice and multimodal AI applications. It wraps the core JavaScript SDK functionality in an idiomatic React interface that handles:
- React context for client state management
- Components for audio and video rendering
- Hooks for accessing client functionality
- Media device management
- Event handling through hooks
Installation
Install the SDK, core client, and a transport implementation (e.g. Daily for WebRTC):
Example
Here’s a simple example using Daily as the transport layer:
Explore the SDK
Components
Ready-to-use components for audio, video, and visualization
Hooks
React hooks for accessing client functionality
The Pipecat React SDK builds on top of the JavaScript SDK to provide an idiomatic React interface while maintaining compatibility with the RTVI standard.