A serverless AI-powered chat application that transforms messages through LLM processing with real-time peer-to-peer communication.
- AI Message Processing: Messages are transformed using OpenAI's GPT-4 in various styles (pirate, professional, Shakespeare, etc.)
- Peer-to-Peer Chat: Direct WebRTC connections between users for real-time messaging
- Serverless Architecture: Built on Netlify Functions with Netlify Blobs for persistence
- Room-based Chat: Join chat rooms with 4-character codes
- Client-side History: Local storage with peer-to-peer history sharing
- Mobile Responsive: Works seamlessly on desktop and mobile devices
- Frontend: Vanilla JavaScript with WebRTC
- Backend: Netlify Functions (serverless)
- AI Processing: OpenAI GPT-4.1-nano
- Real-time: WebRTC peer-to-peer data channels
- Storage: Netlify Blobs for signaling, localStorage for chat history
- Deployment: Netlify with automatic CI/CD
- HTML5, CSS3, Vanilla JavaScript
- WebRTC for P2P communication
- Netlify Functions (Node.js)
- OpenAI API
- Netlify Blobs
- Git/GitHub for version control
- Clone the repository
- Install dependencies:
npm install - Set up environment variables (see
.env.example) - Run locally:
npm run dev:netlify
OPENAI_API_KEY=your_openai_api_key_here
- User types message →
- Process through
/api/process-message(OpenAI) → - Broadcast via WebRTC data channels →
- Save to localStorage →
- Display in chat
[Live Demo URL will be here after deployment]
MIT License