{"id":26295572,"url":"https://github.com/cantcode023/peo.ai","last_synced_at":"2026-04-16T11:31:08.042Z","repository":{"id":282420938,"uuid":"948451352","full_name":"CantCode023/peo.ai","owner":"CantCode023","description":"Optimize your prompts for better AI interactions.","archived":false,"fork":false,"pushed_at":"2025-03-14T14:27:15.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T15:24:01.628Z","etag":null,"topics":["ai","flask","gemini","javascript","prompt-engineering","python","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/CantCode023.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-14T11:09:07.000Z","updated_at":"2025-03-14T14:27:44.000Z","dependencies_parsed_at":"2025-03-14T15:24:09.580Z","dependency_job_id":"e8e453d3-2fb5-4e33-86ec-6d2262e8b465","html_url":"https://github.com/CantCode023/peo.ai","commit_stats":null,"previous_names":["cantcode023/peo.ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CantCode023%2Fpeo.ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CantCode023%2Fpeo.ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CantCode023%2Fpeo.ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CantCode023%2Fpeo.ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CantCode023","download_url":"https://codeload.github.com/CantCode023/peo.ai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681077,"owners_count":20330155,"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","flask","gemini","javascript","prompt-engineering","python","react"],"created_at":"2025-03-15T04:14:26.289Z","updated_at":"2026-04-16T11:31:08.011Z","avatar_url":"https://github.com/CantCode023.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PEO.AI - Prompt Engineering Optimizer\n\nA web application that helps optimize and enhance prompts for AI models using Google's Gemini API. PEO.AI provides real-time feedback and suggestions to improve your prompts for better AI interactions.\n\nhttps://github.com/user-attachments/assets/0786c77d-1c38-4cf6-8b85-2700a5157675\n\n## Features\n\n- 🎨 Modern, responsive dark mode UI built with React and Material-UI\n- 🧠 Intelligent prompt optimization powered by Google's Gemini API\n- ⚡ Real-time streaming responses with SSE (Server-Sent Events)\n- 💬 Conversation history with markdown and code block support\n- 📋 Easy code copying with hover-to-reveal copy buttons\n- 🔄 Follow-up prompts for iterative optimization\n\n## Setup\n\n### Prerequisites\n\n- Python 3.8+\n- Node.js 14+\n- npm or yarn\n- Google Gemini API key\n\n### Backend Setup\n\n1. Create a `.env` file in the root directory with your Gemini API key:\n   ```\n   GEMINI_API_KEY=your_api_key_here\n   ```\n\n2. Install Python dependencies:\n   ```\n   pip install -r requirements.txt\n   ```\n\n3. Run the Flask server:\n   ```\n   python app.py\n   ```\n\n### Frontend Setup\n\n1. Navigate to the frontend directory:\n   ```\n   cd frontend\n   ```\n\n2. Install dependencies:\n   ```\n   npm install\n   ```\n\n3. Start the development server:\n   ```\n   npm run dev\n   ```\n\n## Usage\n\n1. Open your browser and navigate to the URL shown in the Vite output (typically http://localhost:5173)\n2. Enter your prompt in the input field\n3. Receive optimized prompt suggestions with detailed explanations\n4. Continue the conversation with follow-up prompts\n5. Use the copy button to easily copy code blocks\n6. Clear the conversation at any time with the delete button\n\n## Technologies Used\n\n### Frontend\n- React 18\n- Material-UI (MUI)\n- React Markdown\n- Syntax Highlighting with react-syntax-highlighter\n- Vite for fast development and building\n\n### Backend\n- Flask\n- Flask-CORS\n- Google Gemini API (gemini-2.0-flash model)\n- Server-Sent Events (SSE) for streaming responses\n\n## Project Structure\n\n```\npeo.ai/\n├── .env                  # Environment variables (create this file)\n├── app.py                # Flask server and API endpoints\n├── main.py               # Conversation class and Gemini API integration\n├── requirements.txt      # Python dependencies\n└── frontend/             # React frontend\n    ├── index.html        # HTML entry point\n    ├── package.json      # Frontend dependencies\n    └── src/              # React source code\n        ├── App.jsx       # Main application component\n        ├── main.jsx      # React entry point\n        └── theme.js      # MUI theme configuration\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcantcode023%2Fpeo.ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcantcode023%2Fpeo.ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcantcode023%2Fpeo.ai/lists"}