https://github.com/krishnagandhicode/brainwave-ai
Brain Wave AI is a cutting-edge web application that integrates Gemini's API to fetch real-time data and deliver intelligent insights. This project represents my first experience working with AI-powered applications, full-stack web development, and MongoDB-based backend storage.
https://github.com/krishnagandhicode/brainwave-ai
ai aichatbot aimodel chatbot llm mongodb reactjs responsive webdevelopment
Last synced: 3 months ago
JSON representation
Brain Wave AI is a cutting-edge web application that integrates Gemini's API to fetch real-time data and deliver intelligent insights. This project represents my first experience working with AI-powered applications, full-stack web development, and MongoDB-based backend storage.
- Host: GitHub
- URL: https://github.com/krishnagandhicode/brainwave-ai
- Owner: krishnagandhicode
- Created: 2025-03-02T09:18:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-18T19:11:44.000Z (4 months ago)
- Last Synced: 2026-03-19T05:51:16.881Z (4 months ago)
- Topics: ai, aichatbot, aimodel, chatbot, llm, mongodb, reactjs, responsive, webdevelopment
- Language: JavaScript
- Homepage: https://www.linkedin.com/posts/krishna-gandhi-go_artificialintelligence-reactjs-mongodb-activity-7303807689954918400--OFf?utm_source=share&utm_medium=member_desktop&rcm=ACoAAEo8eu8BkCuu3fd8xTKONlDFsFNuJ4DKpus
- Size: 7.33 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BrainWave AI
BrainWave AI is a production-deployed full-stack AI chat app focused on reliable conversations, persistent history, and a polished UX.
## Live Project
- App: https://brain-wave-ai-dev.vercel.app
- API: https://brainwave-ai-hzw4.onrender.com
## What This Project Demonstrates
- End-to-end AI chat product architecture (frontend + backend + database)
- Secure authentication with protected API routes
- Persistent chat history with real-time conversational flow
- Practical production deployment and environment management
## Core Features
- Authentication with Clerk
- Create and manage multiple chat sessions
- AI responses powered by Gemini (with fallback behavior)
- Image upload support with ImageKit
- Chat persistence in MongoDB Atlas
- Improved message UX: user on right, AI on left, clean chat header banner
## Tech Stack
- Frontend: React 19, Vite, React Router, TanStack Query
- Backend: Node.js, Express, Mongoose
- Auth: Clerk
- AI: Google Gemini
- Media: ImageKit
- Deployment: Vercel (frontend), Render (backend)
## Engineering Highlights
- Hardened auth flow for API routes and client token usage
- Fixed edge cases around new chat creation and invalid IDs
- Stabilized first-message behavior so initial prompts are handled correctly
- Added safer API URL/error handling across the client
- Added production SPA routing support on Vercel for auth callback paths
- Improved deployment safety by using production start commands and env-based config
## Project Structure
```
BrainWave-AI/
backend/
client/
```
## Status
- Deployed and working in production
- Ready to be showcased in a portfolio/case study
## Next Improvements
- Move Clerk from test keys to production keys
- Rotate exposed secrets periodically and enforce stricter secret hygiene
- Add chunk splitting/performance optimization for frontend bundle size