{"id":50308596,"url":"https://github.com/duyet/slack-matrix-bridge","last_synced_at":"2026-05-28T18:30:54.095Z","repository":{"id":330462161,"uuid":"1122821787","full_name":"duyet/slack-matrix-bridge","owner":"duyet","description":"A stateless webhook bridge that converts Slack messages to Matrix format","archived":false,"fork":false,"pushed_at":"2026-05-13T21:14:23.000Z","size":151,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T23:19:07.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://slack-matrix-bridge.duyet.workers.dev","language":"TypeScript","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/duyet.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-25T15:32:39.000Z","updated_at":"2026-05-13T21:14:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/duyet/slack-matrix-bridge","commit_stats":null,"previous_names":["duyet/slack-matrix-bridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/duyet/slack-matrix-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fslack-matrix-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fslack-matrix-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fslack-matrix-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fslack-matrix-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duyet","download_url":"https://codeload.github.com/duyet/slack-matrix-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fslack-matrix-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33622066,"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-05-28T02:00:06.440Z","response_time":99,"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-05-28T18:30:53.991Z","updated_at":"2026-05-28T18:30:54.080Z","avatar_url":"https://github.com/duyet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack-Matrix Bridge\n\nA stateless Slack-to-Matrix webhook bridge hosted on Cloudflare Workers. One-shot build by Claude Code.\n\n## Live Demo\n\n**https://slack-matrix-bridge.duyet.workers.dev**\n\n## Features\n\n- **Zero Configuration**: No database or server-side config needed\n- **Full Slack Compatibility**: Supports Block Kit and legacy attachments\n- **Mrkdwn Translation**: Converts Slack markup to Matrix HTML\n- **Serverless**: Hosted on Cloudflare Workers (0ms cold starts)\n- **Privacy-First**: No data persistence\n- **Web UI**: Built-in URL generator\n\n## Architecture\n\n**State-in-URL Pattern**: The destination Matrix URL is Base64-encoded in the request path.\n\n```\nhttps://bridge.workers.dev/\u003cBASE64_ENCODED_HOOKSHOT_URL\u003e\n```\n\n**Request Flow:**\n```\nSlack Service → Bridge URL → Cloudflare Worker\n                                    ↓\n                              Decode Matrix URL\n                                    ↓\n                              Transform Payload\n                                    ↓\n                              Forward to Hookshot\n                                    ↓\n                              Return \"ok\"\n```\n\n## Quick Start\n\n### 1. Create a Matrix Webhook\n\nInvite the **Hookshot** bot to your Matrix room and send:\n```\n!hookshot webhook create Bridge\n```\n\nCopy the URL (e.g., `https://hookshot.example.com/webhooks/v2/abcdef123456`)\n\n### 2. Generate Your Bridge URL\n\n1. Open the live demo or deploy your own\n2. Paste your Matrix Hookshot URL\n3. Click \"Generate Bridge URL\"\n4. Copy the generated Bridge URL\n\n### 3. Configure Your Service\n\nPaste the Bridge URL into any Slack-compatible webhook service:\n- GitHub, GitLab, Jenkins, Grafana, etc.\n\n## Usage Examples\n\n### Simple Text\n```bash\ncurl -X POST https://your-worker.workers.dev/BASE64_STRING \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"text\": \"Deployment successful!\"}'\n```\n\n### Block Kit\n```bash\ncurl -X POST https://your-worker.workers.dev/BASE64_STRING \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"blocks\": [\n      {\n        \"type\": \"section\",\n        \"text\": {\n          \"type\": \"mrkdwn\",\n          \"text\": \"*Build* #1234 completed\\nStatus: \u003chttps://example.com|Success\u003e\"\n        }\n      }\n    ]\n  }'\n```\n\n### Legacy Attachment\n```bash\ncurl -X POST https://your-worker.workers.dev/BASE64_STRING \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"attachments\": [\n      {\n        \"color\": \"good\",\n        \"title\": \"Deployment\",\n        \"text\": \"Successfully deployed to production\",\n        \"fields\": [\n          {\"title\": \"Environment\", \"value\": \"Production\"},\n          {\"title\": \"Duration\", \"value\": \"2m 34s\"}\n        ]\n      }\n    ]\n  }'\n```\n\n### Debug Metadata Mode (Optional)\n\nBy default, forwarded messages include only safe metadata (for example, timestamp/source msgtype) and do **not** include internal Matrix identifiers (`event_id`, `room_id`, `sender`).\n\nIf you need forensic context temporarily, you can enable debug metadata on a per-request basis:\n\n```bash\ncurl -X POST https://your-worker.workers.dev/BASE64_STRING \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"enableDebugMetadata\": true,\n    \"content\": {\n      \"body\": \"\u003chttps://example.com/issues/123|Issue Link\u003e\",\n      \"msgtype\": \"m.notice\"\n    },\n    \"event_id\": \"$event123\",\n    \"room_id\": \"!room:example.com\",\n    \"sender\": \"@bot:example.com\",\n    \"origin_server_ts\": 1714564800000\n  }'\n```\n\n## Deployment\n\n```bash\n# Clone the repository\ngit clone https://github.com/duyet/slack-matrix-bridge.git\ncd slack-matrix-bridge\n\n# Install dependencies\nbun install\n\n# Login to Cloudflare\nbun run wrangler login\n\n# Deploy\nbun run deploy\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduyet%2Fslack-matrix-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduyet%2Fslack-matrix-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduyet%2Fslack-matrix-bridge/lists"}