{"id":20874984,"url":"https://github.com/servicestack/gistcafe-elixir","last_synced_at":"2026-04-24T00:39:44.384Z","repository":{"id":62429815,"uuid":"333096015","full_name":"ServiceStack/gistcafe-elixir","owner":"ServiceStack","description":"gist.cafe utils for Elixir","archived":false,"fork":false,"pushed_at":"2021-01-27T19:13:53.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-09T22:07:07.636Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ServiceStack.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}},"created_at":"2021-01-26T13:37:52.000Z","updated_at":"2021-01-27T19:13:55.000Z","dependencies_parsed_at":"2022-11-01T20:08:37.038Z","dependency_job_id":null,"html_url":"https://github.com/ServiceStack/gistcafe-elixir","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/ServiceStack%2Fgistcafe-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServiceStack%2Fgistcafe-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServiceStack%2Fgistcafe-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServiceStack%2Fgistcafe-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ServiceStack","download_url":"https://codeload.github.com/ServiceStack/gistcafe-elixir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243249011,"owners_count":20260768,"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-11-18T06:40:38.425Z","updated_at":"2025-12-28T04:19:05.350Z","avatar_url":"https://github.com/ServiceStack.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"Useful [gist.cafe](https://gist.cafe) utils for Elixir\n\n## Installation\n\nThis package can be installed by adding `gistcafe` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:gistcafe, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Usage\n\nSimple Usage Example:\n\n```elixir\norg_name = \"elixir-lang\"\n\n\"https://api.github.com/orgs/#{org_name}/repos\"\n|\u003e HTTPoison.get([ \"User-Agent\": \"gist.cafe\" ])\n|\u003e case do\n    {:ok, %{body: raw_body, status_code: code}} -\u003e {code, raw_body}\n    {:error, %{reason: reason}} -\u003e {:error, reason}\n  end\n|\u003e (fn {_, body} -\u003e\n  org_repos = Jason.decode!(body)\n  |\u003e Enum.map(fn (x) -\u003e %{\n    name:        x[\"name\"],\n    description: x[\"description\"],\n    url:         x[\"url\"],\n    lang:        x[\"language\"],\n    watchers:    x[\"watchers\"],\n    forks:       x[\"forks\"]\n  } end)\n  |\u003e Enum.sort_by(\u0026(\u00261.watchers))\n  |\u003e Enum.reverse\n\n  IO.puts \"Top 3 #{org_name} GitHub Repos:\"\n  Inspector.print_dump org_repos |\u003e Enum.take(3)\n\n  IO.puts \"\\nTop 10 #{org_name} GitHub Repos:\"\n  Inspector.print_dump_table Enum.take(org_repos, 7), [:name, :lang, :watchers, :forks]\nend).()\n```\n\nWhich outputs:\n\n```\nTop 3 elixir-lang GitHub Repos:\n[\n  {\n    description: Elixir is a dynamic, functional language designed for building scalable apps,\n    forks: 2606,\n    lang: Elixir,\n    name: elixir,\n    url: https://api.github.com/repos/elixir-lang/elixir,\n    watchers: 18083\n  },\n  {\n    description: Producer and consumer actors with back-pressure for Elixir,\n    forks: 160,\n    lang: Elixir,\n    name: gen_stage,\n    url: https://api.github.com/repos/elixir-lang/gen_stage,\n    watchers: 1048\n  },\n  {\n    description: ExDoc produces HTML and EPUB documentation for Elixir projects,\n    forks: 207,\n    lang: Elixir,\n    name: ex_doc,\n    url: https://api.github.com/repos/elixir-lang/ex_doc,\n    watchers: 991\n  }\n]\n\nTop 10 elixir-lang GitHub Repos:\n+--------------------------------------------------------+\n|          name          |    lang    | watchers | forks |\n|--------------------------------------------------------|\n| elixir_make            | Elixir     |      110 |    25 |\n| elixir-lang.github.com | CSS        |      288 |   746 |\n| gen_stage              | Elixir     |     1048 |   160 |\n| elixir                 | Elixir     |    18083 |  2606 |\n| ex_doc                 | Elixir     |      991 |   207 |\n| registry               | Elixir     |      140 |     6 |\n| elixir-windows-setup   | Inno Setup |       38 |     9 |\n+--------------------------------------------------------+\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ServiceStack/gistcafe-elixir.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservicestack%2Fgistcafe-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservicestack%2Fgistcafe-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservicestack%2Fgistcafe-elixir/lists"}