{"id":47890979,"url":"https://github.com/maxbeizer/gh-onion","last_synced_at":"2026-04-04T03:05:47.430Z","repository":{"id":343252759,"uuid":"1175939155","full_name":"maxbeizer/gh-onion","owner":"maxbeizer","description":"America's finest news source in your terminal","archived":false,"fork":false,"pushed_at":"2026-03-18T14:33:24.000Z","size":895,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-19T05:12:43.283Z","etag":null,"topics":["gh-extension","onion"],"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/maxbeizer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T11:49:43.000Z","updated_at":"2026-03-18T14:33:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxbeizer/gh-onion","commit_stats":null,"previous_names":["maxbeizer/gh-onion"],"tags_count":1,"template":false,"template_full_name":"maxbeizer/gh-extension-template","purl":"pkg:github/maxbeizer/gh-onion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-onion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-onion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-onion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-onion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxbeizer","download_url":"https://codeload.github.com/maxbeizer/gh-onion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-onion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31385940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"online","status_checked_at":"2026-04-04T02:00:07.569Z","response_time":60,"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":["gh-extension","onion"],"created_at":"2026-04-04T03:05:46.796Z","updated_at":"2026-04-04T03:05:47.425Z","avatar_url":"https://github.com/maxbeizer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-onion 🧅\n\nA [GitHub CLI](https://cli.github.com/) extension that brings [The Onion](https://theonion.com/) to your terminal. Bundled dataset, zero API dependencies, pure fun.\n\n## Install\n\n```bash\ngh extension install maxbeizer/gh-onion\n```\n\n## Commands\n\n```bash\ngh onion                  # Random headline (Onion or real news)\ngh onion motd             # Headline of the day — add to your .zshrc\ngh onion search \u003cterm\u003e    # Search headlines by keyword\ngh onion fresh            # Fetch a fresh headline from The Onion's RSS feed\n```\n\n### Random Headline\n\n```\n$ gh onion\n\n  ╔══════════════════════════════════════════════════════════╗\n  ║ Study Finds Every Style Of Parenting Produces            ║\n  ║ Disturbed, Miserable Adults                              ║\n  ╚══════════════════════════════════════════════════════════╝\n\n  — The Onion\n```\n\n### Message of the Day\n\nAdd to your `.zshrc` or `.bashrc`:\n\n```bash\ngh onion motd\n```\n\nOutput:\n```\n📰 Today's Headline from America's Finest News Source:\n   \"Study Finds Every Style Of Parenting Produces Disturbed, Miserable Adults\"\n```\n\n### Search\n\n```\n$ gh onion search florida\n\nFound 4 headline(s) matching \"florida\":\n\n  📰 Florida Man Arrested For Trying To Open Airplane Emergency Exit Mid-Flight\n  📰 Florida Man Uses Alligator To Shotgun A Beer\n  📰 69-Year-Old Florida Man Hits Nephew With Pizza Over Prior Pizza Incident\n  📰 Florida Man Steals Elderly Woman's Purse, Returns It After Finding Bible Inside\n```\n\n### Fresh (RSS)\n\n```bash\ngh onion fresh   # Requires internet\n```\n\n### JSON Output\n\nAll commands support `--json` and `--jq` flags:\n\n```bash\ngh onion --json\ngh onion search dog --jq .text\ngh onion motd --json\n```\n\n## Development\n\n```bash\nmake help          # see all targets\nmake build         # build binary\nmake test          # run tests\nmake ci            # build + vet + test-race\nmake install-local # install extension from checkout\nmake relink-local  # reinstall after changes\n```\n\n## Dataset\n\nThis extension bundles the [Onion or Not](https://www.kaggle.com/datasets/chrisfilo/onion-or-not) dataset (~24k headlines) by [Chris Filo Finan](https://www.kaggle.com/chrisfilo), licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). The dataset contains headlines from The Onion and r/NotTheOnion.\n\n## Releasing\n\nTag a version to trigger a release build:\n\n```bash\ngit tag v0.1.0\ngit push origin v0.1.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbeizer%2Fgh-onion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxbeizer%2Fgh-onion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbeizer%2Fgh-onion/lists"}