A modern AI-powered code editor built with Next.js that allows users to write, run, and enhance code directly in the browser with real-time AI assistance.
-
🧠 AI Code Assistance
- Code completion
- Bug fixing suggestions
- Code explanations
-
💻 In-Browser Code Editor
- Monaco Editor integration
- Multi-file support
- Syntax highlighting
-
⚡ Live Code Execution
- Powered by WebContainers
- Real-time preview & terminal
-
📁 Template System
- React, Next.js, Express, Vue, Angular, Hono
- Load starter projects instantly
-
🔐 Authentication
- GitHub & Google login (NextAuth)
-
🎨 Modern UI
- Dark/Light mode
- Responsive design
- Built with Tailwind CSS & shadcn/ui
- Frontend: Next.js 16, React 19, Tailwind CSS
- Editor: Monaco Editor
- AI Integration: Groq
- Backend: Next.js API Routes
- Database: Prisma + Mongodb
- Auth: NextAuth
- Runtime: WebContainer API
- State Management: Zustand
app/ → Routes & pages
components/ → UI components
hooks/ → Custom hooks
lib/ → Utilities & configs
modules/ → Core features (editor, AI, etc.)
prisma/ → Database schema
public/ → Static assets & templates
git clone https://github.com/your-username/ai-powered-code-editor.git
cd ai-powered-code-editornpm installCreate a .env file:
DATABASE_URL=your_database_url
NEXTAUTH_SECRET=your_secret
NEXTAUTH_URL=http://localhost:3000
GITHUB_ID=your_github_id
GITHUB_SECRET=your_github_secret
GOOGLE_CLIENT_ID=your_google_id
GOOGLE_CLIENT_SECRET=your_google_secretnpm run devDeployed on Vercel
⚠️ Templates are loaded dynamically to avoid build issues.
/→ Landing Page/dashboard→ User dashboard/playground/[id]→ Code editor/docs→ Documentation/terms→ Terms of Service/privacy→ Privacy Policy
- User selects a template
- Template is converted into JSON structure
- Loaded into WebContainer
- Monaco Editor displays files
- AI assists in real-time
- AI chat assistance by ByteBuddy
- ⚡ Faster template loading (caching)
- 🧠 Smarter AI context awareness
- 💾 Project saving & sharing
- 👥 Collaboration (real-time editing)
Pull requests are welcome! Feel free to open issues for suggestions or bugs.
This project is open-source and available under the MIT License.
Chandra Pratap Singh
- GitHub: https://github.com/smttomar
⭐ If you like this project, give it a star!