{"id":50127010,"url":"https://github.com/joehonkey/msg2irc","last_synced_at":"2026-05-23T20:07:20.929Z","repository":{"id":357735863,"uuid":"1238308026","full_name":"joehonkey/msg2irc","owner":"joehonkey","description":"Lightweight HTTP-to-IRC bridge. Send messages to IRC channels and users via HTTP POST.","archived":false,"fork":false,"pushed_at":"2026-05-14T02:52:26.000Z","size":6441,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T04:41:34.835Z","etag":null,"topics":["golang","irc","irc-bot","ircv3","self-hosted","webhook"],"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/joehonkey.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-05-14T02:21:08.000Z","updated_at":"2026-05-14T02:52:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/joehonkey/msg2irc","commit_stats":null,"previous_names":["joehonkey/msg2irc"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/joehonkey/msg2irc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joehonkey%2Fmsg2irc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joehonkey%2Fmsg2irc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joehonkey%2Fmsg2irc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joehonkey%2Fmsg2irc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joehonkey","download_url":"https://codeload.github.com/joehonkey/msg2irc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joehonkey%2Fmsg2irc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33410490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"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":["golang","irc","irc-bot","ircv3","self-hosted","webhook"],"created_at":"2026-05-23T20:07:20.189Z","updated_at":"2026-05-23T20:07:20.920Z","avatar_url":"https://github.com/joehonkey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# msg2irc\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Go 1.21+](https://img.shields.io/badge/Go-1.21+-00ADD8?logo=go\u0026logoColor=white)](https://golang.org)\n\nHTTP-to-IRC bridge. POST a JSON payload, it shows up as a PRIVMSG.\n\nRuns as a persistent IRC bot on your server. Put it behind a reverse proxy and you can hit it from anywhere — phone shortcuts, monitoring alerts, scripts, webhooks.\n\n---\n\n## How it works\n\n![How it works](diagram.svg)\n\n---\n\n## Build\n\n```bash\ngit clone https://github.com/joehonkey/msg2irc\ncd msg2irc\ngo build -o msg2irc .\n```\n\nFreeBSD cross-compile:\n\n```bash\nGOOS=freebsd GOARCH=amd64 go build -o msg2irc .\n```\n\n---\n\n## Configuration\n\n```yaml\nlisten_addr: \"127.0.0.1:8080\"\ntoken: \"your-secret-token\"\n\ntls:\n  mode: \"off\"        # off | auto | manual\n  domain: \"\"\n  cert: \"\"\n  key: \"\"\n  listen_addr: \":443\"\n  cache_dir: \"./certs\"\n\nirc:\n  server: \"irc.example.com\"\n  port: 6697\n  nick: \"msg2irc\"\n  tls: true\n  tls_hostname: \"irc.example.com\"\n  channels:\n    - \"#yourchannel\"\n```\n\n### TLS modes\n\n| Mode | Description |\n|------|-------------|\n| `off` | Plain HTTP on `listen_addr`. Reverse proxy handles HTTPS. |\n| `auto` | Let's Encrypt. Needs ports 80 and 443. |\n| `manual` | Your own cert and key files. |\n\n---\n\n## Running\n\n```bash\n./msg2irc -config config.yaml\n```\n\nFreeBSD rc.d:\n\n```bash\nsudo cp contrib/freebsd/msg2irc /usr/local/etc/rc.d/msg2irc\nsudo sysrc msg2irc_enable=YES\nsudo service msg2irc start\n```\n\n---\n\n## Sending a message\n\n```bash\ncurl -X POST https://your-server.example.com/msg2irc/send \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"target\":\"#chan\",\"message\":\"hello\",\"token\":\"your-secret-token\"}'\n```\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `target` | yes | `#channel` or nick |\n| `message` | yes | Text to send |\n| `from` | no | Prefixed as `from: message` |\n| `token` | yes | Must match config |\n\n---\n\n## Reverse proxy\n\n**Apache** — inside your HTTPS VirtualHost:\n\n```apache\nProxyPass        \"/msg2irc/\"  \"http://127.0.0.1:8080/\"\nProxyPassReverse \"/msg2irc/\"  \"http://127.0.0.1:8080/\"\n\n\u003cProxy \"http://127.0.0.1:8080/\"\u003e\n    Require all granted\n\u003c/Proxy\u003e\n```\n\n**nginx:**\n\n```nginx\nlocation /msg2irc/ {\n    proxy_pass http://127.0.0.1:8080/;\n}\n```\n\n---\n\n## Phone\n\n[HTTP Shortcuts](https://http-shortcuts.rmy.ch/) (Android) works well. Set up a POST shortcut, add a `message` variable with type **Text Input**, and you get a prompt each time you tap it.\n\n---\n\n## Security\n\nKeep `token` secret — it's the only thing protecting the endpoint. Always run behind HTTPS. If using a proxy, bind `listen_addr` to `127.0.0.1`.\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoehonkey%2Fmsg2irc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoehonkey%2Fmsg2irc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoehonkey%2Fmsg2irc/lists"}