{"id":26845272,"url":"https://github.com/andreiregiani/im2im","last_synced_at":"2026-04-18T17:02:20.740Z","repository":{"id":152986443,"uuid":"623195219","full_name":"AndreiRegiani/im2im","owner":"AndreiRegiani","description":"Daemon to bridge between two instant messaging protocols","archived":false,"fork":false,"pushed_at":"2025-07-24T12:45:19.000Z","size":375,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-24T17:12:18.950Z","etag":null,"topics":["arduino","embedded","esp32","golang","instant-messaging","networking","raspberry-pi","sbc","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiRegiani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2023-04-03T22:18:25.000Z","updated_at":"2025-07-24T12:45:23.000Z","dependencies_parsed_at":"2023-08-29T14:16:21.032Z","dependency_job_id":null,"html_url":"https://github.com/AndreiRegiani/im2im","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiRegiani/im2im","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRegiani%2Fim2im","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRegiani%2Fim2im/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRegiani%2Fim2im/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRegiani%2Fim2im/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiRegiani","download_url":"https://codeload.github.com/AndreiRegiani/im2im/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRegiani%2Fim2im/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31976805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T16:27:12.723Z","status":"ssl_error","status_checked_at":"2026-04-18T16:27:11.140Z","response_time":103,"last_error":"SSL_read: 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":["arduino","embedded","esp32","golang","instant-messaging","networking","raspberry-pi","sbc","telegram","telegram-bot"],"created_at":"2025-03-30T19:35:36.365Z","updated_at":"2026-04-18T17:02:20.732Z","avatar_url":"https://github.com/AndreiRegiani.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# im2im\n\nDaemon to bridge between two instant messaging protocols.\n\nThe service listens for incoming messages on a given protocol and forwards them to another protocol. It's designed to be extensible to support the addition of new protocols and configuring their usage via a configuration file (YAML), any amount of bridges can be run at the same time within the same process.\n\n## Supported protocols\n\n* TCP\n* Telegram Bot\n\n## Overview\n\nExample for sending and receiving messages between TCP socket ⇔ Telegram Bot API, using a microcontroller (thin client) in LAN with a Raspberry Pi (running im2im):\n\n![Alt text](./assets/overview.png \"Overview\")\n\n### im2im.yaml\n\n```yaml\nbridges:\n  bridge1:\n      from:\n        tcp:\n          host: \"\"  # daemon listens on all interfaces (reachable in LAN)\n          port: 9001\n      to:\n        telegram_bot:\n          token: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n          chat_id: 123456789\n  bridge2:\n    from:\n      telegram_bot:\n          token: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n          chat_id: 123456789\n    to:\n      tcp:\n          host: 192.168.1.50  # microcontroller IP address in LAN\n          port: 9002\n```\n\n## Installation\n\n### From source\n\n```bash\nmake build\n```\n\n### Docker\n\n```bash\nmake docker-build\n```\n\n## Usage\n\n### Configuration\n\n```bash\ncp im2im.yaml.example im2im.yaml\n```\n\nMinimal example:\n\n```yaml\nbridges:\n  bridge0:\n      from:\n        tcp:\n          host: localhost\n          port: 9001\n      to:\n        tcp:\n          host: localhost\n          port: 9002\n```\n\n### Connecting\n\nUsing Netcat as TCP client and server.\n\n```bash\nnc -l 9002  # server\n```\n\n```bash\nmake run  # daemon\n```\n\n```bash\nnc localhost 9001  # client\n```\n\n## Implementation\n\n* Go 1.20, each bridge spawns two goroutines (sender/receiver) and uses one channel to pass the message.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for submitting pull requests.\n\n## License\n\nMIT License\nCopyright (c) 2023 Andrei Regiani\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiregiani%2Fim2im","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreiregiani%2Fim2im","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiregiani%2Fim2im/lists"}