{"id":26121435,"url":"https://github.com/mharoon1578/ai-code-generator","last_synced_at":"2026-04-18T18:33:41.047Z","repository":{"id":281227664,"uuid":"944622706","full_name":"mharoon1578/ai-code-generator","owner":"mharoon1578","description":"This is a AI code Generator.","archived":false,"fork":false,"pushed_at":"2025-03-07T17:19:27.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T18:24:28.093Z","etag":null,"topics":["ai-code-generator","ai-coding-assistant","cli","code-optimization","opensource","python","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mharoon1578.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-07T17:12:33.000Z","updated_at":"2025-03-07T17:24:47.000Z","dependencies_parsed_at":"2025-03-07T18:24:33.555Z","dependency_job_id":"cd78e040-52c8-4065-8f47-d59ccb2f4f84","html_url":"https://github.com/mharoon1578/ai-code-generator","commit_stats":null,"previous_names":["mharoon1578/ai-code-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharoon1578%2Fai-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharoon1578%2Fai-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharoon1578%2Fai-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharoon1578%2Fai-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mharoon1578","download_url":"https://codeload.github.com/mharoon1578/ai-code-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242864338,"owners_count":20197692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-code-generator","ai-coding-assistant","cli","code-optimization","opensource","python","streamlit"],"created_at":"2025-03-10T14:21:35.353Z","updated_at":"2025-03-10T14:21:35.966Z","avatar_url":"https://github.com/mharoon1578.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Powered Code Generator (Using Groq API - Mixtral 8x7B)\n\n## 🚀 Overview\nThis project is an AI-powered code generator that uses the **Groq API (Mixtral 8x7B or another free model)** to generate, optimize, and debug code. The tool is designed to assist developers in writing efficient and well-documented code with AI assistance.\n\n## ✨ Features\n- **AI-Powered Code Generation** → Generate code in multiple languages (Python, JavaScript, C++, Java, etc.).\n- **Code Optimization \u0026 Debugging** → AI analyzes, fixes errors, and suggests improvements.\n- **AI-Generated Documentation** → Auto-generate inline comments and README.md files.\n- **Multi-Platform Support** → Web UI (Streamlit) and CLI tool.\n- **Free \u0026 Fast** → Uses Groq API (Mixtral 8x7B) for cost-effective AI-powered coding.\n\n---\n\n## 🛠️ Installation\n### 1️⃣ Clone the Repository\n```bash\ngit clone https://github.com/mharoon1578/ai-code-generator.git\ncd ai-code-generator\n```\n\n### 2️⃣ Install Dependencies\n```bash\npip install -r requirements.txt\n```\n\n### 3️⃣ Set Up Groq API Key\n1. Get an API key from [Groq Console](https://console.groq.com/).\n2. Create a **.env** file and add your key:\n```ini\nGROQ_API_KEY=your_api_key_here\n```\n\n---\n\n## 🎯 Usage\n### CLI Mode\n```bash\npython generate.py --prompt \"Write a Python function for quicksort\"\n```\n\nTo enable debugging \u0026 optimization:\n```bash\npython generate.py --prompt \"Write a Python function for quicksort\" --debug\n```\n\n### Web UI Mode\n```bash\nstreamlit run app.py\n```\n\n---\n\n## 📜 Project Structure\n```\nai-code-generator/\n│── app.py          # Streamlit web UI\n│── generate.py     # CLI tool for code generation \u0026 debugging\n│── requirements.txt # Dependencies\n│── README.md       # Project documentation\n│── LICENSE         # License file\n```\n\n---\n\n## 📢 Contributing\nContributions are welcome! Feel free to fork the repo, open issues, or submit PRs.\n\n---\n\n## 📜 License\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmharoon1578%2Fai-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmharoon1578%2Fai-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmharoon1578%2Fai-code-generator/lists"}