{"id":16200443,"url":"https://github.com/gabrielchua/repo-explainer","last_synced_at":"2025-03-19T05:30:57.384Z","repository":{"id":233016305,"uuid":"785766307","full_name":"gabrielchua/repo-explainer","owner":"gabrielchua","description":"Chat with a repo by adding the entire repo to gemini 1.5 pro's 1M context window 🔥","archived":false,"fork":false,"pushed_at":"2024-07-16T03:47:37.000Z","size":1767,"stargazers_count":23,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T04:21:17.408Z","etag":null,"topics":["gemini","gemini-api","llm","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/gabrielchua.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":"2024-04-12T15:21:58.000Z","updated_at":"2025-03-04T09:02:32.000Z","dependencies_parsed_at":"2024-04-13T00:01:20.480Z","dependency_job_id":"a8f61607-daac-4493-a12c-ce333366bd65","html_url":"https://github.com/gabrielchua/repo-explainer","commit_stats":null,"previous_names":["gabrielchua/repo-explainer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielchua%2Frepo-explainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielchua%2Frepo-explainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielchua%2Frepo-explainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielchua%2Frepo-explainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielchua","download_url":"https://codeload.github.com/gabrielchua/repo-explainer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244364726,"owners_count":20441458,"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":["gemini","gemini-api","llm","streamlit"],"created_at":"2024-10-10T09:30:24.726Z","updated_at":"2025-03-19T05:30:56.725Z","avatar_url":"https://github.com/gabrielchua.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Repo Explainer 📦\n[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://repo-explainer.streamlit.app/)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"demo.gif\" alt=\"Demo 1\" width=\"60%\" style=\"border: 3px solid black;\"/\u003e\n\u003c/p\u003e\n\nThis Streamlit application leverages the power of Google's Generative AI and the Gemini-1.5-pro-latest model to provide insights and explanations about GitHub repositories. Simply input a GitHub URL, and the app will analyze the repository's structure and content, generating a comprehensive summary.\n\n## Features\n\n* **Repository Analysis:** Analyzes the directory structure, README, and relevant code files (Python, HTML, CSS, JavaScript, etc.).\n* **AI-Powered Explanations:** Employs the Gemini-1.5-pro-latest model to provide clear and informative explanations about the repository's purpose, functionality, and code structure. \n* **Interactive Chat Interface:** Engage in a conversation with the AI to ask specific questions and delve deeper into the repository's details.\n\n## Usage\n\n1. **Clone the repository:** `git clone https://github.com/your-username/repo-explainer.git`\n2. **Install dependencies:** `pip install -r requirements.txt` \n3. **Set up API keys:**\n    * **Google API Key:** Obtain a Google API key with access to the Generative AI API and set it as the `GOOGLE_API_KEY` environment variable. \n    * **GitHub Token (Optional):** For private repositories or to avoid rate limiting, set your GitHub personal access token as the `GH_API_KEY` environment variable.\n4. **Run the application:** `streamlit run app.py`\n5. **Access the app:** Open the provided URL in your web browser.\n6. **Enter a GitHub URL:** Input the URL of the repository you want to analyze. \n7. **Explore the results:** Review the generated summary and use the chat interface to ask further questions.\n\n## Disclaimer\n\nThis project is for educational and experimental purposes.  API usage may incur costs.\n\n_PS: This README was written by Gemini 1.5 Pro, using this demo_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielchua%2Frepo-explainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielchua%2Frepo-explainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielchua%2Frepo-explainer/lists"}