{"id":13648549,"url":"https://github.com/zhaofengli/attic","last_synced_at":"2025-05-14T02:04:54.050Z","repository":{"id":65264290,"uuid":"584017827","full_name":"zhaofengli/attic","owner":"zhaofengli","description":"Multi-tenant Nix Binary Cache","archived":false,"fork":false,"pushed_at":"2025-05-05T23:39:41.000Z","size":715,"stargazers_count":1314,"open_issues_count":120,"forks_count":103,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-06T00:33:35.814Z","etag":null,"topics":["binary-cache","nix","nixos"],"latest_commit_sha":null,"homepage":"https://docs.attic.rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaofengli.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-31T23:43:41.000Z","updated_at":"2025-05-05T13:38:07.000Z","dependencies_parsed_at":"2023-02-19T14:45:20.791Z","dependency_job_id":"beea3212-2d24-4f7b-bc8a-48e7c130bc13","html_url":"https://github.com/zhaofengli/attic","commit_stats":{"total_commits":306,"total_committers":26,"mean_commits":11.76923076923077,"dds":"0.21568627450980393","last_synced_commit":"47752427561f1c34debb16728a210d378f0ece36"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaofengli%2Fattic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaofengli%2Fattic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaofengli%2Fattic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaofengli%2Fattic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaofengli","download_url":"https://codeload.github.com/zhaofengli/attic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052671,"owners_count":22006716,"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":["binary-cache","nix","nixos"],"created_at":"2024-08-02T01:04:20.491Z","updated_at":"2025-05-14T02:04:54.027Z","avatar_url":"https://github.com/zhaofengli.png","language":"Rust","funding_links":[],"categories":["Rust","Development"],"sub_categories":["Discovery"],"readme":"# Attic\n\n**Attic** is a self-hostable Nix Binary Cache server backed by an S3-compatible storage provider.\nIt has support for global deduplication and garbage collection.\n\nAttic is an early prototype.\n\n```\n⚙️ Pushing 5 paths to \"demo\" on \"local\" (566 already cached, 2001 in upstream)...\n✅ gnvi1x7r8kl3clzx0d266wi82fgyzidv-steam-run-fhs (29.69 MiB/s)\n✅ rw7bx7ak2p02ljm3z4hhpkjlr8rzg6xz-steam-fhs (30.56 MiB/s)\n✅ y92f9y7qhkpcvrqhzvf6k40j6iaxddq8-0p36ammvgyr55q9w75845kw4fw1c65ln-source (19.96 MiB/s)\n🕒 vscode-1.74.2        ███████████████████████████████████████  345.66 MiB (41.32 MiB/s)\n🕓 zoom-5.12.9.367      ███████████████████████████              329.36 MiB (39.47 MiB/s)\n```\n\n## Try it out (15 minutes)\n\nLet's [spin up Attic](https://docs.attic.rs/tutorial.html) in just 15 minutes.\nAnd yes, it works on macOS too!\n\n## Goals\n\n- **Multi-Tenancy**: Create a private cache for yourself, and one for friends and co-workers. Tenants are mutually untrusting and cannot pollute the views of other caches.\n- **Global Deduplication**: Individual caches (tenants) are simply restricted views of the content-addressed NAR Store and Chunk Store. When paths are uploaded, a mapping is created to grant the local cache access to the global NAR.\n- **Managed Signing**: Signing is done on-the-fly by the server when store paths are fetched. The user pushing store paths does not have access to the signing key.\n- **Scalabilty**: Attic can be easily replicated. It's designed to be deployed to serverless platforms like fly.io but also works nicely in a single-machine setup.\n- **Garbage Collection**: Unused store paths can be garbage-collected in an LRU manner.\n\n## Licensing\n\nAttic is available under the **Apache License, Version 2.0**.\nSee `LICENSE` for details.\n\nBy contributing to the project, you agree to license your work under the aforementioned license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaofengli%2Fattic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaofengli%2Fattic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaofengli%2Fattic/lists"}