This is a powerful, lightweight AI-assisted code editor that offers real-time collaboration, intelligent code assistance, and a seamless development experience. Built with cutting-edge web technologies, our editor empowers developers to write, share, and improve code more efficiently.
- Lightweight, feature-rich code editing environment
- Syntax highlighting with multiple themes
- Word wrap and line numbering
- Bracket matching and automatic indentation
- Intuitive file explorer panel
- Intelligent auto-completion for function names and variables
- Quick fix suggestions for syntax errors
- Code snippet generation
- Automated code documentation
- AI-driven code improvement recommendations
- Multi-user editing with live cursor tracking
- In-editor commenting system
- Comprehensive activity logging
- Auto-save and undo/redo history
- Secure login options:
- Email authentication
- Google OAuth
- Two-factor authentication (2FA)
- OTP and TOTP support
- Password reset functionality
- Dark and light mode
- Customizable font sizes and color themes
- Collapsible sidebar
- Intuitive, user-friendly interface
- Next.js (App Router)
- Monaco Editor
- Socket.IO Client
- React Context
- Express.js
- Socket.IO Server
- Cohere AI for intelligent code assistance
- MongoDB for data persistence
- Node.js (v18+ recommended)
- npm or yarn
- MongoDB
- Cohere API Key
- Google OAuth Credentials (optional)
bash git clone https://your-repo-url.git cd ai-code-editor
bash cd backend npm install
Create a .env file in the backend directory with the following variables:
MONGODB_URI=your_mongodb_connection_string COHERE_API_KEY=your_cohere_api_key
Run the backend server: bash npm run dev
bash cd frontend npm install
Create a .env.local file with these variables:
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000 MONGODB_URL=your_mongodb_connection_string GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret NEXTAUTH_SECRET=your_nextauth_secret NEXTAUTH_URL=http://localhost:3000 EMAIL_HOST=smtp.gmail.com EMAIL_PORT=587 EMAIL_USER=your_email EMAIL_PASS=your_email_password EMAIL_SECURE=false
Run the frontend development server: bash npm run dev
- Frontend: http://localhost:3000
- Backend: http://localhost:8000
- 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
Distributed under the MIT License. See LICENSE for more information.
Your Name - 2005shivapreetham@gmail.com
Project Link: (https://github.com/shivapreetham/ai-code-editor)
- Next.js
- Monaco Editor
- Socket.IO
- Cohere AI
- React