packages/web-ui/example/README.md
This is a minimal example showing how to use @mariozechner/pi-web-ui in a web application.
npm install
npm run dev
Open http://localhost:5173 in your browser.
This example demonstrates:
The example uses Direct Mode by default, which means it calls AI provider APIs directly from the browser.
To use the chat:
API keys are stored in your browser's localStorage and never sent to any server except the AI provider's API.
example/
├── src/
│ ├── main.ts # Main application entry point
│ └── app.css # Tailwind CSS configuration
├── index.html # HTML entry point
├── package.json # Dependencies
├── vite.config.ts # Vite configuration
└── tsconfig.json # TypeScript configuration