Build a minimalist AI-powered productivity coach with a glass morphism design that synthesizes insights from 15 productivity books.
- React 18 + TypeScript + Vite
- Tailwind CSS for styling
- Framer Motion for animations
- Gemini 2.5 Pro for AI responses
- Chat Interface - Clean conversation UI with glass effects
- Knowledge Base - Content from 15 productivity books
- AI Coach - Personalized advice using book insights
- Mobile Responsive - Works great on all devices
npm create vite@latest productivity-coach -- --template react-ts
cd productivity-coach
npm install tailwindcss framer-motion lucide-react react-markdown @google/genaiCreate .env.local:
GEMINI_API_KEY=your_gemini_api_key_here
src/
├── components/
│ ├── ui/ # Glass UI components
│ ├── chat/ # Chat interface
│ └── landing/ # Landing page
├── hooks/ # React hooks
├── utils/ # AI integration
├── knowledge/ # .md book files
└── types/ # TypeScript types
// Glass effect utility classes
.glass {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}// Simple AI hook
export function useProductivityChat() {
const [messages, setMessages] = useState([]);
const [isLoading, setIsLoading] = useState(false);
const sendMessage = async (content: string) => {
// Send to /api/chat endpoint
// Get AI response with full knowledge base
};
return { messages, sendMessage, isLoading };
}Simple Approach: Bundle all 15 book .md files and send complete context to Gemini 2.5 Pro. Let the AI do intelligent synthesis across books.
- Dark purple gradient background
- Glass morphism effects throughout
- White/translucent text
- Smooth animations
- Mobile-first responsive
- Simple two-page app (Landing + Chat)
- Real-time streaming responses
- Conversation persistence
- Markdown formatting support
- Create
/api/chat.tsserverless function - Add
GEMINI_API_KEYto environment variables - Deploy with
vercel --prod
- API keys only in serverless functions
- Never expose keys in client code
- Use CORS protection
- Atomic Habits (James Clear)
- Clear Thinking (Shane Parrish)
- Deep Work (Cal Newport)
- Discipline Equals Freedom (Jocko Willink)
- Effortless (Greg McKeown)
- Essentialism (Greg McKeown)
- Feel-Good Productivity (Ali Abdaal)
- Four Thousand Weeks (Oliver Burkeman)
- Hyperfocus (Chris Bailey)
- Indistractable (Nir Eyal)
- Off the Clock (Laura Vanderkam)
- Solving the Procrastination Puzzle (Timothy Pychyl)
- The Almanack of Naval Ravikant
- The Power of Habit (Charles Duhigg)
- Thinking, Fast and Slow (Daniel Kahneman)
- Fast load times (<3s)
- Beautiful glass aesthetic
- Intelligent AI responses grounded in books
- Smooth mobile experience
- Conversation persistence
✅ Complete UI with glass morphism
✅ Chat interface with streaming
✅ Knowledge base integration
✅ Gemini API integration
✅ Markdown response formatting
✅ Mobile responsive design
✅ New chat functionality
- Add your Gemini API key to
.env.local - Test with
npm run dev - Deploy to Vercel
- Optional: Add conversation memory, smart suggestions, progress tracking
The app provides intelligent productivity coaching by synthesizing insights from world-class books through a beautiful, modern interface.