{"id":13679256,"url":"https://github.com/alexkorol/repo2GPT","last_synced_at":"2025-04-29T18:31:53.225Z","repository":{"id":176636278,"uuid":"657163876","full_name":"alexkorol/repo2GPT","owner":"alexkorol","description":"Repo2GPT is a Python application that clones a GitHub repository and generates a tree diagram of the repository's file structure and a consolidated text file containing all the code files in the repository. This utility can help in quickly understanding the structure of a repository and reviewing its code.","archived":false,"fork":false,"pushed_at":"2025-03-01T06:07:18.000Z","size":38,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T07:19:16.212Z","etag":null,"topics":["chatgpt","claude-ai","cli","command-line","gpt35turbo","gpt4"],"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/alexkorol.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}},"created_at":"2023-06-22T13:05:27.000Z","updated_at":"2025-03-01T06:07:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f654d0bb-f13e-45dd-b0a0-7f1d4de5cd9e","html_url":"https://github.com/alexkorol/repo2GPT","commit_stats":null,"previous_names":["alexkorol/repo2gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkorol%2Frepo2GPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkorol%2Frepo2GPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkorol%2Frepo2GPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkorol%2Frepo2GPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexkorol","download_url":"https://codeload.github.com/alexkorol/repo2GPT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251560020,"owners_count":21609124,"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":["chatgpt","claude-ai","cli","command-line","gpt35turbo","gpt4"],"created_at":"2024-08-02T13:01:03.622Z","updated_at":"2025-04-29T18:31:52.971Z","avatar_url":"https://github.com/alexkorol.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Repo2GPT\nRepo2GPT is a Python application that clones a GitHub repository and generates a detailed repository map (repomap) of the repository's file structure, including classes, methods, and functions in each code file, and a consolidated text file containing all the code files in the repository. This utility can help in quickly understanding the structure of a repository and reviewing its code. This simplifies the process of iterative development using LLMs such as GPT-4. Another use case for it is analyzing a given repo for malicious code using ChatGPT.\n\nRepo2GPT can also be used on a local folder containing code if no repo is available for the project you are trying to consolidate.\n\n### Install the Required Packages:\n\nWith the virtual environment activated (optional), install the packages listed in `requirements.txt`:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\nWith everything set up, you can now use Repo2GPT:\n\n```bash\npython main.py \u003cGitHub repository URL or local directory path\u003e\n```\n\nReplace `\u003cGitHub repository URL or local directory path\u003e` with the URL of the repository you want to clone and analyze, or a local directory path you want to analyze.\n\nRepo2GPT will generate a detailed repository map named `repomap.txt` and a consolidated text file containing all the code in the repository named `consolidated_code.txt`.\n\n## Future plans\n\n* Add ASM Traversal and mapping similar to ctags.\n* Web version or VS Code Extension.\n* Account for ignoring more types of irrelevant metadata files.\n* Fix some of the encoding errors when consolidating certain readme.md files.\n* Better identification of code files and non-code files.\n\n## License\n\nRepo2GPT is licensed under the terms of the MIT license. See [LICENSE](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkorol%2Frepo2GPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexkorol%2Frepo2GPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkorol%2Frepo2GPT/lists"}