{"id":15750352,"url":"https://github.com/nwtgck/hb","last_synced_at":"2025-10-26T19:47:16.789Z","repository":{"id":87735698,"uuid":"355362260","full_name":"nwtgck/hb","owner":"nwtgck","description":"Heartbeat CLI","archived":false,"fork":false,"pushed_at":"2023-09-01T09:02:54.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-06T11:55:27.252Z","etag":null,"topics":["cli","heartbeat","keepalive","network"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/nwtgck.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-07T00:07:09.000Z","updated_at":"2023-05-27T11:09:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f6e9c7b-c74b-4914-975f-33c243fab5b1","html_url":"https://github.com/nwtgck/hb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fhb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fhb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fhb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fhb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwtgck","download_url":"https://codeload.github.com/nwtgck/hb/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429493,"owners_count":20775808,"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":["cli","heartbeat","keepalive","network"],"created_at":"2024-10-04T06:40:26.043Z","updated_at":"2025-10-26T19:47:11.755Z","avatar_url":"https://github.com/nwtgck.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hb\nHeartbeat CLI\n\n## Usage\n\nHere is an example. The result is the same as `seq 1000000`.\n\n```bash\nseq 1000000 | hb | hb -d\n```\n\n## Install\n\n### Mac\n\n```bash\nbrew install nwtgck/homebrew-hb/hb\n```\n\n### Other\n\nDownload from \u003chttps://github.com/nwtgck/hb/releases\u003e\n\n## Spec\n\nInput data chunk is encoded as two types, DATA and HEARTBEAT.\n\n* DATA: 0x0\n* HEARTBEAT: 0x1\n\nDATA type has `Length`, which is the length in octets of the `Data`.\n\n```txt\n+--------------------+--------------+-------------------- - - - ---+\n|    DATA type (8)   |  Length (32) |  Data (Length * 8)   ...     |\n+--------------------+--------------+-------------------- - - - ---+\n```\n\nHEARTBEAT type has a random octet, which is discarded.\n\n```txt\n+--------------------+------------+\n| HEARTBEAT type (8) | Random (8) |\n+--------------------+------------+\n```\n\n* `(N)`: N bits\n\n## Help\n\n```txt\nHeartbeat CLI\n\nUsage: hb [OPTIONS]\n\nOptions:\n  -d, --decode              Decode\n  -n, --interval \u003cSECONDS\u003e  Seconds to send a heartbeat [default: 30]\n  -h, --help                Print help\n  -V, --version             Print version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2Fhb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwtgck%2Fhb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2Fhb/lists"}