{"id":16656573,"url":"https://github.com/sheharyarn/github-trending","last_synced_at":"2026-03-12T00:05:29.618Z","repository":{"id":20674673,"uuid":"23957497","full_name":"sheharyarn/github-trending","owner":"sheharyarn","description":"A gem that fetches trending github repos","archived":false,"fork":false,"pushed_at":"2015-03-25T18:13:45.000Z","size":307,"stargazers_count":42,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T11:27:39.320Z","etag":null,"topics":["github","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/trending","language":"Ruby","has_issues":false,"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/sheharyarn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-12T11:07:54.000Z","updated_at":"2025-11-10T20:09:44.000Z","dependencies_parsed_at":"2022-08-21T19:20:49.038Z","dependency_job_id":null,"html_url":"https://github.com/sheharyarn/github-trending","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/sheharyarn/github-trending","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fgithub-trending","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fgithub-trending/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fgithub-trending/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fgithub-trending/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheharyarn","download_url":"https://codeload.github.com/sheharyarn/github-trending/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheharyarn%2Fgithub-trending/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30407839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"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":["github","ruby"],"created_at":"2024-10-12T09:57:48.267Z","updated_at":"2026-03-12T00:05:29.604Z","avatar_url":"https://github.com/sheharyarn.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"github-trending\n===============\n\n`github-trending` is a gem that fetches [Trending repositories on GitHub](https://github.com/trending). It's functionality was extracted from the command-line utility [`git-trend`](https://github.com/rochefort/git-trend), so almost all of the code is written by **[@rochefort](https://github.com/rochefort)**.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'github-trending', github: 'sheharyarn/github-trending'\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install github-trending\n```\n\n## Usage\n\nRequire it if you haven't:\n\n```ruby\nrequire 'github-trending'\n```\n\nGet the day's trending repos:\n\n```ruby\nrepos = Github::Trending.get\nrepos.each do |r|\n  puts \"#{r.name} (#{r.star_count} stargazers)\"\n  puts \"--- #{r.description}\\n\\n\"\nend\n\n# =\u003e\n# sindresorhus/awesome-nodejs (712 stargazers)\n# --- A curated list of delightful Node.js packages and resources.\n#\n# MrSwitch/hello.js (536 stargazers)\n# --- A Javascript RESTFUL API library for connecting with OAuth2 services, such as Google+ API, Facebook Graph # and Windows Live Connect\n#\n# ColdSauce/CosmosBrowserAndroid (391 stargazers)\n# --- Cosmos Browser allows a person to connect to the internet through the use of SMS. No data or wifi required.\n#\n# ...\n```\n\nYou can also fetch by a specific language:\n\n```ruby\nruby_repos = Github::Trending.get :ruby\nobjc_repos = Github::Trending.get :objective_c\n```\n\nTo get a list of all languages:\n\n```ruby\nlanguages = Github::Trending.languages\n```\n\nYou can get top github repos of the `:week` and `:month` as well (default is `:day`):\n\n```ruby\nGithub::Trending.get(:scala, :week)\n# Top scala repos in the week\n\nGithub::Trending.get(nil, :month)\n# Top repos (all languages) in this month\n\nGithub::Trending.get('objective-c++', 'day')\n# Can pass strings as well\n```\n\n\n## Contributing\n\n1. Fork it ( https://github.com/sheharyarn/github-trending/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheharyarn%2Fgithub-trending","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheharyarn%2Fgithub-trending","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheharyarn%2Fgithub-trending/lists"}