{"id":27996436,"url":"https://github.com/codexclub567/edit_my_coda","last_synced_at":"2026-01-24T19:49:41.793Z","repository":{"id":270527386,"uuid":"903365631","full_name":"CodexClub567/Edit_My_Coda","owner":"CodexClub567","description":"An excellent chatbot for your website","archived":false,"fork":false,"pushed_at":"2025-01-01T00:47:39.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T21:43:26.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://support.codexcreativestudio.com/chatbot","language":"HTML","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/CodexClub567.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}},"created_at":"2024-12-14T12:23:05.000Z","updated_at":"2025-01-01T00:47:42.000Z","dependencies_parsed_at":"2025-01-01T06:49:25.619Z","dependency_job_id":null,"html_url":"https://github.com/CodexClub567/Edit_My_Coda","commit_stats":null,"previous_names":["codexclub567/edit_my_coda"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/CodexClub567/Edit_My_Coda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodexClub567%2FEdit_My_Coda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodexClub567%2FEdit_My_Coda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodexClub567%2FEdit_My_Coda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodexClub567%2FEdit_My_Coda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodexClub567","download_url":"https://codeload.github.com/CodexClub567/Edit_My_Coda/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodexClub567%2FEdit_My_Coda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28735371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-05-08T21:43:24.756Z","updated_at":"2026-01-24T19:49:41.772Z","avatar_url":"https://github.com/CodexClub567.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Chatbot\n\n## Overview\nCodex Chatbot is an AI-powered chatbot designed to provide intelligent and human-like interactions on your website. Built using FastAPI for the backend and OpenAI's GPT-4 model, this chatbot can handle a wide range of queries, offering insightful, concise, and user-centric responses. The project demonstrates an integration of modern web technologies for creating a seamless user experience.\n\n---\n\n## Features\n- **AI-Powered:** Utilizes OpenAI's GPT-4 for human-like conversational abilities.\n- **FastAPI Backend:** Lightweight, fast, and scalable backend framework.\n- **Frontend Integration:** Built with HTML, CSS, and JavaScript for a responsive UI.\n- **Customizable System Prompts:** Fine-tune the chatbot's behavior to suit your needs.\n- **Message History:** Retains chat history for a more human and coherent conversation.\n- **Cross-Origin Support:** CORS enabled for seamless frontend-backend communication.\n\n---\n\n## Requirements\nTo run this project, ensure you have the following installed:\n- Python 3.8+\n- Node.js (for frontend testing, optional)\n- pip (Python package installer)\n\n---\n\n## Installation\n\n### Backend Setup\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/CodexClub567/Edit_My_Coda.git\n   cd Edit_My_Coda\n   ```\n\n2. Install dependencies:\n   ```bash\n   pip install fastapi uvicorn python-dotenv openai\n   ```\n\n3. Set up your environment variables:\n   Create a `.env` file in the root directory and add your OpenAI API key:\n   ```\n   OPENAI_API_KEY=your_openai_api_key_here\n   ```\n\n4. Run the backend:\n   ```bash\n   uvicorn backend:app --reload\n   ```\n   The backend will be available at `http://127.0.0.1:8000`.\n\n### Frontend Setup\n1. Open the `index.html` file in any browser to test the chatbot UI.\n\n2. Update the fetch URL in the `sendMessage` function if you deploy the backend on a different server.\n   ```javascript\n   const response = await fetch('http://your-backend-url/chat', {\n   ```\n\n---\n\n## File Structure\n```\n.\n├── .github/                # GitHub configuration files (optional)\n├── .vscode/                # VSCode settings (optional)\n├── node_modules/           # Node.js dependencies (optional)\n├── .env                    # Environment variables\n├── backend.py              # Backend code (FastAPI + GPT-4 integration)\n├── index.html              # Frontend user interface\n├── package.json            # Node.js package configuration (optional)\n├── package-lock.json       # Dependency lock file (optional)\n├── README.md               # Documentation (this file)\n```\n\n---\n\n## Usage\n1. Launch the backend server by running `uvicorn`.\n2. Open the `index.html` file in a browser.\n3. Type a message in the input box and click \"Send\" to interact with the chatbot.\n\n---\n\n## Customization\n### Modify Chatbot Behavior\nYou can edit the `system` prompt in `backend.py` to adjust the chatbot's behavior:\n```python\n{\"role\": \"system\", \"content\": \"You are an extremely helpful and articulate chatbot specialized in providing insightful, concise, and audience-tailored responses to any queries. Focus on clarity, creativity, and user satisfaction.\"}\n```\n\n### Enhance UI\nEdit the styles in the `\u003cstyle\u003e` section of `index.html` to match your design preferences.\n\n---\n\n## Deployment\n### Backend Deployment\nYou can deploy the backend using platforms like:\n- **Heroku**\n- **AWS Elastic Beanstalk**\n- **Render**\n\nExample for deploying on Heroku:\n1. Create a `Procfile`:\n   ```\n   web: uvicorn backend:app --host=0.0.0.0 --port=${PORT}\n   ```\n\n2. Push the code to Heroku:\n   ```bash\n   git init\n   heroku create\n   git add .\n   git commit -m \"Deploy chatbot\"\n   git push heroku master\n   ```\n\n### Frontend Deployment\nYou can deploy the frontend using:\n- **GitHub Pages**\n- **Vercel**\n- **Netlify**\n\n---\n\n## Debugging Tips\n- Check the browser console (`F12`) for any JavaScript errors.\n- Use `Postman` or `curl` to test the backend API independently.\n- Ensure the `.env` file is correctly configured with your OpenAI API key.\n- Check CORS settings if you face cross-origin issues.\n\n---\n\n## Contributing\nContributions are welcome! Feel free to open issues or submit pull requests.\n\n---\n\n## License\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n---\n\n## Acknowledgments\n- OpenAI for their GPT-4 API.\n- FastAPI for the robust backend framework.\n- The developers and community members who contributed to this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexclub567%2Fedit_my_coda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodexclub567%2Fedit_my_coda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexclub567%2Fedit_my_coda/lists"}