An intelligent AI-powered learning companion built with Next.js, supporting multiple AI providers (Google Gemini, OpenAI).
- 🤖 Multi-provider AI support (Google Gemini, OpenAI)
- 💬 Real-time streaming responses
- 📸 Image upload and analysis
- 🎓 Personalized learning coaching
- 📱 Responsive design with Tailwind CSS
- 🧮 LaTeX math equation support
- 🚀 Production-ready deployment
- Node.js 18+
- API keys: Google Gemini or OpenAI
-
Clone and install:
git clone https://github.com/cityisempty/StudyPal.git cd StudyPal npm install -
Configure environment:
cp .env.example .env.local # Edit .env.local with your API keys: # GEMINI_API_KEY=your_key_here # OPENAI_API_KEY=your_key_here
-
Run development server:
npm run dev
- Push code to GitHub
- Visit https://vercel.com
- Import GitHub repository (StudyPal)
- Add environment variables in Vercel Dashboard
- Deploy
See detailed deployment guide →
GEMINI_API_KEY- Google Gemini API keyOPENAI_API_KEY- OpenAI API keyOPENAI_BASE_URL- OpenAI endpoint (default: https://api.openai.com/v1)OPENAI_MODEL_NAME- Model name (default: gpt-3.5-turbo)
- Framework: Next.js 16+ (Turbopack)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Lucide React
- AI Integration: @google/genai, OpenAI SDK
- Markdown: react-markdown with LaTeX support
- Deployment Guide - Detailed deployment instructions for Vercel, Cloudflare, and other platforms
- Architecture Overview - Technical architecture details
npm run dev # Start development server
npm run build # Build for production
npm start # Start production server
npm run lint # Run ESLintMIT
For issues and questions, please open an issue on GitHub.
View your app in AI Studio: https://ai.studio/apps/drive/1pt1iRLK_y-ZWqWDjBSsmlMSGc8B_unvx
