{"id":16529244,"url":"https://github.com/cometkim/turbocache","last_synced_at":"2025-03-16T19:31:26.898Z","repository":{"id":44567081,"uuid":"441529426","full_name":"cometkim/turbocache","owner":"cometkim","description":"Cloudflare Workers as a custom remote cache for Turborepo","archived":false,"fork":false,"pushed_at":"2023-12-15T20:24:09.000Z","size":1744,"stargazers_count":66,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T14:43:26.402Z","etag":null,"topics":["cloudflare","cloudflare-workers","monorepo","turborepo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cometkim.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}},"created_at":"2021-12-24T18:12:37.000Z","updated_at":"2024-09-07T22:14:32.000Z","dependencies_parsed_at":"2024-02-23T06:45:55.430Z","dependency_job_id":null,"html_url":"https://github.com/cometkim/turbocache","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fturbocache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fturbocache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fturbocache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fturbocache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cometkim","download_url":"https://codeload.github.com/cometkim/turbocache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826780,"owners_count":20354220,"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":["cloudflare","cloudflare-workers","monorepo","turborepo"],"created_at":"2024-10-11T17:44:13.734Z","updated_at":"2025-03-16T19:31:26.495Z","avatar_url":"https://github.com/cometkim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# turborcache\n\nSimple and Fast [custom remote cache](https://turborepo.org/docs/features/remote-caching#custom-remote-caches) for [Turborepo](https://turborepo.org/) on the [Cloudflare Workers \u0026 KV](https://workers.cloudflare.com/)\n\n## How to use\n\nFork this, modify `wrangler.toml` and deploy to your Cloudflare account.\n\nYou should also setup a KV namespace and the secret key.\n\n```bash\n# to create a KV namespace and put the id in wrangler.toml\nyarn wrangler kv:namespace create STORAGE\n\n# to create a KV preview_id and put the preview_id in wrangler.toml\nyarn wrangler kv:namespace create STORAGE --preview\n\n# to provide a secret key\nyarn wrangler secret put SECRET_KEY\n# then enter a special text to restrict access to your cache\n```\n\nNext, deploy the worker. If you are deploying from CI, you will need an API token, you can create from [here](https://dash.cloudflare.com/profile/api-tokens) and the minimum permissions required for the API token are `Workers KV Storage:Edit`, `Workers Scripts:Edit`.\n\n```\nyarn deploy\n\n# In case when deploying from CI\nCLOUDFLARE_API_TOKEN=xxxx yarn deploy\n```\n\nFinally, you can use turbo repo with your own remote cache!\n\n```bash\nturbo run build --team=\"whatever\" --api=\"https://turbocache.YOUR-ACCOUNT.workers.dev/\" --token=\"\u003cYOUR_SECRET_KEY\u003e\"\n```\n\n## Roadmap\n\nIf I ever actually use this...\n\n- [ ] Auth via GitHub\n- [ ] Team Management\n- [ ] Clear unused caches\n- [ ] Web Client\n- [ ] ... What else?\n\nBTW, Turborepo is still in early stage, so there's room for many improvements, but at the same time, its structure is not clean and coupled to Vercel's interface. I assume it's eventually to be rewritten (in Rust?)\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Fturbocache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcometkim%2Fturbocache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Fturbocache/lists"}