A modern, intelligent chatbot application built with Next.js. Sparkchat provides a seamless conversational interface with AI-powered responses, designed for smooth user interactions and real-time communication.
Sparkchat is an interactive chatbot that allows users to have natural conversations through a clean, modern web interface. The application provides:
- Intelligent Conversations - Natural language understanding and contextual responses
- Real-time Interaction - Instant message processing with smooth UI updates
- User-Friendly Interface - Intuitive chat interface that works on any device
- Modern Architecture - Built on Next.js 14+ for optimal performance
- Responsive Design - Seamlessly adapts to desktop, tablet, and mobile screens
- Node.js 18 or higher
- npm, yarn, pnpm, or bun package manager
-
Clone the repository
git clone https://github.com/Varun789-mx/Sparkchat.git cd Sparkchat -
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env.local
Then edit
.env.localand add your configuration:API_KEY=your_api_key_here
-
Run the development server
npm run dev
-
Open in browser
Navigate to http://localhost:3000
# Development
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
# Alternative package managers
yarn dev # Using Yarn
pnpm dev # Using pnpm
bun dev # Using Bun- Next.js - React framework with App Router
- TypeScript - Type-safe development
- Geist Font - Modern font family by Vercel
Sparkchat/
├── app/ # Next.js App Router
│ ├── page.tsx # Main chat interface
│ ├── layout.tsx # Root layout
│ └── api/ # API routes
├── components/ # React components
├── lib/ # Utilities and helpers
├── public/ # Static assets
├── styles/ # Global styles
├── .env.example # Environment variables template
└── package.json # Dependencies and scripts
Create a .env.local file based on .env.example:
# API Configuration
API_KEY=your_api_key_here
# Optional: Custom configuration
NEXT_PUBLIC_APP_NAME=Sparkchat- Push your code to GitHub
- Import repository on Vercel
- Configure environment variables
- Deploy
For other platforms, refer to the Next.js deployment documentation.
- Start the application using
npm run dev - Open http://localhost:3000 in your browser
- Type your message in the chat input
- Press Enter or click Send to submit
- View AI-generated responses in real-time
- Continue your conversation naturally
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Harsh pandey
- GitHub: @Varun789-mx
⭐ If you find this project useful, please consider giving it a star!