{"id":47804351,"url":"https://github.com/godaner/brokerc","last_synced_at":"2026-04-03T17:26:00.521Z","repository":{"id":54308443,"uuid":"336746341","full_name":"godaner/brokerc","owner":"godaner","description":"brokerc is a cross-platform publish and subscribe command line client tool, including mqtt client, amqp client, kafka client, http client.","archived":false,"fork":false,"pushed_at":"2021-02-25T02:02:14.000Z","size":116282,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T23:14:59.713Z","etag":null,"topics":["amqp","amqp-client","http","http-client","https","kafka","kafka-client","mqtt","mqtt-client","mqtt-protocol","rabbit","rabbitmq","rabbitmq-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/godaner.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}},"created_at":"2021-02-07T09:14:33.000Z","updated_at":"2021-09-15T02:59:48.000Z","dependencies_parsed_at":"2022-08-13T11:40:15.873Z","dependency_job_id":null,"html_url":"https://github.com/godaner/brokerc","commit_stats":null,"previous_names":["godaner/mqttc"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/godaner/brokerc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaner%2Fbrokerc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaner%2Fbrokerc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaner%2Fbrokerc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaner%2Fbrokerc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godaner","download_url":"https://codeload.github.com/godaner/brokerc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaner%2Fbrokerc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31365930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:13:05.644Z","status":"ssl_error","status_checked_at":"2026-04-03T17:13:04.413Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["amqp","amqp-client","http","http-client","https","kafka","kafka-client","mqtt","mqtt-client","mqtt-protocol","rabbit","rabbitmq","rabbitmq-client"],"created_at":"2026-04-03T17:25:59.788Z","updated_at":"2026-04-03T17:26:00.509Z","avatar_url":"https://github.com/godaner.png","language":"Go","readme":"# Brokerc\nbrokerc is a cross-platform publish and subscribe command line client tool, including mqtt client, amqp client, kafka client, http client.\n# Install\nTo install the library, follow the classical:\n\n    $ go get github.com/godaner/brokerc\n    \nOr get it from the released version: \n\n    https://github.com/godaner/brokerc/releases\n    \n\u003e Note: curl -LJO https://github.com/godaner/brokerc/releases/download/v1.0.2/brokerc_linux-amd64.tar.gz, tar -zxvf brokerc_linux-amd64.tar.gz\n\n# Supported platforms\n\nThis library works (and is tested) on the following platforms:\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003ePlatform\u003c/th\u003e\n      \u003cth\u003eArchitecture\u003c/th\u003e\n      \u003cth\u003eStatus\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd rowspan=\"2\"\u003eLinux\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003eamd64\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e✅\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003e386\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e✅\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd rowspan=\"2\"\u003eWindows\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003eamd64\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e✅\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003e386\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e✅\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eOthers\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003eOthers\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e⏳\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n# Usage\n```\n$ ./brokerc --help\nNAME:\n   brokerc - brokerc is a cross-platform publish and subscribe command line client tool, including mqtt client, amqp client, kafka client, http client.\n\nUSAGE:\n   brokerc [global options] command [command options] [arguments...]\n\nVERSION:\n   v1.0.2\n\nCOMMANDS:\n   mqttpub   publish mqtt message\n   mqttsub   subscribe mqtt message\n   amqpsub   subscribe amqp message\n   amqppub   publish amqp message\n   kafkapub  publish kafka message\n   kafkasub  subscribe kafka message\n   httppub   publish http message\n   httpsub   subscribe http message\n   help, h   Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --help     show help\n   --version  print the version\n```\n## MQTT\n#### Publish\n    ./brokerc mqttpub \\\n    tcp://system:manager@192.168.2.60:1883 \\\n    -t \"/a/b\" \\\n    -i \"mqttpub\" \\\n    -m 'cas' \\\n    --will-payload 'pub bye' \\\n    --will-topic 'will'\n#### Publish with tls\n    ./brokerc mqttpub \\\n    ssl://system:manager@localhost:1883 \\\n    -t \"/a/b\" \\\n    -i \"mqttpub\" \\\n    -m 'cas' \\\n    --will-payload 'pub bye' \\\n    --will-topic 'will' \\\n    -insecure \\\n    -cafile '/opt/OmniVista_2500_NMS/data/cert/wma/ca.cer' \\\n    -cert /opt/OmniVista_2500_NMS/data/cert/wma/wma.pem \\\n    -key /opt/OmniVista_2500_NMS/data/cert/wma/wma.key\n#### Subscribe\n    ./brokerc mqttsub \\\n    tcp://system:manager@192.168.2.60:1883 \\\n    -t \"/a/b\" \\\n    -i \"mqttsub\" \\\n    --will-payload 'sub bye' \\\n    --will-topic 'will'\n#### Subscribe with tls\n    ./brokerc mqttsub \\\n    ssl://system:manager@localhost:1883 \\\n    -t \"/a/b\" \\\n    -i \"mqttsub\" \\\n    --will-payload 'sub bye' \\\n    --will-topic 'will' \\\n    -insecure \\\n    -cafile '/opt/OmniVista_2500_NMS/data/cert/wma/ca.cer' \\\n    -cert /opt/OmniVista_2500_NMS/data/cert/wma/wma.pem \\\n    -key /opt/OmniVista_2500_NMS/data/cert/wma/wma.key\n## AMQP\n#### Publish\n    ./brokerc amqppub \\\n    amqp://system:manager@192.168.2.60:5672 \\\n    -t \"/a/b\" \\\n    -i \"amqpsubclient\" \\\n    --exchange \"amqpexchange\" \\\n    -m 'hey man!'\n#### Subscribe\n    ./brokerc amqpsub \\\n    amqp://system:manager@192.168.2.60:5672 \\\n    -t \"/a/b\" \\\n    -i \"amqpsubclient\" \\\n    --queue \"amqpqueue\" \\\n    --exchange \"amqpexchange\" \\\n    --exchange-type \"direct\" \\\n    --queue-ad \\\n    --exchange-ad\n## HTTP\n#### Publish\n    ./brokerc httppub \\\n    http://127.0.0.1:2222/apiv1/do \\\n    -H \"K1:A=C;K2:B=D;K1:E=F;\" \\\n    -m 'hey man!'\n#### Subscribe\n    ./brokerc httpsub \\\n    -h :2222\n## Kafka\n#### Publish\n    ./brokerc kafkapub \\\n    192.168.2.10:9092 \\\n    -t \"ktopic\" \\\n    -m 'test message'\n#### Subscribe\n    ./brokerc kafkasub \\\n    192.168.2.10:9092 \\\n    -t \"ktopic\" \\\n    -p 3 \\\n    -r 1 \\\n    -q \"kqueue\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodaner%2Fbrokerc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodaner%2Fbrokerc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodaner%2Fbrokerc/lists"}