{"id":28693550,"url":"https://github.com/timelessos/lcas","last_synced_at":"2026-03-15T18:35:13.227Z","repository":{"id":297914035,"uuid":"998194740","full_name":"TimelessOS/LCAS","owner":"TimelessOS","description":"A library for link addressed storage.","archived":false,"fork":false,"pushed_at":"2025-09-15T05:56:21.000Z","size":64,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T04:29:01.159Z","etag":null,"topics":["content-addressable-storage","file-synchronization","software-delivery","storage"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/TimelessOS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2025-06-08T04:21:54.000Z","updated_at":"2025-09-19T05:00:58.000Z","dependencies_parsed_at":"2025-06-08T10:29:17.950Z","dependency_job_id":null,"html_url":"https://github.com/TimelessOS/LCAS","commit_stats":null,"previous_names":["timelessos/lcas"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TimelessOS/LCAS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimelessOS%2FLCAS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimelessOS%2FLCAS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimelessOS%2FLCAS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimelessOS%2FLCAS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimelessOS","download_url":"https://codeload.github.com/TimelessOS/LCAS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimelessOS%2FLCAS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30549181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"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":["content-addressable-storage","file-synchronization","software-delivery","storage"],"created_at":"2025-06-14T08:38:43.032Z","updated_at":"2026-03-15T18:35:13.175Z","avatar_url":"https://github.com/TimelessOS.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linked Content Addressed Storage\n\n[![codecov](https://codecov.io/gh/TimelessOS/LCAS/graph/badge.svg?token=5W9K4IK81O)](https://codecov.io/gh/TimelessOS/LCAS)\n\nA simple yet complex method of storing large directory structures with duplicate files\n\n## Examples\n\n```rust\n// `input_dir` is the artifact, likely produced by a build system etc. This is what we want to \"transmit\".\nlet input_dir = absolute(Path::new(\"./example_dir\"))?;\n// `repo_dir` is the Repo's contained directory, and should be hosted on a web server, as a directory, etc.\nlet repo_dir = absolute(Path::new(\"./example_repo\"))?;\n// `store_dir` is the local path for the local store, and will be where the Store is placed, and each artifact inside.\nlet store_dir = absolute(Path::new(\"./example_store\"))?;\n// `store_dir` is the local path for the local store, and will be where the Store is placed, and each artifact inside.\nlet cache_path = absolute(Path::new(\"./example_cache\"))?;\n\nlet store = Store {\n    kind: RepoType::Local,\n    cache_path,\n    repo_path: repo_dir.to_string_lossy().to_string(),\n    path: store_dir,\n};\n\n// Create an example repo and a store, *locally*\nlet _ = create_repo(repo_dir.as_path());\nlet _ = create_store(\u0026store);\n\n// Create an example artifact\nfs::create_dir_all(Path::new(\"./example_dir/nested_dir/super_nested_dir\"))?;\nfs::write(\"./example_dir/a\", \"Wow a file\")?;\nfs::write(\"./example_dir/nested_dir/b\", \"Wow another file, shocking.\")?;\nfs::write(\n    \"./example_dir/nested_dir/super_nested_dir/c\",\n    \"Nested nested nested file\",\n)\n.unwrap();\n\n// Compile the artifact into a manifest and chunks and store it\nbuild(\u0026input_dir, \u0026repo_dir, \"generic\")?;\n\n// Install the resulting manifest into an artifact in the `store_dir`\ninstall_artifact(\u0026\"generic\".to_string(), \u0026store)?;\n\nOk(())\n```\n\nFor further examples please check [the examples in the source tree.](https://github.com/TimelessOS/LCAS/tree/main/examples)\n\n## Terminology\n\n- Repo: The storage location of all uploaded chunks, artifacts, and manifests. Commonly used by the distributer of directories.\n- Store: The storage location of all downloaded chunks and manifests, alongside the built artifacts. Commonly used by the downloader of directories.\n- Manifest: A list of every file's relation to a chunk used to recreate the Artifact.\n- Artifact: The actual target directory.\n- Chunk: A raw deduplicated file.\n\nPlease note: There is minor differences between implementation depending on whether they are in relation to the Store or Repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimelessos%2Flcas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimelessos%2Flcas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimelessos%2Flcas/lists"}