{"id":24965842,"url":"https://github.com/flaviodelgrosso/gitsnap","last_synced_at":"2025-08-19T03:05:46.957Z","repository":{"id":274709608,"uuid":"923831369","full_name":"flaviodelgrosso/gitsnap","owner":"flaviodelgrosso","description":"A tool to take snapshots of GitHub repositories in a single text file for LLMs","archived":false,"fork":false,"pushed_at":"2025-04-25T14:15:45.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T12:35:55.264Z","etag":null,"topics":["convert","git","github","llm","repository","text"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/flaviodelgrosso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-28T22:31:40.000Z","updated_at":"2025-04-25T14:15:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"98d792e9-c52a-4ab7-bdb5-c38213771039","html_url":"https://github.com/flaviodelgrosso/gitsnap","commit_stats":null,"previous_names":["flaviodelgrosso/gitsnap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/flaviodelgrosso/gitsnap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fgitsnap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fgitsnap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fgitsnap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fgitsnap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flaviodelgrosso","download_url":"https://codeload.github.com/flaviodelgrosso/gitsnap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fgitsnap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271093014,"owners_count":24697915,"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-08-19T02:00:09.176Z","response_time":63,"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":["convert","git","github","llm","repository","text"],"created_at":"2025-02-03T11:17:17.238Z","updated_at":"2025-08-19T03:05:46.924Z","avatar_url":"https://github.com/flaviodelgrosso.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitSnap\n\n[![Latest Version]][crates.io] ![Crates.io Downloads](https://img.shields.io/crates/d/gitsnap) ![GitHub Repo stars](https://img.shields.io/github/stars/flaviodelgrosso/gitsnap?style=flat)\n\n[Latest Version]: https://img.shields.io/crates/v/gitsnap.svg\n[crates.io]: https://crates.io/crates/gitsnap\n\nGitSnap is a CLI tool to take snapshots of GitHub repositories and convert them into readable text files.\n\n## Description\n\ngitsnap allows you to download a GitHub repository and convert its contents into a single text file. You can specify a file size threshold to skip large files or include all files regardless of size. The tool also supports debug mode for verbose logging.\n\n## Download\n\nYou can download the binaries of the latest release from [here](https://github.com/flaviodelgrosso/gitsnap/releases).\n\n## Install from Cargo registry\n\nTo install gitsnap, you need to have Rust and Cargo installed. You can install Rust and Cargo from [rustup.rs](https://rustup.rs/).\n\nYou can install gitsnap from [crates.io](https://crates.io/crates/gitsnap) using Cargo.\n\n```sh\ncargo install gitsnap\n```\n\n## Build from source\n\nAlternatively, you can build the project from source.\n\n```sh\ngit clone \u003chttps://github.com/flaviodelgrosso/GitSnap.git\u003e\ncd gitsnap\ncargo build --release\n```\n\n## Usage\n\nRun the `gitsnap` command with the required arguments:\n\n```sh\ngitsnap \u003crepository\u003e [OPTIONS]\n```\n\n### Arguments\n\n- `repository`: The GitHub repository URL or user/repo format (e.g., 'user/repo' or '\u003chttps://github.com/user/repo\u003e'). This argument is required.\n\n### Options\n\n- `-o, --output \u003cFILE\u003e`: Specify the output file path (defaults to `repo_name.txt`).\n- `-t, --threshold \u003cMB\u003e`: Set file size threshold in MB for text conversion (default: 0.1 MB). Files larger than this are skipped unless `--include-all` is used.\n- `--include-all`: Include all files, regardless of size or type. Overrides the threshold.\n- `--debug`: Enable debug mode with verbose logging.\n\n### Example\n\n```sh\ngitsnap user/repo -o output.txt -t 1.0 --debug\n```\n\nThis command will download the `user/repo` repository, process files up to 1.0 MB, and save the output to `output.txt` with debug mode enabled.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaviodelgrosso%2Fgitsnap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaviodelgrosso%2Fgitsnap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaviodelgrosso%2Fgitsnap/lists"}