A simple, ready-to-use client for testing the SmallWebRTCTransport.
Actively maintained. Last release 7 months ago, commits in 15 of the last 26 weeks. A safe choice.
pip install pipecat-ai-small-webrtc-prebuiltSmallWebRTC Prebuilt
A simple, ready-to-use client for testing the SmallWebRTCTransport.
This prebuilt client provides basic WebRTC functionality and serves as a lightweight tool to quickly verify transport behavior without needing a custom implementation.
Ideal for development, debugging, and quick prototyping.
📦 Installation & Usage
If you just want to use the prebuilt WebRTC client in your own Python project:
✅ Install from PyPI
pip install pipecat-ai-small-webrtc-prebuilt
🧰 Example Usage
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
from pipecat_ai_small_webrtc_prebuilt.frontend import SmallWebRTCPrebuiltUI
app = FastAPI()
# Mount the frontend at /prebuilt
app.mount("/prebuilt", SmallWebRTCPrebuiltUI)
@app.get("/", include_in_schema=False)
async def root_redirect():
return RedirectResponse(url="/prebuilt/")
🧪 Try a Sample App
Want to see it in action? Check out our sample app demonstrating how to use this module:
⌨ Development Quick Start
If you want to work on the prebuilt client itself or use it locally in development:
📋 Prerequisites
🔧 Set Up the Environment
- Clone the Repository
git clone https://github.com/your-org/small-webrtc-prebuilt.git
cd small-webrtc-prebuilt
- Build the Client
The Python package serves a built React client, so you need to build it first:
cd client
npm install
npm run build
cd ..
This creates the client/dist/ directory that the Python package will serve.
- Try the Sample App
Now you can test the local package with the sample app:
cd test
uv sync # Installs dependencies and the local package in editable mode
uv run bot.py