@tavus/cvi-ui
v0.0.1
Published
A CLI tool for installing and managing CVI components
Readme
Tavus CVI Component Library
A CLI tool for installing and managing CVI (Conversational Video Interface) components for React applications. This library provides pre-built components for creating real-time multimodal video conversations with AI replicas.
Quick Start
Initialize the project:
npx @tavus/cvi-ui@latest initThis will:
- Create a
cvi-components.jsonconfiguration file - Prompt for TypeScript preference
- Install the necessary dependencies
Add components to your project:
npx @tavus/cvi-ui@latest add conversationWrap your app with the CVI provider:
import { CVIProvider } from './components/cvi/components/cvi-provider';
function App() {
return (
<CVIProvider>
{/* Your app content */}
</CVIProvider>
);
}Add conversation components:
import { Conversation } from './components/cvi/components/conversation';
function CVI() {
return (
<div
style={{
width: '100%',
height: '100%',
maxWidth: '1200px',
margin: '0 auto',
}}
>
<Conversation conversationUrl='YOUR_TAVUS_MEETING_URL' onLeave={() => {}} />
</div>
);
}Documentation
Examples
License
MIT License - see the LICENSE file for details.
