A powerful AI-powered code generation platform that creates production-ready code with unit tests and documentation.

- Multi-Language Support: Generate code in Python, JavaScript, TypeScript, Java, C#, Go, Rust, C++, Ruby, and Swift
- Automatic Test Generation: Creates comprehensive unit tests with framework detection
- Documentation Generation: Generates inline comments, README files, and API documentation
- Code Quality Metrics: Analyzes complexity, readability, and performance
- Multi-Language Prompts: Support for prompts in multiple natural languages
- Matrix-Themed UI: Stunning cyberpunk-inspired interface with animations
Frontend (Next.js + TypeScript + Tailwind)
↓
Backend API (FastAPI)
├── LangChain (AI Code Generation)
└── Tree-sitter (Code Analysis)
- Navigate to backend directory:
cd backend
- Create virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install fastapi uvicorn openai python-dotenv
- Create
.env
file:
cp .env.example .env
# Add your OpenAI API key to .env
- Run the backend:
uvicorn main:app --reload --port 8000
- Navigate to frontend directory:
cd frontend
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Enter a description of what you want to build
- Select your target programming language
- Optionally specify project goals
- Choose whether to generate tests and documentation
- Click "GENERATE CODE"
- View generated code, tests, and documentation in tabs
- Copy or download the results
POST /api/generate
- Generate code from a promptPOST /api/analyze
- Analyze code qualityGET /api/languages
- Get supported languagesGET /api/health
- Health check
OPENAI_API_KEY
- Your OpenAI API key (required)API_HOST
- API host (default: 0.0.0.0)API_PORT
- API port (default: 8000)
NEXT_PUBLIC_API_URL
- Backend API URL (default: http://localhost:8000/api)
- FastAPI - Web framework
- LangChain - AI orchestration
- OpenAI API - Code generation
- Tree-sitter - Code parsing
- Pydantic - Data validation
- Next.js 14 - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- Framer Motion - Animations
- React Syntax Highlighter - Code display
- Syntactically correct code following best practices
- Error handling and optimization included
- Supports multiple complexity levels
- Context-aware generation based on project goals
- Framework-specific tests (pytest, jest, junit, etc.)
- Edge case coverage
- Mock implementations where needed
- Coverage estimation
- Inline code comments
- Function/class documentation
- README generation
- API documentation
- Usage examples
- Syntax validation
- Cyclomatic complexity calculation
- Readability scoring
- Performance estimation
- Improvement suggestions
The UI features a cyberpunk Matrix-inspired theme with:
- Green-on-black terminal aesthetic
- Glitch effects and animations
- Typing animations
- Scan line effects
- Custom scrollbars
- Loading animations
AICodeGenerator/
├── backend/
│ ├── main.py # FastAPI application
│ ├── api/ # API endpoints
│ ├── services/ # Business logic
│ └── models/ # Data models
├── frontend/
│ ├── app/ # Next.js pages
│ ├── components/ # React components
│ └── public/ # Static assets
└── CLAUDE.md # Development guide
MIT
Built with ❤️ using AI-powered development tools