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