{"id":22868313,"url":"https://github.com/markfchavez/ex_github","last_synced_at":"2025-03-31T10:50:14.422Z","repository":{"id":68182913,"uuid":"99768080","full_name":"MarkFChavez/ex_github","owner":"MarkFChavez","description":"Github Repositories API using Elixir Agents","archived":false,"fork":false,"pushed_at":"2017-08-09T14:48:19.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T15:53:13.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarkFChavez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-08-09T05:25:18.000Z","updated_at":"2017-08-10T04:11:42.000Z","dependencies_parsed_at":"2023-02-26T19:00:49.519Z","dependency_job_id":null,"html_url":"https://github.com/MarkFChavez/ex_github","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fex_github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fex_github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fex_github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fex_github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkFChavez","download_url":"https://codeload.github.com/MarkFChavez/ex_github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458022,"owners_count":20780675,"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":[],"created_at":"2024-12-13T12:33:17.509Z","updated_at":"2025-03-31T10:50:14.399Z","avatar_url":"https://github.com/MarkFChavez.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github\n\nThis is a basic implementation of fetching a list of GitHub repositories by\npassing in a username.\n\n## So What's Special?\n\nIt enables a caching mechanism that stores the username as a key and his/her\nrepositories as its value. So that subsequent calls to the same *username*\nwill not call GitHub.\n\n**TODOs**:\n- Capability to sync a username with GitHub so when a new repository is added to\nan already-cached user, the state will update to reflect the latest.\n\n## Simple Usage\n\n```elixir\n{:ok, pid} = Github.start()\n\nGithub.get(\"mrkjlchvz\")\nGithub.get(\"ccelestial\")\nGithub.get(\"bnicart\")\n```\n\n## Concurrency Demo\n\n```elixir\n{:ok, pid} = Github.start()\n\nusernames = [\"mrkjlchvz\", \"bnicart\", \"ccelestial\"]\n\nEnum.each usernames, fn username -\u003e\n  spawn fn -\u003e Github.get(username) end\nend\n\nGithub.get(\"mrkjlchvz\") # should access from cache\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `github` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:github, \"~\u003e 0.1.0\"}]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/github](https://hexdocs.pm/github).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkfchavez%2Fex_github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkfchavez%2Fex_github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkfchavez%2Fex_github/lists"}