Privacy-first AI chat with on-device models. No cloud, no tracking, just you and an AI companion.
Version: 0.2.7 | Next.js 16 + React 19 | TypeScript
- 🔐 Privacy First - All conversations stay on your device
- ⚡ Fast - GPU-accelerated (WebGPU) with CPU fallback
- 💬 Chat - Real-time streaming responses
- 🎨 Customizable - Themes, fonts, colors
- 💾 Persistent - Auto-saved chat history
- 📱 Responsive - Mobile, tablet, desktop
- 🗣️ Voice (optional) - Text-to-speech synthesis
- Frontend: Next.js 16, React 19, TypeScript, Tailwind CSS
- AI: WebLLM (GPU), Transformers.js (CPU)
- Storage: IndexedDB, localStorage
- Auth: Firebase Google OAuth
- Animation: Framer Motion
# Clone & install
git clone https://github.com/yourusername/dia-chat.git
cd dia-chat
npm install
# Setup environment
# Create .env.local with Firebase credentials
# Start dev server
npm run dev
# Open http://localhost:3000First time: Sign in → Go to /chat → Send message (model downloads ~730MB)
- Fork & clone
- Create feature branch:
git checkout -b feature/your-feature - Commit:
git commit -m "feat: description" - Push & create PR
Commit types: feat, fix, docs, style, refactor, perf
| Issue | Solution |
|---|---|
| Model download stuck | Clear cache (DevTools → Application → Clear storage) |
| IndexedDB error | Check if IndexedDB is available: window.indexedDB |
| Firebase auth fails | Verify .env.local & Firebase console settings |
| WebGPU not available | Falls back to CPU (slower). Check browser support |
| Build fails | Clear cache: rm -rf .next node_modules then reinstall |
MIT License - See LICENSE
- Issues: GitHub Issues
- Docs: Next.js | React | Firebase