{"id":22980163,"url":"https://github.com/davoodeh/mittor","last_synced_at":"2026-05-03T06:34:41.502Z","repository":{"id":128263447,"uuid":"544511350","full_name":"Davoodeh/mittor","owner":"Davoodeh","description":"MQTT Mirroring Tool and Echo Server","archived":false,"fork":false,"pushed_at":"2023-02-26T03:49:33.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T09:24:53.373Z","etag":null,"topics":["echo-server","internal-tool","mqtt"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Davoodeh.png","metadata":{"files":{"readme":"README.org","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":"2022-10-02T17:02:29.000Z","updated_at":"2023-01-01T13:03:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab0f57b3-eec7-4b16-a117-c972c2cda6d3","html_url":"https://github.com/Davoodeh/mittor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Davoodeh/mittor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davoodeh%2Fmittor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davoodeh%2Fmittor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davoodeh%2Fmittor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davoodeh%2Fmittor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Davoodeh","download_url":"https://codeload.github.com/Davoodeh/mittor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davoodeh%2Fmittor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"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":["echo-server","internal-tool","mqtt"],"created_at":"2024-12-15T01:37:50.196Z","updated_at":"2026-05-03T06:34:41.467Z","avatar_url":"https://github.com/Davoodeh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+title: Mittor: MQTT Mirroring Tool and Echo Server\n\nThis simple tool is a rewrite of a shell script of mine which redirects MQTT\nrequests to email, log files, other MQTT servers or alternatively makes HTTP\nrequests to a server upon each incoming message. The script is no longer\nmaintained for the limitations in Mosquitto and its issue regarding secure\nports. Basically, developers using my script could not listen and echo their\ntools when using port 8883 with unsecure MQTT simply because Mosquitto did not\nsupport this feature.\n\nThis simple rewrite has two important features which the original script lacked:\n1. 8883 port can be unsecure.\n2. messages can be multiline.\n\nHowever, other features like redirecting to HTTP, email, log file and mutliple\nMQTT version/QoS are missing.\n\nSince this is an internal tool used for some IoT developers to mirror and echo\ntheir MQTT requests, I do not plan to actively edit and add features to this\ncodebase unless requests. Although, it is a pretty neat little project that\ncould prove useful per special case.\n\n* Help\n#+begin_src text\nEcho or mirror select topics of an MQTT server to the given redirect hosts\n\nUsage: mittor [OPTIONS] --topics \u003cTOPICS\u003e \u003cSOURCE_HOST\u003e\n\nArguments:\n  \u003cSOURCE_HOST\u003e\n          the upstream server to mirror from\n          (e.g. `localhost` or `tcp://localhost:1883`, `user:pass@localhost`)\n\nOptions:\n  -r, --redirect-host \u003cREDIRECT_HOST\u003e\n          addresses of hosts to redirect to\n          (e.g. `localhost` or `tcp://localhost:1883`, `user:pass@localhost`)\n\n  -t, --topics \u003cTOPICS\u003e\n          the topics to listen to\n\n  -q, --qos \u003cQOS\u003e\n          the QoS for each topic, ordered\n          (the count must be the same as topics' otherwise uses default)\n\n          [default: 0 for all the topics]\n\n  -c, --client \u003cCLIENT\u003e\n          client ID of mirrors sending requests to the redirect hosts\n\n          [default: MetalLeech]\n\n  -h, --help\n          Print help information (use `-h` for a summary)\n#+end_src\n\n** Example\n#+begin_src sh\n# Redirect localhost:1883/test and /test2 to logserver.dev:1883\n# \"tcp://\" is optional\nmittor tcp://localhost:1883 -r logserver.dev:1883                          \\\n    -t test -t test2                                                       \\\n    -q 0    -q 0                                                           \\\n    -c test-client\n#+end_src\n\n#+begin_src sh\n# Redirect localhost:1883/test and /test2 to logserver.dev:1883\n# assuming the server uses password\nmittor tcp://user:pass@localhost:1883 -r logserver.dev:1883                \\\n    -t test -t test2                                                       \\\n    -q 0    -q 0                                                           \\\n    -c test-client\n#+end_src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavoodeh%2Fmittor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavoodeh%2Fmittor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavoodeh%2Fmittor/lists"}