(Add a banner image if available)
Codecraft AI is a lightweight, AI-assisted code editor designed to boost developer productivity with intelligent code suggestions, auto-completion, and quick fixes. Built with Next.js 15, Tailwind CSS, TypeScript, and ShadCN UI, it offers a seamless, intuitive coding experience.
🔹 Key Features:
- ✨ AI Assistance powered by Gemini AI (auto-completion, linting, documentation generation).
- 🔥 Modern UI with ShadCN UI for a sleek and responsive design.
- 🛡 Authentication with Clerk (Google OAuth, email login, 2FA).
- 🎨 Customizable Editor with syntax highlighting, themes, and word wrap.
- 🌐 Future Scope: Real-time collaboration with multi-user editing and live cursors.
Technology | Description |
---|---|
Next.js 15 | Modern React framework for performance & scalability |
Tailwind CSS | Utility-first CSS framework for styling |
TypeScript | Strongly typed JavaScript for better maintainability |
ShadCN UI | Beautiful and customizable UI components |
Gemini AI | AI-powered code assistance |
Clerk | Secure authentication with OAuth & 2FA |
Code Editor | AI Assistance | Custom Themes |
---|---|---|
✔ Syntax highlighting (multiple themes)
✔ Bracket matching & auto-indentation
✔ Line numbering & word wrap
✔ Collapsible file explorer
✔ AI-driven auto-completion for function names & variables
✔ Quick fix suggestions for syntax errors
✔ AI-powered code documentation generation
✔ Code snippet suggestions
✔ Multi-user live editing (via WebSockets)
✔ Live cursor tracking & in-editor comments
✔ Activity log & basic version control
✔ Clerk-based authentication (Google OAuth, email login, 2FA)
✔ Private & public workspaces
✔ Secure session management
✔ Dark & light mode toggle
✔ Customizable font size & color themes
✔ Collapsible sidebar for maximum workspace
git clone https://github.com/Vijaysingh1621/codecraft-ai.git
cd codecraft-ai
npm install
Create a .env.local
file in the root directory and add the required API keys:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key
npm run dev
🚀 Open http://localhost:3000 to view it in your browser.
1️⃣ Sign In: Authenticate using Google OAuth or email.
2️⃣ Start Coding: Use the intelligent code editor with AI-powered assistance.
3️⃣ Get AI Suggestions: Click on AI recommendations for auto-completions & fixes.
4️⃣ Customize UI: Switch themes, adjust font size, and toggle dark/light mode.
5️⃣ Future (Real-Time Collaboration): Invite other users for multi-user editing.
Contributions are welcome! Follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature-name
) - Commit changes (
git commit -m "Added new feature"
) - Push to the branch (
git push origin feature-name
) - Create a Pull Request
✅ MVP Features: AI-powered suggestions, syntax highlighting, authentication.
🔜 Next Steps: WebSockets for real-time multi-user editing.
📌 Future Enhancements: AI-based code refactoring, mobile-friendly UI, and more!
This project is licensed under the MIT License – feel free to use and contribute!
📧 Email: your-email@example.com
🔗 LinkedIn: Your LinkedIn
🌍 GitHub: Your GitHub