{"id":51307647,"url":"https://github.com/block/getit","last_synced_at":"2026-07-01T01:02:46.147Z","repository":{"id":336299010,"uuid":"1148746134","full_name":"block/getit","owner":"block","description":"A Go library for fetching remote archives using a clean consistent URI scheme","archived":false,"fork":false,"pushed_at":"2026-03-24T05:27:58.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T10:28:02.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/block.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":"CODEOWNERS","security":null,"support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-03T10:14:00.000Z","updated_at":"2026-05-29T23:26:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/block/getit","commit_stats":null,"previous_names":["block/getit"],"tags_count":4,"template":false,"template_full_name":"block/oss-project-template","purl":"pkg:github/block/getit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fgetit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fgetit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fgetit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fgetit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/block","download_url":"https://codeload.github.com/block/getit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fgetit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34431808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":[],"created_at":"2026-07-01T01:02:39.285Z","updated_at":"2026-07-01T01:02:46.131Z","avatar_url":"https://github.com/block.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Go library for fetching and unpacking archives from multiple sources.\n\nThis is a bit like hashicorp/go-getter, but much simpler, and with less supported protocols (so far).\n\n## Features\n\n- **Git repositories**: Clone from git://, git+ssh://, or git+https:// URLs with optional ref and depth parameters\n- **TAR archives**: Fetch and extract .tar, .tar.gz, .tar.bz2, .tar.xz, and other compressed tarballs\n- **ZIP archives**: Download and unzip .zip files\n- **GitHub shortcuts**: Map shorthand URLs like `user/repo` or `github.com/user/repo` to full git URLs\n- **Subdirectory support**: Extract specific subdirectories using `//` delimiter (e.g., `https://example.com/archive.tar.gz//subdir`)\n\n## Usage\n\n```go\nimport \"github.com/block/getit\"\n\n// Create a fetcher with resolvers and mappers\nfetcher := getit.New(\n    []getit.Resolver{\n        getit.NewGit(),\n        getit.NewTAR(),\n        getit.NewZIP(),\n    },\n    []getit.Mapper{\n        getit.GitHub,\n        getit.GitHubOrgRepo,\n        getit.SingleGitHubOrg(\"myorg\"),\n    },\n)\n\n// Fetch an archive\nerr := fetcher.Fetch(ctx, \"user/repo?ref=main\u0026depth=1\", \"./destination\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock%2Fgetit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblock%2Fgetit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock%2Fgetit/lists"}