A modern AI-powered chatbot application built with Laravel and Alpine.js, featuring real-time streaming responses and conversation management.
- Real-time Streaming: Get AI responses in real-time with streaming support
- Conversation Management: Create, rename, and manage multiple conversations
- Modern UI: Clean interface built with Tailwind CSS and Alpine.js
- Markdown Support: Render formatted responses with syntax highlighting
- Persistent Storage: SQLite database for conversation history
- Backend: Laravel 12, PHP 8.2+
- Frontend: Alpine.js, Tailwind CSS 4
- Database: SQLite
- Build Tools: Vite
- Additional: Marked.js (Markdown), Highlight.js (Syntax highlighting), DOMPurify (Sanitization)
- Clone the repository
- Install dependencies:
composer setupStart the development server:
composer devThis will start:
- Laravel server (http://localhost:8000)
- Queue worker
- Log viewer
- Vite dev server
GET /api/conversations- List all conversationsGET /api/conversations/{id}- Get conversation detailsPOST /api/conversations- Create new conversationPUT /api/conversations/{id}- Update conversationDELETE /api/conversations/{id}- Delete conversationPOST /api/conversations/{id}/rename- Rename conversation
POST /api/chat/send/{conversationId?}- Send messagePOST /api/chat/stream/{conversationId?}- Stream message response
Run tests:
composer testMIT