{"id":16201438,"url":"https://github.com/amscotti/hacker_news","last_synced_at":"2025-04-07T18:35:30.776Z","repository":{"id":45279172,"uuid":"436102317","full_name":"amscotti/hacker_news","owner":"amscotti","description":"A command line tool that shows the top stories from Hacker News using the Hacker News API from Firebase","archived":false,"fork":false,"pushed_at":"2024-03-10T22:27:42.000Z","size":539,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T13:09:20.102Z","etag":null,"topics":["command-line","hackernews","hackernews-api","news"],"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/amscotti.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-08T03:21:30.000Z","updated_at":"2023-04-21T23:59:44.000Z","dependencies_parsed_at":"2024-03-10T23:38:20.304Z","dependency_job_id":null,"html_url":"https://github.com/amscotti/hacker_news","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhacker_news","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhacker_news/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhacker_news/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhacker_news/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amscotti","download_url":"https://codeload.github.com/amscotti/hacker_news/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247707528,"owners_count":20982802,"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":["command-line","hackernews","hackernews-api","news"],"created_at":"2024-10-10T09:37:59.394Z","updated_at":"2025-04-07T18:35:30.747Z","avatar_url":"https://github.com/amscotti.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hacker_news\n\nA command line tool that shows the top stories from [Hacker News](https://news.ycombinator.com/) using the [Hacker News API from Firebase](https://github.com/HackerNews/API).\n\nThis is a port of an dotnet version, [hn-top](https://github.com/amscotti/hn-top) which I used to learn about Go and understand how to keep the order of the stories when using Goroutines.\n\n![hacker_news Output](hacker_news.png)\n\n## Building and Running\n\n### With Go\n\nTo build and run the application, follow these steps:\n\n1. Clone the repository.\n2. Navigate to the root directory of the project.\n3. Build the binary with `go build`.\n4. Run the binary with `./hacker_news`.\n\n### With Docker\n\nTo build and run the application with Docker, follow these steps:\n\n1. Clone the repository.\n2. Navigate to the root directory of the project.\n3. Build the Docker image with `docker build -t hacker_news .`.\n4. Run the Docker container with `docker run hacker_news`.\n\n### With pre-built Docker image from [ghcr.io](https://github.com/amscotti/hacker_news/pkgs/container/hacker_news)\n\nTo download and run the pre-built Docker image, follow these steps:\n\n1. Install Docker.\n2. Run the command `docker run ghcr.io/amscotti/hacker_news:main`.\n\n### Command Line Arguments\n\nThe following command line arguments are available:\n\n```\nUsage of ./hacker_news:\n  -n int\n        Specify the number of top stories to display. (default: 30)\n  -u    Include the source URLs of the stories in the output.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famscotti%2Fhacker_news","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famscotti%2Fhacker_news","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famscotti%2Fhacker_news/lists"}