{"id":15404537,"url":"https://github.com/k1low/ghfs","last_synced_at":"2025-04-16T21:29:50.021Z","repository":{"id":46109923,"uuid":"425102065","full_name":"k1LoW/ghfs","owner":"k1LoW","description":":octocat: Go io/fs implementation for GitHub remote repository","archived":false,"fork":false,"pushed_at":"2025-03-22T02:09:15.000Z","size":106,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T05:41:34.625Z","etag":null,"topics":["github","golang","iofs"],"latest_commit_sha":null,"homepage":"","language":"Go","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/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-11-05T22:41:06.000Z","updated_at":"2025-03-22T02:09:07.000Z","dependencies_parsed_at":"2024-01-08T23:45:31.571Z","dependency_job_id":"d7a3b0af-e264-49dd-be86-c7553e17ff84","html_url":"https://github.com/k1LoW/ghfs","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":"0.24615384615384617","last_synced_commit":"5b7450707caa4f4a7095f61b65d654953442ac02"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fghfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/ghfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249279086,"owners_count":21242844,"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":["github","golang","iofs"],"created_at":"2024-10-01T16:13:35.461Z","updated_at":"2025-04-16T21:29:49.998Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# ghfs [![build](https://github.com/k1LoW/ghfs/actions/workflows/ci.yml/badge.svg)](https://github.com/k1LoW/ghfs/actions/workflows/ci.yml)\n\n:octocat: `ghfs` implements the [io/fs](https://pkg.go.dev/io/fs) interfaces for GitHub remote repositories.\n\nThe implementation wraps [go-github](https://github.com/google/go-github) client and use [Git Database API](https://docs.github.com/en/rest/reference/git).\n\n## Supported interface\n\n- [fs.FS](https://pkg.go.dev/io/fs#FS)\n- [fs.ReadFileFS](https://pkg.go.dev/io/fs#ReadFileFS)\n- [fs.ReadDirFS](https://pkg.go.dev/io/fs#ReadDirFS)\n- [fs.SubFS](https://pkg.go.dev/io/fs#SubFS)\n\n## Usage\n\n``` go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\n\t\"github.com/k1LoW/ghfs\"\n)\n\nfunc main() {\n\tfsys, err := ghfs.New(\"golang\", \"time\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tf, err := fsys.Open(\"README.md\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tb, err := io.ReadAll(f)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%s\\n\", b)\n}\n```\n\n## References\n\n- [johejo/ghfs](https://github.com/johejo/ghfs): Package ghfs wraps the github v3 rest api with io/fs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fghfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fghfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fghfs/lists"}