{"id":51573131,"url":"https://github.com/furui/http-mqtt-bridge","last_synced_at":"2026-07-10T21:30:36.671Z","repository":{"id":366557302,"uuid":"1276788673","full_name":"furui/http-mqtt-bridge","owner":"furui","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-22T10:51:19.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T11:23:16.590Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/furui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-22T09:42:20.000Z","updated_at":"2026-06-22T10:51:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/furui/http-mqtt-bridge","commit_stats":null,"previous_names":["furui/http-mqtt-bridge"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/furui/http-mqtt-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furui%2Fhttp-mqtt-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furui%2Fhttp-mqtt-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furui%2Fhttp-mqtt-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furui%2Fhttp-mqtt-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furui","download_url":"https://codeload.github.com/furui/http-mqtt-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furui%2Fhttp-mqtt-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35344523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-07-10T21:30:35.898Z","updated_at":"2026-07-10T21:30:36.662Z","avatar_url":"https://github.com/furui.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP to MQTT Bridge\n\nA minimal HTTP to MQTT bridge written in Go that allows publishing MQTT messages via HTTP GET or POST requests.\n\n## Environment Variables\n\n| Variable | Required | Default | Description |\n| :--- | :---: | :---: | :--- |\n| `AUTH_KEY` | **Yes** | — | Secret token required to authorize requests. |\n| `MQTT_HOST` | **Yes** | — | Broker connection URI (e.g., `tcp://localhost:1883`). |\n| `MQTT_USER` | No | — | Username for broker authentication. |\n| `MQTT_PASS` | No | — | Password for broker authentication. |\n| `HTTP_PORT` | No | `8080` | Port for the HTTP server to listen on. |\n\n---\n\n## API Reference\n\n### Endpoint\n`ANY /publish`\n\n### Parameters\nParameters must be passed as URL query variables (GET) or form-encoded body parameters (POST). Headers are ignored for authentication.\n\n* `auth_key` (Required): Must match the application's `AUTH_KEY` environment variable.\n* `topic` (Required): Target MQTT topic.\n* `payload` (Required): String content to publish.\n* `qos` (Optional): MQTT Quality of Service level (`0`, `1`, or `2`). Defaults to `1`.\n\n---\n\n## Examples\n\n### HTTP GET\n```bash\ncurl \"http://localhost:8080/publish?auth_key=secret\u0026topic=home/test\u0026payload=hello\u0026qos=0\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurui%2Fhttp-mqtt-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurui%2Fhttp-mqtt-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurui%2Fhttp-mqtt-bridge/lists"}