There are several LiveKit example projects with a React frontend, but none of the official templates or repositories demonstrate a FastAPI backend specifically. Instead, the available examples typically use Flask for the backend along with React for the frontend. For instance:
•
IVR Navigator: Uses a Python Flask backend and a React frontend (with LiveKit React components).
[Source: ]
•
Agent-starter-react: A React/Next.js based frontend template with a token server (not FastAPI, but can be adapted).
[Source: ]
You can use these Flask backend examples as a foundation and easily adapt them to FastAPI, since both are Python web frameworks and LiveKit provides a Python server SDK. The React frontends can connect to any Python backend that handles token creation and authentication, room management, and webhook handling—all tasks suitable for FastAPI as well.
Official LiveKit templates can be created with the LiveKit CLI:
lk app create --template <template-name>
While no FastAPI template is available, adapting the Flask examples is straightforward and well supported by the existing documentation and SDKs.
Sources:
complex-agents/ivr-agent/ivr-agent-frontend/package-lock.json |
README.md |
README.md |
README.md |
TEMPLATE.md |
Example Applications | livekit/livekit_composite | DeepWiki |
template-default/package.json |
ivr-nagivator/frontend/package.json