AI Chat Application
Persistent AI chat product with GitHub OAuth, conversation history, streaming responses, modular AI provider architecture. Not just an API wrapper.
Tools Next.js · React · TypeScript · PostgreSQL · Drizzle · NextAuth · Zustand · OpenRouter
Topics Next.js · AI · PostgreSQL · Drizzle · Streaming
Development notes
Built a production AI chat app with persistent state, streaming responses, and modular provider architecture
My responsibilities
- Built full-stack architecture with Next.js
- Implemented streaming response system
- Created modular AI provider interface
- Integrated GitHub OAuth and user management
Design & engineering concepts
- Persistent conversation storage with PostgreSQL and Drizzle ORM
- Streaming response handling with Server-Sent Events
- Modular AIProvider interface for multiple LLM backends
- GitHub OAuth integration with NextAuth
Mechanics & implementation
- Conversation CRUD with soft delete and archiving
- Message history with context window management
- Real-time streaming UI with loading states
- Responsive design for mobile and desktop
Lessons learned
- Streaming responses improve perceived performance significantly
- Modular provider architecture enables easy LLM switching
- Persistent state is what separates products from demos
Problem
Build a persistent AI chat product rather than a simple AI API wrapper.
Key features
- GitHub OAuth
- Persistent conversations
- Message history
- Streaming responses
- Conversation CRUD
- Responsive UI
- Modular AI provider architecture
