{"id":20961378,"url":"https://github.com/perbu/whippet","last_synced_at":"2025-10-14T01:33:04.290Z","repository":{"id":232816290,"uuid":"783342714","full_name":"perbu/whippet","owner":"perbu","description":"Request/response client for MQTT v5","archived":false,"fork":false,"pushed_at":"2024-06-12T14:01:31.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T00:46:58.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-04-07T16:19:45.000Z","updated_at":"2024-06-12T14:01:35.000Z","dependencies_parsed_at":"2024-04-11T17:05:09.198Z","dependency_job_id":"8127ea1d-292d-434f-9e86-d48919d17036","html_url":"https://github.com/perbu/whippet","commit_stats":null,"previous_names":["perbu/whippet"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwhippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwhippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwhippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwhippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/whippet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358212,"owners_count":20277991,"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":[],"created_at":"2024-11-19T02:03:46.033Z","updated_at":"2025-10-14T01:32:59.271Z","avatar_url":"https://github.com/perbu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whippet - a request/response cli tool for MQTT v5\n\nWhippet is a simple command line tool for sending requests and receiving responses over MQTT v5.\n\n![Whippet](whippet-pixels.webp)\n\nTypically, you'll use whippet to request something over MQTT and get a response back. Whippet will take care of \ngenerating and matching up MQTT correlation IDs as well as setting the response topic for the request.\n\nWhippets secondary use case is a library for performing MQTT request/response operations. This is why a lot of the \nlogic is in the whippet package.\n\nWhippet has a wrapper around the paho MQTT client. Its use is optional, naturally. You can just provide your own paho client. \n\n## Usage\n\n```shell\n$ echo \"ping\" | whippet -server tcp://localhost:1883 -topic \"my/topic\" -qos 1\npong\n```\n\nThe message to be sent is read from `stdin` and the response is written to `stdout`. Any error messages\nare written to `stderr`.\n\n### Options\n\n# Application Help Guide\n\nBelow are the command-line options available for the application:\n\n- **-clientID** `string`  \n  Specifies a clientID for the connection.  \n  Default: `$hostname-$random`\n\n- **-help**  \n  Prints this help message.\n\n- **-password** `string`  \n  Password to match username.\n\n- **-qos** `int`  \n  The Quality of Service (QoS) level to send the messages at.  \n  Default: `1`\n\n- **-response-topic** `string`  \n  Topic the other party should respond to. Defaults to the publish topic + `/response`.\n\n- **-retained**  \n  Specifies if the messages are sent with the retained flag.\n\n- **-server** `string`  \n  The full URL of the MQTT server to connect to.  \n  Default: `localhost:1883`\n\n- **-timeout** `duration`  \n  Timeout for the operation.  \n  Default: `10s`\n\n- **-topic** `string`  \n  Topic to publish the messages on.\n\n- **-username** `string`  \n  A username to authenticate to the MQTT server.\n\n\n### Development\n\nThis is quite a simple tool and I made it to scratch my itch. If you need anything in it, \nfeel free to open an issue or a PR.\n\nThe one thing I'll likely add is support for client TLS certs.\n\nNote that the tests fire up a Mochi MQTT broker on port 1883. This is why we have a dependency on\n`github.com/mochi-co/mqtt`. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fwhippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fwhippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fwhippet/lists"}