{"id":47294372,"url":"https://github.com/block/cachew","last_synced_at":"2026-03-16T13:31:46.501Z","repository":{"id":328945872,"uuid":"1117115343","full_name":"block/cachew","owner":"block","description":"Cachew (pronounced cashew) is a super-fast application-level pass-through cache","archived":false,"fork":false,"pushed_at":"2026-03-09T23:38:54.000Z","size":473,"stargazers_count":15,"open_issues_count":12,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-10T05:44:54.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"CONTRIBUTING.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-15T21:18:43.000Z","updated_at":"2026-03-05T20:32:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/block/cachew","commit_stats":null,"previous_names":["block/sfptc","block/cachew"],"tags_count":0,"template":false,"template_full_name":"block/oss-project-template","purl":"pkg:github/block/cachew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fcachew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fcachew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fcachew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fcachew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/block","download_url":"https://codeload.github.com/block/cachew/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fcachew/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30583140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-16T09:53:36.164Z","status":"ssl_error","status_checked_at":"2026-03-16T09:53:29.590Z","response_time":96,"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":"2026-03-16T13:31:45.692Z","updated_at":"2026-03-16T13:31:46.496Z","avatar_url":"https://github.com/block.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cachew (pronounced cashew) is a super-fast pass-through cache\n\nCachew is a server and tooling for incredibly efficient, protocol-aware caching. It is\ndesigned to be used at scale, with minimal impact on upstream systems. By \"protocol-aware\", we mean that the proxy isn't\njust a naive HTTP proxy, it is aware of the higher level protocol being proxied (Git, Docker, etc.) and can make more efficient decisions.\n\n## Git\n\nGit causes a number of problems for us, but the most obvious are:\n\n1. Rate limiting by service providers.\n2. `git clone` is very slow, even discounting network overhead\n\nTo solve this we apply two different strategies on the server:\n\n1. Periodic full `.tar.zst` snapshots of the repository. These snapshots restore 4-5x faster than `git clone`.\n2. Passthrough caching of the packs returned by `POST /repo.git/git-upload-pack` to support incremental pulls.\n\nOn the client we redirect git to the proxy:\n\n```ini\n[url \"https://cachew.local/github/\"]\n  insteadOf = https://github.com/\n```\n\nAs Git itself isn't aware of the snapshots, Git-specific code in the Cachew CLI can be used to reconstruct a repository.\n\n## Docker\n\n## Hermit\n\nCaches Hermit package downloads from all sources (golang.org, npm, GitHub releases, etc.).\n\n**URL pattern:** `/hermit/{host}/{path...}`\n\nExample: `GET /hermit/golang.org/dl/go1.21.0.tar.gz`\n\nGitHub releases are automatically redirected to the `github-releases` strategy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock%2Fcachew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblock%2Fcachew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock%2Fcachew/lists"}