NashSearch is an AI-powered chat application built with React, Firebase, and Google's Gemini AI API. Firebase was used for Authentication and chats storage.
Check out the live application: NashSearch
- AI-Powered Conversations: Interact with Google's Gemini 1.5 Flash model for intelligent responses
- Real-time Message Delivery: See responses appear with a realistic typing effect
- Markdown Support: AI responses can include formatted text for better readability
- Previous Chats: Access your conversation history organized by date
- Chat History: All conversations are saved automatically for future reference
- Chat Navigation: Easily switch between different conversation threads
- New Chat Creation: Start fresh conversations with one click
- Chat Deletion: Remove unwanted conversations from your history
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Dark/Light Mode: Toggle between themes for comfortable viewing in any environment
- Loading Indicators: Visual feedback when messages are being processed
- Scroll to Bottom: Automatically scrolls to the latest message
- Clean Interface: Minimalist design focused on the conversation
- Multiple Sign-in Methods: Register and login with email/password or Google authentication
- Protected Routes: Chat interface is only accessible to authenticated users
- Secure Data Storage: All conversations are stored securely in Firebase
- Frontend: React.js with React Router for navigation
- Backend: Firebase (Authentication, Firestore Database)
- AI Integration: Google Generative AI (Gemini 1.5 Flash)
- Styling: CSS with dark/light theme support
- Icons: React Icons library
- Markdown: ReactMarkdown for message formatting
- Deployment: Vercel
- Node.js and npm installed
- Firebase account
- Google Generative AI API key
-
Clone the repository:
git clone https://github.com/yourusername/nashsearch.git cd nashsearch -
Install dependencies:
npm install
-
Configure Firebase:
- Create a Firebase project at Firebase Console
- Enable Authentication (Email/Password and Google sign-in methods)
- Set up Firestore Database with the following structure:
users/ {userId}/ chats/ {chatId}/ messages/ {messageId}/ - text - isUser - timestamp - title - createdAt - lastMessage - lastUpdated
-
Obtain a Gemini API key:
- Go to Google AI Studio
- Create a project and generate an API key
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
- Chat: Main chat interface with message display and input
- ChatList: Sidebar showing previous conversations
- Message: Individual message component with typing effect
- Login: Authentication screen
- ThemeToggle: Dark/light mode switch
- AuthContext: Manages user authentication state
- ThemeContext: Handles dark/light mode preferences
- Add user profile management
- Implement chat categorization and tagging
- Add message search functionality
- Improve conversation context handling for more coherent responses
- Add support for image and file attachments
- Implement chat sharing functionality
- Add export options for saving conversations
This project was built using the following technologies:



