{"id":29090361,"url":"https://github.com/soenneker/soenneker.github.filestore","last_synced_at":"2026-06-02T07:00:45.192Z","repository":{"id":294709494,"uuid":"987845685","full_name":"soenneker/soenneker.github.filestore","owner":"soenneker","description":"A high-level file system utility for GitHub repositories, built on the GitHub OpenAPI client. Supports reading, writing, deleting, listing, and checking file existence via the GitHub Contents API.","archived":false,"fork":false,"pushed_at":"2026-05-28T20:40:37.000Z","size":945,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-28T22:18:05.177Z","etag":null,"topics":["api","blob","client","content","crud","csharp","dotnet","file","filestore","filesystem","github","githubfilestore","openapi","repository","rest","sdk","soenneker","storage","store","util"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"C#","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/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2025-05-21T17:10:59.000Z","updated_at":"2026-05-28T20:40:42.000Z","dependencies_parsed_at":"2026-05-14T03:01:30.878Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.github.filestore","commit_stats":null,"previous_names":["soenneker/soenneker.github.filestore"],"tags_count":484,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.github.filestore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.github.filestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.github.filestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.github.filestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.github.filestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.github.filestore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.github.filestore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33810343,"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-02T02:00:07.132Z","response_time":109,"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":["api","blob","client","content","crud","csharp","dotnet","file","filestore","filesystem","github","githubfilestore","openapi","repository","rest","sdk","soenneker","storage","store","util"],"created_at":"2025-06-28T05:01:48.521Z","updated_at":"2026-06-02T07:00:45.173Z","avatar_url":"https://github.com/soenneker.png","language":"C#","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.github.filestore.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.github.filestore/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.github.filestore/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.github.filestore/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.github.filestore.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.github.filestore/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.github.filestore/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.github.filestore/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.GitHub.FileStore\n### A high-level file system utility for GitHub repositories, built on the GitHub OpenAPI client. Supports reading, writing, deleting, listing, and checking file existence via the GitHub Contents API.\n\n## Features\n\n* ?? Read file content from a GitHub repository\n* ?? Write new files with commit messages and optional branch targeting\n* ? Delete files with SHA validation\n* ?? List directory contents\n* ? Check for file existence\n* ?? Built on top of a typed OpenAPI GitHub client\n\n## Installation\n\n```bash\ndotnet add package Soenneker.GitHub.FileStore\n````\n\n## Setup\n\n```csharp\nbuilder.Services.AddGitHubFileStoreAsSingleton();\n```\n\nThis will register all necessary dependencies, including the underlying GitHub OpenAPI client.\n\n?? **Note**: The GitHub access token must be provided via configuration under the key: `GitHub:Token`.\n\n## Example Usage\n\n```csharp\npublic class MyService\n{\n    private readonly IGitHubFileStore _store;\n\n    public MyService(IGitHubFileStore store)\n    {\n        _store = store;\n    }\n\n    public async Task Run()\n    {\n        string content = await _store.Read(\"owner\", \"repo\", \"README.md\");\n\n        await _store.Create(\"owner\", \"repo\", \"newfile.txt\", \"Hello world!\");\n\n        bool exists = await _store.Exists(\"owner\", \"repo\", \"README.md\");\n\n        var files = await _store.List(\"owner\", \"repo\", \"docs\");\n\n        await _store.Delete(\"owner\", \"repo\", \"oldfile.txt\");\n    }\n}\n```\n\n## Related Packages\n\n* [`Soenneker.GitHub.OpenApiClient`](https://www.nuget.org/packages/Soenneker.GitHub.OpenApiClient)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.github.filestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.github.filestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.github.filestore/lists"}