Skip to content

salimuddin07/ApexChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApexChat AI

ApexChat AI - Custom Implementation

English | العربية | 简体中文

✨ A customized AI Assistant with npm-based workflow, supporting Claude, DeepSeek, GPT-4 & Gemini Pro

Vercel Docker License GitHub Stars

🚀 Live Demo | 📖 Documentation | 🐛 Issues | ⭐ Star this repo


🚀 Features

  • 🤖 Multiple AI Providers: OpenAI, Anthropic Claude, Google Gemini, DeepSeek, Baidu, ByteDance, and more
  • 🎯 Smart Conversations: Context-aware chat with memory and templates
  • 🎤 Voice & Audio: Real-time speech-to-text and text-to-speech
  • 🎨 Image Generation: Integrated Stable Diffusion for AI art
  • 🔌 Plugin System: Extensible through Model Context Protocol (MCP)
  • 📱 Responsive Design: Works seamlessly on desktop and mobile
  • ☁️ Cloud Sync: Sync chat history across devices
  • 🔒 Privacy Focused: Your data stays with you
  • ⚡ Lightning Fast: Optimized for performance and speed
  • 🛠️ NPM-based: Streamlined development with npm package management

🛠️ Quick Start

Prerequisites

  • Node.js 18+
  • npm (included with Node.js)

Installation

  1. Clone the repository:
git clone https://github.com/salimuddin07/nextchat_ai.git
cd apexchat_ai
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.template .env.local
# Edit .env.local with your API keys
  1. Start development server:
npm run dev
  1. Open your browser: Navigate to http://localhost:3000

📋 Available Scripts

Command Description
npm run dev Start development server
npm run build Build for production
npm start Start production server
npm run lint Run ESLint linter
npm test Run test suite
npm run export Export static files

🐳 Docker Deployment

Quick Start with Docker

# Build the image
docker build -t apexchat-ai .

# Run the container
docker run -p 3000:3000 apexchat-ai

Using Docker Compose

docker-compose up -d

☁️ One-Click Deployment

Deploy to Vercel

Deploy with Vercel

Deploy to Railway

Deploy on Railway

Deploy to Netlify

Deploy to Netlify

⚙️ Configuration

Environment Variables

Create a .env.local file in the root directory:

# OpenAI
OPENAI_API_KEY=your_openai_api_key

# Anthropic Claude
ANTHROPIC_API_KEY=your_anthropic_api_key

# Google Gemini
GOOGLE_API_KEY=your_google_api_key

# Access Control (Optional)
CODE=your_access_password

# Base URL (Optional)
BASE_URL=https://api.openai.com

# Other providers...

Supported AI Providers

  • OpenAI (GPT-3.5, GPT-4, GPT-4 Turbo)
  • Anthropic (Claude 3, Claude 3.5)
  • Google (Gemini Pro, Gemini Pro Vision)
  • DeepSeek (DeepSeek Chat, DeepSeek Coder)
  • Baidu (ERNIE Bot)
  • ByteDance (Doubao)
  • Moonshot (Moonshot AI)
  • SiliconFlow (Open source models)
  • XAI (Grok)

📱 Features Overview

💬 Advanced Chat

  • Multi-turn conversations with context
  • Message search and filtering
  • Chat export (Markdown, PNG, PDF)
  • Chat templates and masks
  • Message editing and regeneration

🎤 Voice & Audio

  • Speech-to-text input
  • Text-to-speech output
  • Real-time voice conversations
  • Multiple voice options

🎨 Image Generation

  • Stable Diffusion integration
  • Custom prompts and styles
  • High-quality image output
  • Image-to-image generation

🔌 Plugin System

  • Model Context Protocol (MCP) support
  • Custom tools and functions
  • Extensible architecture
  • Community plugins

🤝 Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/amazing-feature
  3. Commit your changes
    git commit -m 'Add some amazing feature'
  4. Push to the branch
    git push origin feature/amazing-feature
  5. Open a Pull Request

Development Guidelines

  • Follow the existing code style
  • Write tests for new features
  • Update documentation as needed
  • Ensure all tests pass

🐛 Troubleshooting

Common Issues

1. "Module not found" errors

# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install

2. Build failures

# Check Node.js version
node --version  # Should be 18+

3. API key issues

  • Ensure your API keys are correctly set in .env.local
  • Check that your API provider account has sufficient credits

Getting Help

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Original project by ChatGPTNextWeb
  • All AI providers for their amazing APIs
  • Open source community for contributions and feedback
  • Contributors who help improve this project

📊 Project Stats

GitHub stars GitHub forks GitHub issues GitHub pull requests

🔗 Links


Made with ❤️ by Salim Uddin

Star this repo if you find it helpful!

About

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages