This example runs Open Chat Widget in a Vite frontend with an Express backend. The backend usesDocumentation Index
Fetch the complete documentation index at: https://docs.openchatwidget.com/llms.txt
Use this file to discover all available pages before exploring further.
gpt-5-mini and enables OpenAI’s native web_search tool.
Key files
examples/basic-react-express-app/src/App.tsxexamples/basic-react-express-app/server/index.tsexamples/basic-react-express-app/README.md
Run it
- Install dependencies:
- Configure environment variables:
- Start both the frontend and backend:
- Frontend:
http://localhost:5173 - API:
http://localhost:8787/api/chat
<OpenChatWidget />, and the widget streams responses from the Express POST /api/chat endpoint.
View repo folder
Open the full example source on GitHub.