{"id":31762593,"url":"https://github.com/code-alchemist01/ai-basic-editor","last_synced_at":"2026-04-21T05:33:20.097Z","repository":{"id":317762137,"uuid":"1068704731","full_name":"code-alchemist01/AI-Basic-Editor","owner":"code-alchemist01","description":"AI-powered code editor with Streamlit interface and Gemini API integration. Write professional code with expert-level AI assistance, real-time chat, and PostgreSQL database storage. Features modern UI, multiple Gemini models support, and secure API key management.","archived":false,"fork":false,"pushed_at":"2025-10-02T21:52:58.000Z","size":30,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-02T22:28:28.560Z","etag":null,"topics":["ai","api","gemini","postgresql","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-alchemist01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-02T19:30:42.000Z","updated_at":"2025-10-02T21:53:01.000Z","dependencies_parsed_at":"2025-10-02T22:28:30.191Z","dependency_job_id":"e962b76c-1971-4a97-8414-13076bc0c077","html_url":"https://github.com/code-alchemist01/AI-Basic-Editor","commit_stats":null,"previous_names":["code-alchemist01/ai-basic-editor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/code-alchemist01/AI-Basic-Editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-alchemist01%2FAI-Basic-Editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-alchemist01%2FAI-Basic-Editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-alchemist01%2FAI-Basic-Editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-alchemist01%2FAI-Basic-Editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-alchemist01","download_url":"https://codeload.github.com/code-alchemist01/AI-Basic-Editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-alchemist01%2FAI-Basic-Editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002115,"owners_count":26083307,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","api","gemini","postgresql","python","streamlit"],"created_at":"2025-10-09T22:47:55.639Z","updated_at":"2025-10-09T22:47:56.765Z","avatar_url":"https://github.com/code-alchemist01.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 AI Basic Editor\n\nExpert-level code writing assistant! Write professional code using the power of Gemini AI with a modern Streamlit-based interface.\n\n## ✨ Features\n\n- 🎨 **Modern Streamlit Interface**: Gradient colors and responsive design\n- 🔗 **Gemini API Integration**: Google's most advanced AI model\n- 📊 **PostgreSQL Database**: Chat history and knowledge storage\n- 🤖 **Expert Code Editor**: Professional code writing with customized AI prompts\n- 💬 **Real-time Chat**: Message history and cleanup features\n- 🔧 **Easy Setup**: Run with a single command\n\n## 🚀 Quick Start\n\n### 1. Clone the Project\n```bash\ngit clone https://github.com/code-alchemist01/AI-Basic-Editor.git\ncd AI-Basic-Editor\n```\n\n### 2. Setup Environment Variables\n```bash\n# Copy the example file\ncopy .env.example .env\n\n# Edit .env file and add your credentials\n```\n\n### 3. Run the Application\n```bash\npython run.py\n```\n\nThe application will automatically install required packages and start at `http://localhost:8501`.\n\n## ⚙️ Configuration\n\n### .env File\nSet the following variables in your `.env` file:\n\n```env\n# PostgreSQL Database URL\nDATABASE_URL=postgresql://username:password@localhost:5432/ai_editor\n\n# Gemini API Key (https://makersuite.google.com/app/apikey)\nGEMINI_API_KEY=your_gemini_api_key_here\n\n# Gemini Model\nGEMINI_MODEL=gemini-2.0-flash\n```\n\n### Supported Models\n- `gemini-2.0-flash` (Recommended - Fast and powerful)\n- `gemini-1.5-pro` (Most advanced model)\n- `gemini-1.5-flash` (Quick response)\n\n## 📋 Usage Examples\n\n### Web Development\n```\n\"Create a responsive navbar component with React\"\n\"Write REST API with Node.js Express\"\n\"Design modern layout with CSS Grid\"\n```\n\n### Python Development\n```\n\"Write a blog application with Python Flask\"\n\"Create data analysis script with Pandas\"\n\"Write async web service with FastAPI\"\n```\n\n### Database\n```\n\"Optimize PostgreSQL performance\"\n\"Write MongoDB aggregation pipeline\"\n\"Create SQL injection protected queries\"\n```\n\n### DevOps\n```\n\"Write Docker multi-stage build file\"\n\"Create Kubernetes deployment yaml\"\n\"Write CI/CD pipeline with GitHub Actions\"\n```\n\u003cimg width=\"1890\" height=\"822\" alt=\"Ekran görüntüsü 2025-10-02 235629\" src=\"https://github.com/user-attachments/assets/c2eb7233-24db-4b48-a49e-bb328aa1558e\" /\u003e\n\u003cimg width=\"1895\" height=\"892\" alt=\"Ekran görüntüsü 2025-10-02 224708\" src=\"https://github.com/user-attachments/assets/df8107bc-f8cd-41cb-b8ce-bfaca5069977\" /\u003e\n\u003cimg width=\"1891\" height=\"910\" alt=\"Ekran görüntüsü 2025-10-02 224716\" src=\"https://github.com/user-attachments/assets/63867e47-82fd-4436-b3b4-a710dd46f948\" /\u003e\n\u003cimg width=\"1887\" height=\"886\" alt=\"Ekran görüntüsü 2025-10-02 235721\" src=\"https://github.com/user-attachments/assets/d48611bf-6574-4ff1-8e6a-b1d496642934\" /\u003e\n\u003cimg width=\"1873\" height=\"885\" alt=\"Ekran görüntüsü 2025-10-02 235812\" src=\"https://github.com/user-attachments/assets/048c5f0e-dde9-4061-89a0-54bf95a46d63\" /\u003e\n\u003cimg width=\"1869\" height=\"914\" alt=\"Ekran görüntüsü 2025-10-02 224813\" src=\"https://github.com/user-attachments/assets/e58b972d-9488-41e5-ac38-3f273b498812\" /\u003e\n\u003cimg width=\"1857\" height=\"881\" alt=\"Ekran görüntüsü 2025-10-02 224801\" src=\"https://github.com/user-attachments/assets/e50146cf-e5c3-464f-8fe7-e68db2a3107a\" /\u003e\n\n\n\n## 🛠️ Development\n\n### Project Structure\n```\nAI-Basic-Editor/\n├── app.py              # Main Streamlit application\n├── database.py         # PostgreSQL database management\n├── gemini_client.py    # Gemini API integration\n├── run.py             # Run script\n├── requirements.txt   # Python dependencies\n├── database_schema.sql # Database schema\n├── .env.example       # Environment variables template\n├── .gitignore         # Git ignore file\n└── README.md          # This file\n```\n\n### Manual Installation\n```bash\n# Create virtual environment (optional)\npython -m venv venv\nvenv\\Scripts\\activate  # Windows\n# source venv/bin/activate  # Linux/Mac\n\n# Install dependencies\npip install -r requirements.txt\n\n# Start the application\nstreamlit run app.py\n```\n\n## 🔒 Security\n\n- ✅ API keys are securely stored in `.env` file\n- ✅ `.env` file is excluded from Git via `.gitignore`\n- ✅ Manual API key input for secure usage\n- ✅ Database connections are managed securely\n\n## 📦 Dependencies\n\n- `streamlit` - Web interface\n- `psycopg2-binary` - PostgreSQL connection\n- `google-generativeai` - Gemini API\n- `python-dotenv` - Environment variables\n- `sqlalchemy` - ORM\n\n## 🤝 Contributing\n\n1. Fork the project\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n\n## 🆘 Support\n\nIf you encounter issues:\n\n1. Make sure your `.env` file is properly configured\n2. Check that PostgreSQL database is running\n3. Verify your Gemini API key is valid\n4. Check terminal for error messages\n\n## 🎯 Future Features\n\n- [ ] Code syntax highlighting\n- [ ] File upload/download\n- [ ] Theme options\n- [ ] Multi-language support\n- [ ] Plugin system\n- [ ] Code versioning","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-alchemist01%2Fai-basic-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-alchemist01%2Fai-basic-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-alchemist01%2Fai-basic-editor/lists"}