{"id":18597299,"url":"https://github.com/wiremoons/hns","last_synced_at":"2026-02-14T20:05:07.542Z","repository":{"id":40405887,"uuid":"491985335","full_name":"wiremoons/hns","owner":"wiremoons","description":"C++ CLI app to monitor and extract the latest Hacker News stories.","archived":false,"fork":false,"pushed_at":"2024-05-19T08:41:34.000Z","size":147,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T08:11:35.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/wiremoons.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-13T17:27:41.000Z","updated_at":"2024-05-19T08:41:37.000Z","dependencies_parsed_at":"2024-05-19T09:34:24.955Z","dependency_job_id":"65538538-2cb0-4c9d-9ea6-c57c74a3c65c","html_url":"https://github.com/wiremoons/hns","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/wiremoons/hns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fhns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fhns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fhns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fhns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremoons","download_url":"https://codeload.github.com/wiremoons/hns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fhns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29454758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-07T01:27:37.459Z","updated_at":"2026-02-14T20:05:02.532Z","avatar_url":"https://github.com/wiremoons.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE) [![CodeQL](https://github.com/wiremoons/hns/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/wiremoons/hns/actions/workflows/codeql-analysis.yml) [![hns-build](https://github.com/wiremoons/hns/actions/workflows/hns-build.yml/badge.svg)](https://github.com/wiremoons/hns/actions/workflows/hns-build.yml)\n\n# hns\nCLI app to monitor and extract the latest Hacker News stories.\n\nThe official web site for [Hacker News](https://news.ycombinator.com/news) can\nalso show the latest new articles published if preferred.\n\n## Executing the program\n\nThe application is command line application that is run from a terminal program on *macOS*, *Linux*, or *Windows*. Example of the basic output from executing the program `nhs` is as below. If supported by the terminal, colour output is included.\n\n```console\n./bin/hns \n\nStarting Hacker News Stream (hns)...\nStarting article ID: 31546834\nWaiting for new HN stories... checking every 2 minutes\n\n    Title:      'UN Warns of ‘Total Societal Collapse’ Due to Breaching of Planetary Boundaries'\n    NH Link:     https://news.ycombinator.com/item?id=31546839\n    Story URL:   https://bylinetimes.com/2022/05/26/un-warns-of-total-societal-collapse-due-to-breaching-of-planetary-boundaries/\n    Posted by:  'chewymouse' at 'Sun 29 May 2022 @ 07:08'\n    Stats:      '1' displayed. '4' omitted. '5' total scanned.\n\n    Title:      'AWS Graviton3 Hits GA with 3 Sockets per Motherboard Designs'\n    NH Link:     https://news.ycombinator.com/item?id=31546847\n    Story URL:   https://www.servethehome.com/amazon-aws-graviton3-hits-ga-with-3-sockets-per-motherboard-designs-tri-socket-arm/\n    Posted by:  'mpweiher' at 'Sun 29 May 2022 @ 07:10'\n    Stats:      '2' displayed. '11' omitted. '13' total scanned.\n\n    Title:      'Distribution and diversity of Central African hunter-gatherers'\n    NH Link:     https://news.ycombinator.com/item?id=31546870\n    Story URL:   https://www.pnas.org/doi/10.1073/pnas.2113936119\n    Posted by:  'bryanrasmussen' at 'Sun 29 May 2022 @ 07:14'\n    Stats:      '3' displayed. '33' omitted. '36' total scanned.\n\nLast check: 10:09:23\n```\n\nExample output with run with either `-v` or `--version`:\n```console\n% hns --version\n\n'./hns' version is: '0.5.4'\nCompiled on: 'Jul 23 2022 @ 15:35:52'.\nCopyright (c) 2022 Simon Rowe.\n\nC++ source built as 'Release' using compiler 'clang 13.1.6 (clang-1316.0.21.2.5)'.\n\nIncluded library versions:\n- cpr version: '1.9.0'\n- Curl library version: '7.84.0-DEV'\n- fmt version: '80101'\n- nlohmann_json version: '3.10.5'\n- spdlog version: '11000'\n\nFor licenses and further information visit:\n- Hacker News Stream (hns):   https://github.com/wiremoons/hns\n- argparse:                   https://github.com/p-ranav/argparse\n- curl:                       https://github.com/curl/curl\n- Curl for People (cpr):      https://github.com/libcpr/cpr\n- fmt:                        https://github.com/fmtlib/fmt\n- nlohmann_json:              https://github.com/nlohmann/json\n- spdlog:                     https://github.com/gabime/spdlog\n\n```\n\nExample output with run with either `-h` or `--help`:\n```console\n% hns -h\nUsage: hns [options] \n\nHacker News Stream (HNS) obtains the latest stories from the Hacker News API.\n\nOptional arguments:\n-h --help       shows help message and exits\n-v --version    prints version information and exits\n\n\n```\n\n## Build\n\nA C++ compiler is required to build `hns`. \n\n- `cmake` is recommended to perform the build.\n- `vcpkg` is recommended to perform the config and package management. \n\nIf the computer the build is being performed on has `vcpkg` available, then it will be \nused for building the library dependencies. Otherwise `cmake` will use its \n*fecthContent* feature instead.\n\nIn order to build using `vcpkg` or `cmake` directly, clone this repo and then run:\n\n```console\ncmake -S . -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n```\n\nThe resulting program is in located the `./bin/` sub-directory.\n\nTo detect and use `vcpkg` the `cmake` process looks for the environment variable `VCPKG_ROOT`. Set this to the location of `vcpkg` installation. For assistance with installing `vcpkg` see: [Get started with vcpkg](https://vcpkg.io/en/getting-started.html).\n```\n# Most Unix (Linux, macOS, etc):\nexport VCPKG_ROOT=~/.vcpkg\n```\n\n### Fedora Asahi - Build Issue\n\nWhen excuting the build as decribed above on *Fedora Asahi* for *aarch64* the `vcpkg` build fails on the *OpenSSL* library. To fix it addtional *Perl* modules are needed, that can be installed with the command:\n\n```\nsudo dnf install perl-IPC-Cmd perl-FindBin\n```\n\n## Library Dependencies\n\nThe following libraries are used to build `hns`. They are included statically by default, and the dependency \nmanagement is managed at build time either via `vcpkg` or `cmake`.\n\n- argparse: https://github.com/p-ranav/argparse\n- curl: https://github.com/curl/curl\n- Curl for People (cpr): https://github.com/libcpr/cpr\n- fmt: https://github.com/fmtlib/fmt\n- nlohmann_json: https://github.com/nlohmann/json\n- spdlog: https://github.com/gabime/spdlog\n\nThank you to the authors of the above libraries for making them available as open source.\n\n## License\n\nThe `hns` application is provided under the _MIT open source license_. A copy\nof the MIT license file is [here](./LICENSE).\n\nThe [Hacker News API](https://github.com/HackerNews/API) is provided under the\n_MIT_ open source license. A copy of the license file is\n[here](https://github.com/HackerNews/API/blob/665205f324b95f60bc7889b543978f728c274c4a/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fhns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremoons%2Fhns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fhns/lists"}